Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > installing setuptools on Windows custom python install

Thread Tools

installing setuptools on Windows custom python install

Eric Frederich
Posts: n/a

I have a python installation that I built myself using Visual Studio 2005.
I need this version because I need to link Python bindings to a 3rd
party library that uses VS 2005.

I want to get setuptools installed to this Python installation but the
installer won't find my version of Python even if it is on the PATH
and PYTHONHOME is set.
So, I am trying to build setuptools but when I run "python
install" I get the following error.
Any ideas either on how to get the installer to find my installation
or on how to get this to compile?

F:\pyside\setuptools-0.6c11>python install
running install
Traceback (most recent call last):
File "", line 94, in <module>
scripts = scripts,
File "F:\My_Python27\lib\distutils\", line 152, in setup
File "F:\My_Python27\lib\distutils\", line 953, in run_commands
File "F:\My_Python27\lib\distutils\", line 972, in run_command
File "F:\pyside\setuptools-0.6c11\setuptools\command\",
line 76, in run
File "F:\pyside\setuptools-0.6c11\setuptools\command\",
line 85, in do_egg_install
easy_install = self.distribution.get_command_class('easy_install' )
File "F:\pyside\setuptools-0.6c11\setuptools\", line 395, in
self.cmdclass[command] = cmdclass = ep.load()
File "F:\pyside\setuptools-0.6c11\", line 1954, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "F:\pyside\setuptools-0.6c11\setuptools\command\",
line 21, in <module>
from setuptools.package_index import PackageIndex, parse_bdist_wininst
File "F:\pyside\setuptools-0.6c11\setuptools\", line
2, in <module>
import sys, os.path, re, urlparse, urllib2, shutil, random,
socket, cStringIO
File "F:\My_Python27\lib\", line 94, in <module>
import httplib
File "F:\My_Python27\lib\", line 71, in <module>
import socket
File "F:\My_Python27\lib\", line 47, in <module>
import _socket
ImportError: No module named _socket

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install setuptools...egg? Rolf Python 3 08-30-2009 06:33 PM
Re: Easy install / setuptools Gabriel Genellina Python 1 06-03-2008 04:24 PM
Install man-pages with distutils/setuptools Hartmut Goebel Python 1 05-17-2008 06:16 PM
Installing modules via setuptools in a script Thorsten Kampe Python 7 11-26-2007 04:25 PM
setuptools bbfreeze install egg error Python 0 08-07-2007 08:24 AM