Modify ↓
Opened 14 years ago
Closed 14 years ago
#10333 closed defect (cantfix)
RuntimeError: instance.__dict__ not accessible in restricted mode
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | general | Version: | 0.12.1 |
| Severity: | major | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Hello
I have this problem for about 3 weeks. I do not understand what happens, I can neither replicate.
Apply what you mentioned link: http://trac.edgewall.org/wiki/TracSubversion # instance-dict-restricted-mode
but the problem persists.
My configuration is:
<VirtualHost *:80>
ServerAdmin webmaster@lazos.cl
ServerName svn.lazos.cl
<Location />
DAV svn
SVNParentPath /srv/svn/
AuthType Basic
AuthName "Repositorio Lazos S.A."
AuthzSVNAccessFile /srv/svn/svn-acl-conf
AuthUserFile /srv/htpasswd
Require valid-user
</Location>
ErrorLog logs/svn.lazos.cl-error_log
CustomLog logs/svn.lazos.cl-access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@lazos.cl
ServerName trac.lazos.cl
<IfModule !python_module>
LoadModule python_module modules/python26-mod_python.so
</IfModule>
<Location />
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /srv/trac
PythonOption TracUriRoot /
</Location>
<Location "/*/login">
AuthType Basic
AuthName "trac"
AuthUserFile /srv/htpasswd
Require valid-user
</Location>
</VirtualHost>
<Location /server-info>
SetHandler server-info
</Location>
Trac runs on the following environment:
System Information: User Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:6.0) Gecko/20100101 Firefox/6.0 Trac : 0.12.1 Babel : 0.9.5 Genshi : 0.6 mod_python: 3.3.1 pysqlite : 2.4.1 Python : 2.6.5 (r265:79063, Feb 28 2011, 21:55:45) [GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] RPC : 1.1.2 setuptools: 0.6 SQLite : 3.3.6 Subversion: 1.6.15 (r1038135) jQuery : 1.4.2 Linux 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:52:25 EST 2011 x86_64 x86_64 x86_64 GNU/Linux CentOS release 5.6 (Final)
More information about the error:
Most recent call last:
File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 511, in _dispatch_request
File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 202, in dispatch
File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 344, in _pre_process_request
File "/usr/lib/python2.6/site-packages/trac/versioncontrol/api.py", line 330, in pre_process_request
File "/usr/lib/python2.6/site-packages/trac/versioncontrol/api.py", line 526, in get_repository
File "/usr/lib/python2.6/site-packages/trac/versioncontrol/svn_fs.py", line 304, in get_repository
File "/usr/lib/python2.6/site-packages/trac/versioncontrol/svn_fs.py", line 318, in __init__
File "/usr/lib/python2.6/site-packages/trac/versioncontrol/svn_fs.py", line 153, in __init__
File "/usr/lib64/python2.6/site-packages/svn/core.py", line 241, in svn_pool_create
File "/usr/lib64/python2.6/site-packages/libsvn/core.py", line 1555, in svn_pool_create
File "/usr/lib64/python2.6/site-packages/libsvn/core.py", line 5738, in _wrap
File "/usr/lib64/python2.6/site-packages/libsvn/core.py", line 5651, in set_parent_pool
File "/usr/lib64/python2.6/site-packages/libsvn/core.py", line 5639, in <lambda>
File "/usr/lib64/python2.6/site-packages/libsvn/core.py", line 24, in _swig_setattr
File "/usr/lib64/python2.6/site-packages/libsvn/core.py", line 19, in _swig_setattr_nondynamic
Code fragment:
Line
14 self.__dict__[name] = value
15 return
16 method = class_type.__swig_setmethods__.get(name,None)
17 if method: return method(self,value)
18 if (not static) or hasattr(self,name):
19 self.__dict__[name] = value
20 else:
21 raise AttributeError("You cannot add attributes to %s" % self)
22
23 def _swig_setattr(self,class_type,name,value):
24 return _swig_setattr_nondynamic(self,class_type,name,value,0)
Local variables:
Name Value
class_type <class libsvn.core.apr_pool_t at 0x2b94bba75830>
method None
name '_parent_pool'
self <libsvn.core.apr_pool_t; proxy of <Swig Object of type 'apr_pool_t *' at ...
static 0
value <libsvn.core.apr_pool_t; proxy of <Swig Object of type 'apr_pool_t *' at ...
Enabled Plugins:
ChangeLogMacro 0.2 /srv/trac/common/plugins/ChangeLogMacro-0.2-py2.6.egg
TestManager 1.4.6 /srv/trac/common/plugins/TestManager-1.4.6-py2.6.egg
TracGenericClass 1.0.6 /srv/trac/common/plugins/TracGenericClass-1.0.6-py2.6.egg
TracGenericWorkflow 1.0.2 /srv/trac/common/plugins/TracGenericWorkflow-1.0.2-py2.6.egg
TracMasterTickets 3.0.2 /srv/trac/common/plugins/TracMasterTickets-3.0.2-py2.6.egg
TracXMLRPC 1.1.2 /srv/trac/common/plugins/TracXMLRPC-1.1.2-py2.6.egg
that causes this problem? help please
regards
Christopher Paredes
Attachments (0)
Note:
See TracTickets
for help on using tickets.



This is an InstallationIssue, please ask on the MailingList or IrcChannel.