Opened 19 years ago
Last modified 18 years ago
#1438 closed defect
Browse gives null argument error (FSFS repo) — at Initial Version
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | high | Milestone: | 0.10 |
Component: | version control | Version: | 0.8.1 |
Severity: | major | Keywords: | Windows browser null argument |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Hitting "browse" gives the error:
Traceback (most recent call last):
File "C:\PYTHON23\lib\site-packages\trac\core.py", line 531, in cgi_start
real_cgi_start()
File "C:\PYTHON23\lib\site-packages\trac\core.py", line 526, in real_cgi_start
dispatch_request(path_info, args, req, env)
File "C:\PYTHON23\lib\site-packages\trac\core.py", line 439, in dispatch_request
module = module_factory(args, env, database, req)
File "C:\PYTHON23\lib\site-packages\trac\core.py", line 175, in module_factory
pool, rep, fs_ptr = open_svn_repos(repos_dir)
File "C:\PYTHON23\lib\site-packages\trac\core.py", line 458, in open_svn_repos
rep = repos.svn_repos_open(repos_dir, pool)
SystemError: null argument to internal routine
Windows XP sp 2
SVN 1.1.4
svn-win32-1.1.4.py (for Python 2.3)
docutils 0.3.7 (happens w/ 0.3.5, too — Win install docs for trac say to use 0.3.7)
Python 2.3
sqlite 3.2.1
clearserver-python-0.9.12-win32
pysqlite version 1.1.6
The interesting thing is, if I add logging to trac\core.py before the call to repos.svn_repos_open() and do a repr() on the pool and the repos_dir vars, they're both set to seemingly valid values. However, the error still occurs. Furthermore, if I fire up the Python interpreter from the command line and do the *exact* same series of operations (minus the slash escaping, but set up my directory string the same as my logging output indicated it was done by core.py), I can open the repository just fine! (repr() on the returned object shows a valid p_repos_t object):
C:\>python Python 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from svn import core, repos, util >>> core.apr_initialize() 0 >>> pool = core.svn_pool_create(None) >>> mydir = 'c:\\shared\\svnDevWeb' >>> rep = repos.svn_repos_open(mydir, pool) >>> repr(rep) "'_e01ca600_p_svn_repos_t'" >>> ^Z
Thanks, Dave