Opened 17 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 follow-up: 2 Changed 17 years ago by
comment:2 Changed 17 years ago by
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 17 years ago by
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 17 years ago by
Cc: | juan-manuel.cabrera@… added; anonymous removed |
---|---|
Component: | WorkLogPlugin → XmlRpcPlugin |
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:6 Changed 17 years ago by
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
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
Priority: | normal → highest |
---|
comment:9 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
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)
I forgot to say that I also tried to run
(of course, replacing path), but it hasn't done anything:
I'm using Trac 0.11dev-r6144.
Thank you for help.