John of NOVA
unread,Aug 20, 2012, 4:10:16 PM8/20/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to trac-...@googlegroups.com
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__