Opened 17 years ago
Closed 15 years ago
#2922 closed defect (worksforme)
Parent module 'tracrpc' not loaded error
Reported by: | anonymous | Owned by: | Alec Thomas |
---|---|---|---|
Priority: | highest | Component: | XmlRpcPlugin |
Severity: | critical | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
I'm new to python and trac so the answer to this may be obvious.
My env. is a standalone installation on winxp sp2, trac 0.11b2, tracd is started with BASIC_AUTH. My goal is to link with mylyn/eclipse.
To install the plugin I called: c:\python25\Scripts\easy_install D:\temp\tracxmlrpc\xmlrpcplugin\0.10
The error is triggered by settings in trac.ini. I always get the error with tracrpc.* enabled.
I've tried e.g. selecting RPC combinations in the webadmin interface. On Stderr/out tracd console I get: 20:09:54 Trac[env] INFO: Reloading environment due to configuration change 20:09:54 Trac[loader] DEBUG: Loading TracXMLRPC from c:\python25\lib\site-packag es\tracxmlrpc-0.1-py2.5.egg 20:09:54 Trac[loader] ERROR: Skipping "TracXMLRPC = tracrpc": (can't import "No module named Search") : :
As soon as I select XMLRPCWeb(this equates to "tracrpc.web_ui.xmlrpcweb = enabled" in trac.ini), trac disappears and instead in the browser 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 672, in render_template
template = self.load_template(filename, method=method)
File "c:\Python25\lib\site-packages\trac\web\chrome.py", line 648, in load_template
self.templates = TemplateLoader(self.get_all_templates_dirs(),
File "c:\Python25\lib\site-packages\trac\web\chrome.py", line 402, 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
My hunch is that I need xmlrpcplugin\0.11? All help appreciated. Mike
Attachments (0)
Change History (11)
comment:1 follow-up: 4 Changed 17 years ago by
comment:2 Changed 16 years ago by
Tried the xmlrpcplugin\trunk by calling (for python novices like me) c:\python25\Scripts\easy_install D:\temp\tracxmlrpc\xmlrpcplugin\trunk and it worked!
I found the tips at http://unitstep.net/blog/2008/01/19/using-assemblas-trac-with-eclipse-mylyn-xml-rpc-access/ to be helpful (section 4 "The Fix")
comment:4 Changed 16 years ago by
You should try xmlrpcplugin\trunk instead of xmlrpcplugin\0.10
I tried that alternative, but still the same error on Trac rc0.11.
comment:5 follow-up: 6 Changed 16 years ago by
#3232 is a duplicate of this ticket.
Have you tried moving the from pkg_resources import resource_filename
to the top of the file? Does that fix it?
comment:6 Changed 16 years ago by
Priority: | normal → highest |
---|---|
Severity: | normal → critical |
comment:7 Changed 16 years ago by
I found a way around
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
works
Mike
comment:8 Changed 16 years ago by
Yes, I can confirm this works!
If you build both .eggs (one in 0.10 and one in trunk) they will be copied into the plugin folder anyway. So all that is needed is to restart trac - and voilà!
comment:10 Changed 16 years ago by
trunk works out of the box with Trac 0.11, Python 2.5, Apache 2.2.11/mod_python, Eclipse Ganymede (3.4.1) and Mylyn 3.0
comment:11 Changed 15 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Yup. Using trac 0.11 with xmlrpc plugin from trunk should not be a problem.
Closing.
Hi I had the same problem. The pg came from this : c:\python25\Scripts\easy_install D:\temp\tracxmlrpc\xmlrpcplugin\0.10.
You should try xmlrpcplugin\trunk instead of xmlrpcplugin\0.10 Adrien