Opened five many years back Very last modified six months in the past
In all probability, this really is not a bug in Trac, but in possibly Subversion,
Office 2007 Product Key, SWIG, or mod_python - I am filing this ticket principally in order that there is somewhere to collect reviews of this situation, and make notes of any debugging that may be achieved.
I expertise an intermittent Trac internal error, together with the subsequent atmosphere:
Debian 'etch'
SWIG one.three.28-1.1
Apache HTTPD two.2.2
Subversion one.three.2 (using the previously mentioned SWIG)
mod_python three.2.9-rc3
Trac 0.10dev r3492
Traceback (most latest contact final): File "homemaxbwctractrunktracwebmain.py", line 314,
Office Pro 2007 Key, in dispatch_request dispatcher.dispatch(req) File "homemaxbwctractrunktracwebmain.py", line 199, in dispatch resp = chosen_handler.process_request(req) File "homemaxbwctractrunktracversioncontrolweb_uibrowse r.py", line 95, in process_request repos = self.env.get_repository(req.authname) File "homemaxbwctractrunktracenv.py", line 194, in get_repository return RepositoryManager(self).get_repository(authname) File "homemaxbwctractrunktracversioncontrolapi.py", line 70, in get_repository self.repository_dir, authname) File "homemaxbwctractrunktracversioncontrolsvn_fs.p y", line 262, in get_repository repos = SubversionRepository(dir, authz,
Windows 7 X64, self.log) File "homemaxbwctractrunktracversioncontrolsvn_fs.p y", line 279, in __init__ self.pool = Pool() File "homemaxbwctractrunktracversioncontrolsvn_fs.p y", line 158,
Office Pro Plus 2007 Key, in __init__ self._pool = core.svn_pool_create(self._parent_pool()) File "usrlocallibsvn-pythonsvncore.py", line 177, in svn_pool_create return Pool(parent_pool) File "usrlocallibsvn-pythonlibsvncore.py", line 1050, in svn_pool_create return use(_core.svn_pool_create, args) File "usrlocallibsvn-pythonlibsvncore.py", line 2868, in _wrap obj.set_parent_pool(self) File "usrlocallibsvn-pythonlibsvncore.py", line 2781, in set_parent_pool self._parent_pool = parent_pool or application_pool File "usrlocallibsvn-pythonlibsvncore.py", line 2766, in <lambda> __setattr__ = lambda self, name, value: _swig_setattr(self, apr_pool_t, name, value) File "usrlocallibsvn-pythonlibsvncore.py", line 22, in _swig_setattr return _swig_setattr_nondynamic(self,class_type,name,valu e,0) File "usrlocallibsvn-pythonlibsvncore.py",
Microsoft Office 2007 Product Key, line 17, in _swig_setattr_nondynamic self.__dict__[name] = value
RuntimeError: instance.__dict__ not accessible in restricted mode
Some googling suggests that this error is a hint that a Python object created in one subinterpreter is being used in a different subinterpreter. This is certainly supported by the fact that my Trac setup does indeed involve Trac instances running under multiple subinterpreters.
Resolution
There is indeed no possibility to make it work with multiple subinterpreters per course of action, the workaround is to enforce the utilization of a single interpreter per operation, as documented in TracSubversion#instance-dict-restricted-mode.