[Distutils] sandbox trying to run things before they're installed...again?

Ben Bangert ben at groovie.org
Tue Mar 7 20:36:49 CET 2006


I think I had this problem earlier, and it went away, but now its  
back for some reason. Several users have reported it to me as well.  
Apparently the sandbox testing runs, and tries to import a package  
that wasn't installed yet. Is there anyway to make it actually  
install dependencies *before* doing its sandbox stuff?

Thanks,
Ben


The traceback looks like this:

[ben-bangerts-power-mac-g4:~] ben% sudo easy_install -U Pylons==dev
Searching for Pylons==dev
Reading http://www.python.org/pypi/Pylons/
Reading http://pylons.groovie.org/
Best match: Pylons dev
Downloading http://pylons.groovie.org/svn/Pylons/trunk#egg=Pylons-dev
Doing subversion checkout from http://pylons.groovie.org/svn/Pylons/ 
trunk to /tmp/easy_install-8oXRPG/trunk
Processing trunk
Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-8oXRPG/ 
trunk/egg-dist-tmp-vH9ebx
Traceback (most recent call last):
   File "/usr/local/bin/easy_install", line 6, in ?
     sys.exit(
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/setuptools-0.6a10-py2.4.egg/setuptools/ 
command/easy_install.py", line 1506, in main
     with_ei_usage(lambda:
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/setuptools-0.6a10-py2.4.egg/setuptools/ 
command/easy_install.py", line 1495, in with_ei_usage
     return f()
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/setuptools-0.6a10-py2.4.egg/setuptools/ 
command/easy_install.py", line 1509, in <lambda>
     distclass=DistributionWithoutHelpCommands, **kw
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/distutils/core.py", line 149, in setup
     dist.run_commands()
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/distutils/dist.py", line 946, in run_commands
     self.run_command(cmd)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/distutils/dist.py", line 966, in run_command
     cmd_obj.run()
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/setuptools-0.6a10-py2.4.egg/setuptools/ 
command/easy_install.py", line 211, in run
     self.easy_install(spec, not self.no_deps)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/setuptools-0.6a10-py2.4.egg/setuptools/ 
command/easy_install.py", line 446, in easy_install
     return self.install_item(spec, dist.location, tmpdir, deps)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/setuptools-0.6a10-py2.4.egg/setuptools/ 
command/easy_install.py", line 461, in install_item
     dists = self.install_eggs(spec, download, tmpdir)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/setuptools-0.6a10-py2.4.egg/setuptools/ 
command/easy_install.py", line 655, in install_eggs
     return self.build_and_install(setup_script, setup_base)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/setuptools-0.6a10-py2.4.egg/setuptools/ 
command/easy_install.py", line 930, in build_and_install
     self.run_setup(setup_script, setup_base, args)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/setuptools-0.6a10-py2.4.egg/setuptools/ 
command/easy_install.py", line 919, in run_setup
     run_setup(setup_script, args)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/setuptools-0.6a10-py2.4.egg/setuptools/ 
sandbox.py", line 26, in run_setup
     DirectorySandbox(setup_dir).run(
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/setuptools-0.6a10-py2.4.egg/setuptools/ 
sandbox.py", line 63, in run
     return func()
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/setuptools-0.6a10-py2.4.egg/setuptools/ 
sandbox.py", line 29, in <lambda>
     {'__file__':setup_script, '__name__':'__main__'}
   File "/Users/ben/Programming/Python/pudge/setup.py", line 5, in ?
     import os
   File "/tmp/easy_install-8oXRPG/trunk/pylons/__init__.py", line 6,  
in ?
   File "/tmp/easy_install-8oXRPG/trunk/pylons/decorators.py", line  
4, in ?
ImportError: No module named simplejson


More information about the Distutils-SIG mailing list