Package: trac
Version: 0.9.6-3
Severity: important

SVN Browser gives this error :

  Trac detected an internal error: 
  instance.__dict__ not accessible in restricted mode
  
  Python traceback
Traceback (most recent call last):
  File 
"/var/lib/python-support/python2.4/trac/web/modpython_frontend.py", line 
206, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 139, 
in dispatch_request
    dispatcher.dispatch(req)
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 107, 
in dispatch
    resp = chosen_handler.process_request(req)
  File 
"/var/lib/python-support/python2.4/trac/versioncontrol/web_ui/browser.py", 
line 78, in process_request
    repos = self.env.get_repository(req.authname)
  File "/var/lib/python-support/python2.4/trac/env.py", line 162, in 
get_repository
    repos = SubversionRepository(repos_dir, authz, self.log)
  File 
"/var/lib/python-support/python2.4/trac/versioncontrol/svn_fs.py", line 
183, in __init__
    self.pool = Pool()
  File 
"/var/lib/python-support/python2.4/trac/versioncontrol/svn_fs.py", line 
89, in __init__
    self._pool = core.svn_pool_create(self._parent_pool())
  File "/var/lib/python-support/python2.4/svn/core.py", line 177, in 
svn_pool_create
    return Pool(parent_pool)
  File "/var/lib/python-support/python2.4/libsvn/core.py", line 1080, in 
svn_pool_create
    return apply(_core.svn_pool_create, args)
  File "/var/lib/python-support/python2.4/libsvn/core.py", line 3081, in 
_wrap
    obj.set_parent_pool(self)
  File "/var/lib/python-support/python2.4/libsvn/core.py", line 2994, in 
set_parent_pool
    self._parent_pool = parent_pool or application_pool
  File "/var/lib/python-support/python2.4/libsvn/core.py", line 2982, in 
<lambda>
    __setattr__ = lambda self, name, value: _swig_setattr(self, 
apr_pool_t, name, value)
  File "/var/lib/python-support/python2.4/libsvn/core.py", line 22, in 
_swig_setattr
    return _swig_setattr_nondynamic(self,class_type,name,value,0)
  File "/var/lib/python-support/python2.4/libsvn/core.py", line 17, in 
_swig_setattr_nondynamic
    self.__dict__[name] = value
RuntimeError: instance.__dict__ not accessible in restricted mode

Refresh the page makes the link works.

This bugs has been discussed upstream but no real fix has been found.
A workaround for mod_python seems to make it work fine.
(http://trac.edgewall.org/ticket/3455#comment:5)
I'll update the bug if it works for me.

See:
    http://trac.edgewall.org/ticket/3371
    http://trac.edgewall.org/ticket/2611
    http://trac.edgewall.org/ticket/3455
    http://trac.edgewall.org/wiki/TracSubversion#TracandSubversion1.3.1

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (900, 'testing'), (400, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-686-aircrack
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to