Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

Last modified 10 years ago

#7625 closed enhancement (fixed)

trac-admin fails with DistributionNotFound error

Reported by: koch@… Owned by: Remy Blank
Priority: normal Milestone: 0.11.2
Component: general Version: 0.11.1
Severity: normal Keywords: DistributionNotFound, trac-admin
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

After installing trac 0.11.1 using http://ftp.edgewall.com/pub/trac/Trac-0.11.1.win32.exe over an existing (working) 0.11 Version i run in the following trouble.

C:\Python24\Scripts>trac-admin c:\Projects\test.trac.db
Traceback (most recent call last):
  File "C:\Python24\Scripts\trac-admin-script.py", line 5, in ?
    from pkg_resources import load_entry_point
  File "C:\Python24\lib\site-packages\setuptools-0.6c7-py2.4.egg\pkg_resources.p
y", line 2564, in ?
    for dist in working_set.resolve(
  File "C:\Python24\lib\site-packages\setuptools-0.6c7-py2.4.egg\pkg_resources.p
y", line 524, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: Trac==0.11.1

Did i miss something?

Attachments (0)

Change History (8)

comment:1 by ebray, 16 years ago

You probably still have the Trac 0.11 egg in your site-packages directory.

comment:2 by anonymous, 16 years ago

Component: admin/consolegeneral
Type: defectenhancement

That's the clue I needed.

MayBe something for the install notes?

Remove existing Trac x.xx egg in your site-packages directory.

comment:3 by Remy Blank, 16 years ago

Resolution: fixed
Status: newclosed

Added a comment about that in TracUpgrade.

comment:4 by Christian Boos, 16 years ago

Milestone: 0.11.2
Owner: set to Remy Blank

comment:5 by anonymous, 16 years ago

I had this same problem and I resolved this by creating a .pth file in my system's site-packages directory containing the path to my custom trac site-packages directory:

I created: /usr/lib/python2.5/site-packages/trac.pth, which contains:

/opt/trac/lib/python2.5/site-packages

This is the path where I custom installed trac from source.

Last edited 11 years ago by Ryan J Ollos (previous) (diff)

comment:6 by anonymous, 13 years ago

Hi.. I got the same error. I still don't know what to do. I 've installed Trac.0.12 in Debian. I could not make any environment and got this following error:

Traceback (most recent call last):
  File "/usr/local/bin/trac-admin", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2675, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 552, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Trac==0.12

Anybody can help me? Thank you in advance guys…

Last edited 11 years ago by Ryan J Ollos (previous) (diff)

comment:7 by anonymous, 13 years ago

On Windows, I do encounter similar problems, but only if I run the python as a USER. If it's under SYSTEM or Admin rights, it runs correctly.. But still don't know, how to solve it, I do not want to run Pyhton with SYSTEM rights.. Any ideas?

in reply to:  7 comment:8 by anonymous, 10 years ago

Replying to anonymous:

On Windows, I do encounter similar problems, but only if I run the python as a USER. If it's under SYSTEM or Admin rights, it runs correctly.. But still don't know, how to solve it, I do not want to run Pyhton with SYSTEM rights.. Any ideas?

You need to give the permissions to USER to your python path. I was trying to run post commit scripts in SVN that do a changeset added operation. The post_commit.cmd is run as user NETWORK SERVICE so i added full control to that user to both trac_env dir and to the python dir and eureka!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Remy Blank.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Remy Blank to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.