PIL and LXML not working with easy_install

Posted by richard_e on 2011-12-16 07:35
Forums: PyPM | OS: Windows 7

Hello,

I am running python 2.7 on windows 7 and I cannot get PIL or the LXML packages to install. I would be very grateful for any help you could give me. The outputs are:

******************************PIL*******************************

c:\Python27>easy_install PIL 2>&1 c:\pil.txt
Searching for PIL
Reading http://pypi.python.org/simple/PIL/
Download error: timed out -- Some packages may not be found!
Reading http://pypi.python.org/simple/PIL/
Reading http://www.pythonware.com/products/pil
Reading http://effbot.org/zone/pil-changes-115.htm
Reading http://effbot.org/downloads/#Imaging
Best match: PIL 1.1.7
Downloading http://effbot.org/media/downloads/PIL-1.1.7.tar.gz
Processing PIL-1.1.7.tar.gz
Running PIL-1.1.7\setup.py -q bdist_egg --dist-dir c:\users\rearl\appdata\local\
temp\easy_install-8md965\PIL-1.1.7\egg-dist-tmp-dt6te6
WARNING: '' not a valid package name; please use only.-separated package names i
n setup.py
Traceback (most recent call last):
File "C:\Python27\Scripts\easy_install-script.py", line 9, in
load_entry_point('distribute==0.6.19', 'console_scripts', 'easy_install')()
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line
1864, in main
with_ei_usage(lambda:
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line
1845, in with_ei_usage
return f()
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line
1868, in
distclass=DistributionWithoutHelpCommands, **kw
File "C:\Python27\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line
345, in run
self.easy_install(spec, not self.no_deps)
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line
585, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line
615, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line
805, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line
1082, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line
1071, in run_setup
run_setup(setup_script, args)
File "c:\python27\lib\site-packages\setuptools\sandbox.py", line 30, in run_se
tup
lambda: execfile(
File "c:\python27\lib\site-packages\setuptools\sandbox.py", line 72, in run
return func()
File "c:\python27\lib\site-packages\setuptools\sandbox.py", line 32, in
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 486, in
File "C:\Python27\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "c:\python27\lib\site-packages\setuptools\command\bdist_egg.py", line 179
, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "c:\python27\lib\site-packages\setuptools\command\bdist_egg.py", line 166
, in call_command
self.run_command(cmdname)
File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "c:\python27\lib\site-packages\setuptools\command\install_lib.py", line 2
0, in run
self.build()
File "C:\Python27\lib\distutils\command\install_lib.py", line 111, in build
self.run_command('build_ext')
File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "setup.py", line 368, in build_extensions
File "C:\Python27\lib\distutils\command\build_ext.py", line 449, in build_exte
nsions
self.build_extension(ext)
File "C:\Python27\lib\distutils\command\build_ext.py", line 499, in build_exte
nsion
depends=ext.depends)
File "C:\Python27\lib\distutils\msvc9compiler.py", line 473, in compile
self.initialize()
File "C:\Python27\lib\distutils\msvc9compiler.py", line 383, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "C:\Python27\lib\distutils\msvc9compiler.py", line 299, in query_vcvarsal
l
raise ValueError(str(list(result.keys())))
ValueError: [u'path']

******************************LXML*******************************

c:\Python27>easy_install lxml
Searching for lxml
Reading http://pypi.python.org/simple/lxml/
Download error: timed out -- Some packages may not be found!
Reading http://pypi.python.org/simple/lxml/
Reading http://codespeak.net/lxml
Best match: lxml 2.3.2
Downloading http://pypi.python.org/packages/source/l/lxml/lxml-2.3.2.tar.gz#md5=
50ed3706da4665c40600fd6e2a7d1159
Processing lxml-2.3.2.tar.gz
Running lxml-2.3.2\setup.py -q bdist_egg --dist-dir c:\users\rearl\appdata\local
\temp\easy_install-e95co1\lxml-2.3.2\egg-dist-tmp-ndzhq4
Building lxml version 2.3.2.
Building without Cython.
ERROR: 'xslt-config' is not recognized as an internal or external command,
operable program or batch file.

** make sure the development packages of libxml2 and libxslt are installed **

Using build configuration of libxslt
warning: no files found matching 'lxml.etree.c' under directory 'src\lxml'
warning: no files found matching 'lxml.objectify.c' under directory 'src\lxml'
warning: no files found matching 'lxml.etree.h' under directory 'src\lxml'
warning: no files found matching 'lxml.etree_api.h' under directory 'src\lxml'
warning: no files found matching 'etree_defs.h' under directory 'src\lxml'
warning: no files found matching 'pubkey.asc' under directory 'doc'
warning: no files found matching 'tagpython*.png' under directory 'doc'
warning: no files found matching 'Makefile' under directory 'doc'
Traceback (most recent call last):
File "C:\Python27\Scripts\easy_install-script.py", line 9, in
load_entry_point('distribute==0.6.19', 'console_scripts', 'easy_install')()
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line
1864, in main
with_ei_usage(lambda:
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line
1845, in with_ei_usage
return f()
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line
1868, in
distclass=DistributionWithoutHelpCommands, **kw
File "C:\Python27\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line
345, in run
self.easy_install(spec, not self.no_deps)
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line
585, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line
615, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line
805, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line
1082, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line
1071, in run_setup
run_setup(setup_script, args)
File "c:\python27\lib\site-packages\setuptools\sandbox.py", line 30, in run_se
tup
lambda: execfile(
File "c:\python27\lib\site-packages\setuptools\sandbox.py", line 72, in run
return func()
File "c:\python27\lib\site-packages\setuptools\sandbox.py", line 32, in
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 233, in
File "C:\Python27\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "c:\python27\lib\site-packages\setuptools\command\bdist_egg.py", line 179
, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "c:\python27\lib\site-packages\setuptools\command\bdist_egg.py", line 166
, in call_command
self.run_command(cmdname)
File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "c:\python27\lib\site-packages\setuptools\command\install_lib.py", line 2
0, in run
self.build()
File "C:\Python27\lib\distutils\command\install_lib.py", line 111, in build
self.run_command('build_ext')
File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "c:\python27\lib\site-packages\setuptools\command\build_ext.py", line 46,
in run
_build_ext.run(self)
File "C:\Python27\lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "C:\Python27\lib\distutils\command\build_ext.py", line 449, in build_exte
nsions
self.build_extension(ext)
File "c:\python27\lib\site-packages\setuptools\command\build_ext.py", line 182
, in build_extension
_build_ext.build_extension(self,ext)
File "C:\Python27\lib\distutils\command\build_ext.py", line 499, in build_exte
nsion
depends=ext.depends)
File "C:\Python27\lib\distutils\msvc9compiler.py", line 473, in compile
self.initialize()
File "C:\Python27\lib\distutils\msvc9compiler.py", line 383, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "C:\Python27\lib\distutils\msvc9compiler.py", line 299, in query_vcvarsal
l
raise ValueError(str(list(result.keys())))
ValueError: [u'path']

Sorry for the long post and all help is very gratefully received.......

Richard

sridharr
ActiveState Staff
Thu, 2011-12-22 14:03

richard_e | Fri, 2011-12-23 02:51

Thanks very much for the suggestion.
I have just tried using "pypm install pil" and "pypm install lxml" but it asks for business edition....:(

sridharr
ActiveState Staff
Fri, 2011-12-23 09:14

You must have installed the 64-bit build of ActivePython - for which all packages require business editon. Try the 32-bit build.

richard_e | Mon, 2012-01-09 09:21

Sridharr

I cleaned my PC and installed 2.7.2.5 32 bit edition, then I tried pypm.install pil and pypm.install lxml and everything now works.

Thank you very much for your kind and patient help.
Regards

Richard