Edgewall Software

Ticket #7625 (closed enhancement: fixed)

Opened 10 months ago

Last modified 2 months ago

trac-admin fails with DistributionNotFound error

Reported by: koch@… Owned by: rblank
Priority: normal Milestone: 0.11.2
Component: general Version: 0.11.1
Severity: normal Keywords: DistributionNotFound, trac-admin
Cc:

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

Change History

Changed 10 months ago by ebray

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

Changed 10 months ago by anonymous

  • type changed from defect to enhancement
  • component changed from admin/console to general

That's the clue I needed.

MayBe? something for the install notes?

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

Changed 8 months ago by rblank

  • status changed from new to closed
  • resolution set to fixed

Added a comment about that in TracUpgrade.

Changed 3 months ago by cboos

  • owner set to rblank
  • milestone set to 0.11.2

Changed 2 months ago by anonymous

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.

Add/Change #7625 (trac-admin fails with DistributionNotFound error)

Author


E-mail address and user name can be saved in the Preferences.


Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from rblank. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.