Advice? Use Distribute. http://python-distribute.org/

--Noah

On Dec 6, 2009, at 11:00 PM, .M. wrote:

> Any advice on this this?
>
> In migrating a trac environment to a new server I'm hitting an issue
> with setuptools that I don't understand.
>
> Verified server using py2.4.4 and setuptools-0.6c11-py2.4. I do have
> python 2.5 installed as well. Upgraded to trac 0.11.7 and setuptools
> 0.7a1dev-r76122 but have same error.
>
> My plugin TracShot is choking on being able to import pkg_resources
> even though this works fine on the command line and inside other
> plugins.
>
> This line :
>
>               from pkg_resources import resource_filename
>
> Gives:
>
> Traceback (most recent call last):
>  File "/usr/lib/python2.4/site-packages/Trac-0.11.6-py2.4.egg/trac/
> web/api.py", line 377, in send_error
>    'text/html')
>  File "/usr/lib/python2.4/site-packages/Trac-0.11.6-py2.4.egg/trac/
> web/chrome.py", line 738, in render_template
>    template = self.load_template(filename, method=method)
>  File "/usr/lib/python2.4/site-packages/Trac-0.11.6-py2.4.egg/trac/
> web/chrome.py", line 704, in load_template
>    self.templates = TemplateLoader(self.get_all_templates_dirs(),
>  File "/usr/lib/python2.4/site-packages/Trac-0.11.6-py2.4.egg/trac/
> web/chrome.py", line 440, in get_all_templates_dirs
>    dirs += provider.get_templates_dirs()
>  File "/usr/lib/python2.4/site-packages/TracShot-0.2.5-py2.4.egg/shot/
> shot.py", line 163, in get_templates_dirs
> ImportError: No module named pkg_resources
>
> --
>
> 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 
> .
>
>

--

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