I did bring over the pk_resources. I should mention I am developing the plugin on a Window's machine. I have python installed and brought over the trac and genshi installations from a CentOS VM I have running to simulate the system my trac modifications will be used on.
If I can only develop plugins in a Linux environment, then I'll just move my work over there. On Monday, August 20, 2012 4:36:09 PM UTC-4, olemis wrote: > > Is setuptools (i.e. pkg_resources) installed ? > > On 8/20/12, John of NOVA <[email protected] <javascript:>> wrote: > > Using the Python IDLE, I added the trac and genshi code from the > > /usr/lib/pythonVERSION/site-packages/ directory to the sys.path so I > could > > modify a python script in order to create a custom plugin. That way the > > plugin I develop will be able to call upon the classes of trac. > > > > I was able to do the following with no problem: from trac.core import > > Component, implements > > > > However, when I did the following it fired off an error when it reached > the > > > > line: from trac import __version__ > > > > So how do i resolve this? > > > >>>> from trac.ticket.api import ITicketManipulator > > Traceback (most recent call last): > > File "<pyshell#1>", line 1, in ? > > from trac.ticket.api import ITicketManipulator > > File "C:\Users\mcmahonjoh\Desktop\Python > > Project\trac\ticket\__init__.py", line 1, in ? > > from trac.ticket.api import * > > File "C:\Users\mcmahonjoh\Desktop\Python Project\trac\ticket\api.py", > > line 30, in ? > > from trac.wiki import IWikiSyntaxProvider, WikiParser > > File "C:\Users\mcmahonjoh\Desktop\Python > Project\trac\wiki\__init__.py", > > line 1, in ? > > from trac.wiki.api import * > > File "C:\Users\mcmahonjoh\Desktop\Python Project\trac\wiki\api.py", > line > > 28, in ? > > from trac.wiki.parser import WikiParser > > File "C:\Users\mcmahonjoh\Desktop\Python Project\trac\wiki\parser.py", > > line 24, in ? > > from trac.notification import EMAIL_LOOKALIKE_PATTERN > > File "C:\Users\mcmahonjoh\Desktop\Python > Project\trac\notification.py", > > line 23, in ? > > from trac import __version__ > > ImportError: cannot import name __version__ > > > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "Trac Users" group. > > To view this discussion on the web visit > > https://groups.google.com/d/msg/trac-users/-/NlrKRMxKm4sJ. > > To post to this group, send email to > > [email protected]<javascript:>. > > > To unsubscribe from this group, send email to > > [email protected] <javascript:>. > > For more options, visit this group at > > http://groups.google.com/group/trac-users?hl=en. > > > > > > > -- > Regards, > > Olemis. > > Blog ES: http://simelo-es.blogspot.com/ > Blog EN: http://simelo-en.blogspot.com/ > > Featured article: > -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/trac-users/-/MzdfoZcZFGwJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
