#7697 closed defect (worksforme)
Trac-0.11.1.win32.exe installs wrong trac version
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.11.1 |
Severity: | normal | Keywords: | needinfo |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Windows installer for 0.11.1 (Trac-0.11.1.win32.exe) leads to "DistributionNotFound: Trac==0.11.1" trying to use trac-admin
Using Trac-0.11.1.zip afterwards is ok.
python 2.5 on win2000 (de)
Attachments (0)
Change History (7)
follow-up: 3 comment:1 by , 16 years ago
comment:3 by , 16 years ago
Replying to cboos:
Did you do an upgrade install? If so, did you stop any running Trac server before doing the upgrade?
This is an often overlooked step, which will inevitably lead to the problem you mentioned.
I too have this problem. No, <checking process list> python isn't even running, much less tracd.
But what do you mean "upgrade install", there is no opportunity to specify an "upgrade" to the windows installer. The install did find my existing 2.5 installation of Python, if that's what you mean?
Haven't tried the workaround yet (.zip), but I thought I'd confirm this before going any further.
Python on XP Pro
Ken
P.S. Sorry about anonymous … never needed to post before! (will sign up as soon as I get a chance. :\ )
comment:4 by , 16 years ago
One other note …
I tried installing the newest Genshi, as the install instructions for 0.11.0 imply, but there was no change in the error.
Ken
comment:5 by , 16 years ago
Hi Ken, I've met the same problem, and it seems cannot be resolved as long as stuck using the installer. Simply download the .zip file, unzip, and run "setup.py install" works fine for me. Hope it helps.
comment:6 by , 16 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
As far as I can tell, there's no such issue with the new installer (0.11.3).
If someone has this problem again, then please look in:
<your-python-install-folder>/Lib/site-packages/
There you should find one Trac-*-py2.3.egg-info/ folder, with * replaced by the version number you've just installed. The content of that folder should also reflect the proper version (in particular the PKG-INFO file).
comment:7 by , 16 years ago
Side note: I just noticed by accident one situation where you would get that error, even with a correctly installed package. If you are located in a folder which contains another Trac installation, that one might get picked first.
Example:
repos/trunk$ /C/Dev/Python244/Scripts/trac-admin.exe -h Traceback (most recent call last): ... raise DistributionNotFound(req) # XXX put more info here pkg_resources.DistributionNotFound: Trac==0.11.3 repos/trunk$ cd .. repos$ /C/Dev/Python244/Scripts/trac-admin.exe -h trac-admin - The Trac Administration Console 0.11.3 Usage: trac-admin </path/to/projenv> [command [subcommand] [option ...]] ...
In that example, trunk contains a Trac.egg-info/ with 0.12dev version information.
Python 2.3.5 and 2.4.4 on Windows seem to give priority to the local directory, whereas 2.5.4 and 2.6.1 do not.
Did you do an upgrade install? If so, did you stop any running Trac server before doing the upgrade?
This is an often overlooked step, which will inevitably lead to the problem you mentioned.