Modify

Opened 16 years ago

Closed 16 years ago

#2191 closed defect (fixed)

Trac crashes after installing plugin

Reported by: anonymous Owned by: Alec Thomas
Priority: highest Component: XmlRpcPlugin
Severity: blocker Keywords:
Cc: juan-manuel.cabrera@… Trac Release: 0.11

Description

After installing plugin for single environment and enabling it through admin page, I restart the server and see the following error on any page (and nothing else):

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Trac-0.11dev_r6144-py2.5.egg/trac/web/api.py", line 342, in send_error
    'text/html')
  File "/usr/lib/python2.5/site-packages/Trac-0.11dev_r6144-py2.5.egg/trac/web/chrome.py", line 588, in render_template
    template = self.load_template(filename, method=method)
  File "/usr/lib/python2.5/site-packages/Trac-0.11dev_r6144-py2.5.egg/trac/web/chrome.py", line 564, in load_template
    self.templates = TemplateLoader(self.get_all_templates_dirs(),
  File "/usr/lib/python2.5/site-packages/Trac-0.11dev_r6144-py2.5.egg/trac/web/chrome.py", line 328, in get_all_templates_dirs
    dirs += provider.get_templates_dirs()
  File "build/bdist.linux-i686/egg/worklog/webui.py", line 165, in get_templates_dirs
    from pkg_resources import resource_filename
SystemError: Parent module 'worklog' not loaded

Attachments (0)

Change History (9)

comment:1 Changed 16 years ago by anonymous

I forgot to say that I also tried to run

trac-admin /path/to/projenv upgrade

(of course, replacing path), but it hasn't done anything:

Database is up to date, no upgrade necessary.

I'm using Trac 0.11dev-r6144.

Thank you for help.

comment:2 in reply to:  1 Changed 16 years ago by erlingwl@…

I get almost the same: (using xmlrpc plugin)

Traceback (most recent call last):

File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/web/api.py", line 339, in send_error

'text/html')

File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/web/chrome.py", line 651, in render_template

template = self.load_template(filename, method=method)

File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/web/chrome.py", line 627, in load_template

self.templates = TemplateLoader(self.get_all_templates_dirs(),

File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/web/chrome.py", line 390, in get_all_templates_dirs

dirs += provider.get_templates_dirs()

File "build/bdist.linux-i686/egg/tracrpc/web_ui.py", line 76, in get_templates_dirs

from pkg_resources import resource_filename

SystemError: Parent module 'tracrpc' not loaded

Any guidance are deeply appreciated

Replying to anonymous:

I forgot to say that I also tried to run

trac-admin /path/to/projenv upgrade

(of course, replacing path), but it hasn't done anything:

Database is up to date, no upgrade necessary.

I'm using Trac 0.11dev-r6144.

Thank you for help.

comment:3 Changed 16 years ago by anonymous

Same thing here. On Trac 0.11 I get:

Traceback (most recent call last):
  File "C:\Python25\Lib\site-packages\trac\web\api.py", line 339, in send_error
    'text/html')
  File "C:\Python25\Lib\site-packages\trac\web\chrome.py", line 651, in render_template
    template = self.load_template(filename, method=method)
  File "C:\Python25\Lib\site-packages\trac\web\chrome.py", line 627, in load_template
    self.templates = TemplateLoader(self.get_all_templates_dirs(),
  File "C:\Python25\Lib\site-packages\trac\web\chrome.py", line 390, in get_all_templates_dirs
    dirs += provider.get_templates_dirs()
  File "build\bdist.win32\egg\worklog\webui.py", line 165, in get_templates_dirs
    from pkg_resources import resource_filename
SystemError: Parent module 'worklog' not loaded

To recover I only need to remove the ini lines: worklog.webadminui.worklogadminpage = enabled worklog.webui.worklogpage = enabled

comment:4 Changed 16 years ago by anonymous

Cc: juan-manuel.cabrera@… added; anonymous removed
Component: WorkLogPluginXmlRpcPlugin
Owner: changed from Colin Guthrie to Alec Thomas

Exactly the same problem here...

Traceback (most recent call last):
  File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\web\api.py", line 339, in send_error
    'text/html')
  File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\web\chrome.py", line 651, in render_template
    template = self.load_template(filename, method=method)
  File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\web\chrome.py", line 627, in load_template
    self.templates = TemplateLoader(self.get_all_templates_dirs(),
  File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\web\chrome.py", line 390, in get_all_templates_dirs
    dirs += provider.get_templates_dirs()
  File "build\bdist.win32\egg\tracrpc\web_ui.py", line 76, in get_templates_dirs
    from pkg_resources import resource_filename
SystemError: Parent module 'tracrpc' not loaded

Env: WinXP Apache 2.2.6 | mod_python 3.3.1 python 2.5 Trac 0.11b1 XmlRpcPlugin 0.10

Thx

comment:5 Changed 16 years ago by anonymous

Sorry, my prev post is so badly irrelevant...

comment:6 Changed 16 years ago by Alec Thomas

I'm pretty sure this is not specific to the XmlRpcPlugin. See this sample code for why this error occurs.

However, I'm also not sure what the real problem is.

comment:7 Changed 16 years ago by anonymous

The same Problem for me. When i activate the part tracrpc.web_ui, the trac environment crashes with :

Traceback (most recent call last):

File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\web\api.py", line 339, in send_error

'text/html')

File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\web\chrome.py", line 651, in render_template

template = self.load_template(filename, method=method)

File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\web\chrome.py", line 627, in load_template

self.templates = TemplateLoader(self.get_all_templates_dirs(),

File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\web\chrome.py", line 390, in get_all_templates_dirs

dirs += provider.get_templates_dirs()

File "build\bdist.win32\egg\tracrpc\web_ui.py", line 76, in get_templates_dirs

from pkg_resources import resource_filename

SystemError: Parent module 'tracrpc' not loaded

when is set tracrpc.web_ui to disabled, the project environment is running again.

comment:8 Changed 16 years ago by anonymous

Priority: normalhighest

comment:9 Changed 16 years ago by l.vahl

Resolution: fixed
Status: newclosed

Problem fixed in #2922

Res again:

build TracXMLRPC-0.1-py2.5.egg (xmlrpcplugin\1.0)
build TracXMLRPC-1.0.0-py2.5.egg (xmlrpcplugin\trunk)
copy both into plugins

restart service

you can resolve this also by easy_install (xmlrpcplugin\1.0) and (xmlrpcplugin\trunk)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Alec Thomas.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.