Windows install - missing pkg_resources module

4,108 views
Skip to first unread message

Jesse

unread,
Aug 23, 2010, 5:01:11 PM8/23/10
to Trac Users
I'm a newbie to Trac. Trying to install on Windows to demonstrate.
Not sure of the actual procedure to install (docs are very unfriendly!
IMHO)
So I started with this initenv, and got this ....

C:\Python27\Scripts>trac-admin.exe \Trac\JESS-PROJECT initenv
Traceback (most recent call last):
File "C:\Python27\Scripts\trac-admin-script.py", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

Ryan J Ollos

unread,
Aug 24, 2010, 2:43:31 AM8/24/10
to trac-...@googlegroups.com

I'd have to guess that PYTHONPATH is not setup correctly, but don't put too
much into that guess. In case you haven't come across these older
Windows-specific install instructions:
http://trac.edgewall.org/wiki/TracOnWindows/Python2.5

--
View this message in context: http://old.nabble.com/Windows-install---missing-pkg_resources-module-tp29516343p29519127.html
Sent from the Trac Users mailing list archive at Nabble.com.

Noah Kantrowitz

unread,
Aug 24, 2010, 1:06:36 PM8/24/10
to trac-...@googlegroups.com

On Aug 23, 2010, at 11:43 PM, Ryan J Ollos wrote:

>
>
>
> Jesse-64 wrote:
>>
>> I'm a newbie to Trac. Trying to install on Windows to demonstrate.
>> Not sure of the actual procedure to install (docs are very
>> unfriendly!
>> IMHO)
>> So I started with this initenv, and got this ....
>>
>> C:\Python27\Scripts>trac-admin.exe \Trac\JESS-PROJECT initenv
>> Traceback (most recent call last):
>> File "C:\Python27\Scripts\trac-admin-script.py", line 5, in <module>
>> from pkg_resources import load_entry_point
>> ImportError: No module named pkg_resources

That module is part of setuptools, which you need to install first.

--Noah

Jesse

unread,
Aug 24, 2010, 7:22:42 PM8/24/10
to Trac Users
Thanks for the help guys, but this Windows install is pretty opaque
and unforgiving.
Per instructions below I downloaded Genshi & setuptools, then ran
this:

C:\Python25\Lib\site-packages\genshi>python setup.py install
python: can't open file 'setup.py': [Errno 2] No such file or
directory

There is no setup.py file anywhere!!
It's not clear at all what the "that folder" refers to ... the .
\genshi directory?

For Trac install...
Where did the C:\SRC dir come from? There's no mention of how it got
there.
There is no "svn" program either.

ANY MORE CLUES!??


--------------------------
Installing Genshi¶
....
Correct version of Genshi => http://ftp.edgewall.com/pub/genshi/Genshi-0.5.1.win32-py2.5.exe

Unzip to a folder and then from that folder run python setup.py
install in a command window....
Then start command line for Genshi installation.)

Installing Trac¶
...

> cd C:\src
> svn checkout http://svn.edgewall.org/repos/trac/branches/0.11-stable
> cd 0.11-stable
> python setup.py install
> --Noah- Hide quoted text -
>
> - Show quoted text -

Erik Andersson

unread,
Aug 25, 2010, 2:13:54 AM8/25/10
to trac-...@googlegroups.com
On Wed, Aug 25, 2010 at 1:22 AM, Jesse <jesseh...@gmail.com> wrote:
Thanks for the help guys, but this Windows install is pretty opaque
and unforgiving.
Per instructions below I downloaded Genshi & setuptools, then ran
this:

C:\Python25\Lib\site-packages\genshi>python setup.py install
python: can't open file 'setup.py': [Errno 2] No such file or
directory

There is no setup.py file anywhere!!
It's not clear at all what the "that folder" refers to ... the .
\genshi directory?

For Trac install...
Where did the C:\SRC dir come from? There's no mention of how it got
there.
There is no "svn" program either.

ANY MORE CLUES!??


--------------------------
Installing Genshi¶
....
Correct version of Genshi =>  http://ftp.edgewall.com/pub/genshi/Genshi-0.5.1.win32-py2.5.exe

Unzip to a folder and then from that folder run python setup.py
install in a command window....
Then start command line for Genshi installation.)

You should read the installation instructions matching what you downloaded. Since you downloaded a binary installer, see: http://genshi.edgewall.org/wiki/Documentation/0.5.x/install.html#id3
And while you're at it, there is a newer version of Genshi available, maybe you should get that instead? http://genshi.edgewall.org/wiki/Download#Installers
 

Installing Trac¶
...

> cd C:\src
> svn checkout http://svn.edgewall.org/repos/trac/branches/0.11-stable
> cd 0.11-stable
> python setup.py install

C:\src = the path where you want to download (via svn checkout) the Trac source. If you want to checkout code via svn you first need to install svn. Why are you downloading an old release of Trac?
 


On Aug 24, 1:06 pm, Noah Kantrowitz <n...@coderanger.net> wrote:
> On Aug 23, 2010, at 11:43 PM, Ryan J Ollos wrote:
>
> > Jesse-64 wrote:
>
> >> I'm a newbie to Trac. Trying to install on Windows to demonstrate.
> >> Not sure of the actual procedure to install (docs are very unfriendly!
> >> IMHO)
> >> So I started with this initenv, and got this ....
>
> >> C:\Python27\Scripts>trac-admin.exe \Trac\JESS-PROJECT initenv
> >> Traceback (most recent call last):
> >>  File "C:\Python27\Scripts\trac-admin-script.py", line 5, in <module>
> >>    from pkg_resources import load_entry_point
> >> ImportError: No module named pkg_resources
>
> That module is part of setuptools, which you need to install first.
>
> --Noah- Hide quoted text -
>
> - Show quoted text -

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-...@googlegroups.com.
To unsubscribe from this group, send email to trac-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.


Roberto Longobardi

unread,
Aug 25, 2010, 4:01:32 AM8/25/10
to trac-...@googlegroups.com
Hi Erik,
today I had to setup on a single Windows machine an environment where Python 2.5 and 2.6, and Trac 0.11 and Trac 0.12 coexist.

You may want to take a look at the simple procedure in this post:

Ciao,
Roberto


2010/8/25 Erik Andersson <kir...@gmail.com>
Reply all
Reply to author
Forward
0 new messages