Is setuptools (i.e. pkg_resources) installed ?

On 8/20/12, John of NOVA <[email protected]> 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].
> 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.
>
>


-- 
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 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.

Reply via email to