Ticket #2191 (closed defect: fixed)

Opened 1 year ago

Last modified 2 months ago

Trac crashes after installing plugin

Reported by: anonymous Assigned to: athomas
Priority: highest Component: XmlRpcPlugin
Severity: blocker Keywords:
Cc: juan-manuel.cabrera@atosorigin.com 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

Change History

(follow-up: ↓ 2 ) 11/17/07 03:32:07 changed 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.

(in reply to: ↑ 1 ) 01/15/08 14:47:07 changed by erlingwl@gmail.com

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.

02/21/08 14:51:38 changed 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

02/25/08 11:18:02 changed by anonymous

  • cc set to juan-manuel.cabrera@atosorigin.com.
  • owner changed from coling to athomas.
  • component changed from WorkLogPlugin to XmlRpcPlugin.

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

02/25/08 11:19:35 changed by anonymous

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

02/25/08 19:34:40 changed by athomas

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.

06/20/08 09:25:00 changed 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.

08/21/08 21:09:58 changed by anonymous

  • priority changed from normal to highest.

09/25/08 05:01:42 changed by l.vahl

  • status changed from new to closed.
  • resolution set to fixed.

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)


Add/Change #2191 (Trac crashes after installing plugin)




Change Properties
Action