Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#7751 closed defect (duplicate)

RuntimeError: instance.__dict__ not accessible in restricted mode

Reported by: jsmall@… Owned by:
Priority: normal Milestone:
Component: general Version: 0.11.1
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a GET operation on /wiki/WPIBuild, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'page': u'WPIBuild'}

User Agent was: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.8.1.17) Gecko/20080925 SeaMonkey/1.1.12

System Information

Trac 0.11.1
Python 2.5.2 (r252:60911, Oct 20 2008, 12:26:15)
[GCC 3.4.6 [FreeBSD] 20060305]
setuptools 0.6c9
SQLite 3.3.7
pysqlite 2.3.5
Genshi 0.5.1
mod_python 3.3.1
Pygments 0.11.1
Subversion 1.5.2 (r32768)
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 423, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 173, in dispatch
    chosen_handler)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 286, in _pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/versioncontrol/api.py", line 86, in pre_process_request
    self.get_repository(req.authname).sync()
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/versioncontrol/api.py", line 157, in get_repository
    repos = self._connector.get_repository(rtype, rdir, authname)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/versioncontrol/svn_fs.py", line 280, in get_repository
    'branches': self.branches})
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/versioncontrol/svn_fs.py", line 390, in __init__
    self.pool = Pool()
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/versioncontrol/svn_fs.py", line 151, in __init__
    self._pool = core.svn_pool_create(self._parent_pool())
  File "/usr/local/lib/python2.5/site-packages/svn/core.py", line 248, in svn_pool_create
    return Pool(parent_pool)
  File "/usr/local/lib/python2.5/site-packages/libsvn/core.py", line 1440, in svn_pool_create
    return apply(_core.svn_pool_create, args)
  File "/usr/local/lib/python2.5/site-packages/libsvn/core.py", line 5010, in _wrap
    obj.set_parent_pool(self)
  File "/usr/local/lib/python2.5/site-packages/libsvn/core.py", line 4923, in set_parent_pool
    self._parent_pool = parent_pool or application_pool
  File "/usr/local/lib/python2.5/site-packages/libsvn/core.py", line 4911, in <lambda>
    __setattr__ = lambda self, name, value: _swig_setattr(self, apr_pool_t, name, value)
  File "/usr/local/lib/python2.5/site-packages/libsvn/core.py", line 24, in _swig_setattr
    return _swig_setattr_nondynamic(self,class_type,name,value,0)
  File "/usr/local/lib/python2.5/site-packages/libsvn/core.py", line 19, in _swig_setattr_nondynamic
    self.__dict__[name] = value
RuntimeError: instance.__dict__ not accessible in restricted mode

Attachments (0)

Change History (2)

comment:1 by Remy Blank, 16 years ago

Resolution: duplicate
Status: newclosed

Funny, this is the 40th duplicate of #3371. Do we get a prize or something?

Oh, wait, it's only the 39th. Too bad. Maybe next time :-)

In the meantime, have a look at MostFrequentDuplicates and TracSubversion#instance-dict-restricted-mode and set PythonInterpreter main_interpreter in your Apache configuration.

(We really should have a search for similar tickets displayed at the top of /newticket.)

comment:2 by Christian Boos, 16 years ago

Well, in this case, the ticket was created and posted from the Trac error page. Not that we don't say there that they must search for existing tickets, but this notice could eventually be made a bit more prominent (see source:trunk/trac/templates/error.html@6851#L123).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.