Hi.
I've been using FuXi from the svn repository trunk for a while, no
problems. But then I needed to distribute and deploy a package which
depended on FuXi, automatically downloading and installing
dependencies using distrubute / setuptools. So I tried using
virtualenv 1.4.5 to see if I could do a clean install of Fuxi.
Unfortunately, it failed with an ImportError of the ez_setup module
(using distribute 0.6.10):
$ virtualenv --no-site-packages fuxi-test
$ cd fuxi-test
$ source bin/activate
(fuxi-test)$ easy_install fuxi
==================================
results:
Searching for fuxi
Reading
http://pypi.python.org/simple/fuxi/
Reading
http://code.google.com/p/python-dlp/wiki/FuXi
Reading
http://code.google.com/p/fuxi
Reading
http://python-dlp.googlecode.com/svn/trunk/fuxi/
Best match: FuXi
1.0-rc-II.dev
Downloading
http://pypi.python.org/packages/source/F/FuXi/FuXi-1.0-rc-II.dev.tar.gz#md5=74b218ca85c35899da41e397b317c18a
Processing FuXi-1.0-rc-II.dev.tar.gz
Running
FuXi-1.0-rc-II.dev/setup.py -q bdist_egg --dist-dir /tmp/
easy_install-QHtw0t/
FuXi-1.0-rc-II.dev/egg-dist-tmp-4vx6Jt
Traceback (most recent call last):
File "/home/herrmann/Documentos/desenvolvimento/sw/fuxi-test/bin/
easy_install", line 9, in <module>
load_entry_point('distribute==0.6.10', 'console_scripts',
'easy_install')()
File "/home/herrmann/Documentos/desenvolvimento/sw/fuxi-test/lib/
python2.6/site-packages/distribute-0.6.10-py2.6.egg/setuptools/command/
easy_install.py", line 1714, in main
with_ei_usage(lambda:
File "/home/herrmann/Documentos/desenvolvimento/sw/fuxi-test/lib/
python2.6/site-packages/distribute-0.6.10-py2.6.egg/setuptools/command/
easy_install.py", line 1695, in with_ei_usage
return f()
File "/home/herrmann/Documentos/desenvolvimento/sw/fuxi-test/lib/
python2.6/site-packages/distribute-0.6.10-py2.6.egg/setuptools/command/
easy_install.py", line 1718, in <lambda>
distclass=DistributionWithoutHelpCommands, **kw
File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.6/distutils/dist.py", line 975, in
run_commands
self.run_command(cmd)
File "/usr/lib/python2.6/distutils/dist.py", line 995, in
run_command
cmd_obj.run()
File "/home/herrmann/Documentos/desenvolvimento/sw/fuxi-test/lib/
python2.6/site-packages/distribute-0.6.10-py2.6.egg/setuptools/command/
easy_install.py", line 236, in run
self.easy_install(spec, not self.no_deps)
File "/home/herrmann/Documentos/desenvolvimento/sw/fuxi-test/lib/
python2.6/site-packages/distribute-0.6.10-py2.6.egg/setuptools/command/
easy_install.py", line 471, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/home/herrmann/Documentos/desenvolvimento/sw/fuxi-test/lib/
python2.6/site-packages/distribute-0.6.10-py2.6.egg/setuptools/command/
easy_install.py", line 501, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/home/herrmann/Documentos/desenvolvimento/sw/fuxi-test/lib/
python2.6/site-packages/distribute-0.6.10-py2.6.egg/setuptools/command/
easy_install.py", line 680, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/home/herrmann/Documentos/desenvolvimento/sw/fuxi-test/lib/
python2.6/site-packages/distribute-0.6.10-py2.6.egg/setuptools/command/
easy_install.py", line 957, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/home/herrmann/Documentos/desenvolvimento/sw/fuxi-test/lib/
python2.6/site-packages/distribute-0.6.10-py2.6.egg/setuptools/command/
easy_install.py", line 946, in run_setup
run_setup(setup_script, args)
File "/home/herrmann/Documentos/desenvolvimento/sw/fuxi-test/lib/
python2.6/site-packages/distribute-0.6.10-py2.6.egg/setuptools/
sandbox.py", line 29, in run_setup
lambda: execfile(
File "/home/herrmann/Documentos/desenvolvimento/sw/fuxi-test/lib/
python2.6/site-packages/distribute-0.6.10-py2.6.egg/setuptools/
sandbox.py", line 70, in run
return func()
File "/home/herrmann/Documentos/desenvolvimento/sw/fuxi-test/lib/
python2.6/site-packages/distribute-0.6.10-py2.6.egg/setuptools/
sandbox.py", line 31, in <lambda>
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 1, in <module>
ImportError: No module named ez_setup
==================================
Is this the same issue as described before in this topic? I see that
distribute (setuptools) tried to download and install FuXi 1.0 RC2, so
maybe the problem is that this issue is already solved in the trunk
version, but not yet in the version linked at PyPI.
I wonder how William Waites solved this problem in ORDF, as it is a
package that depends on FuXi. How could one install such a package,
automatically using setuptools / distribute, without having to
manually install FuXi from the trunk?
Cheers,
Augusto Herrmann