anvil-dev team mailing list archive
-
anvil-dev team
-
Mailing list archive
-
Message #00031
smithy bootstrap of pip dependencies appear broken for 'clean' installs
Hi,
I believe the bootstrap step for pypi is broken for installs on a 'clean' host. I infer from the output that hgtools (which is installed as a pip package) is required for the pre/post install phase of one some subsequent pip package. Here is the expurgated version (full output attached):
> Installing pypi dependencies…
…SNIP…
> warning: no previously-included files matching '*.aux' found under directory 'docs'
> Downloading/unpacking hgtools (from -r tools/pip-requires (line 3))
> Downloading hgtools-2.0.2.zip
> Running setup.py egg_info for package hgtools
…SNIP..
> Downloading/unpacking keyring>=0.9.2 (from -r tools/pip-requires (line 4))
> Downloading keyring-1.0.zip (61Kb): 61Kb downloaded
> Running setup.py egg_info for package keyring
> zip_safe flag not set; analyzing archive contents...
>
> Installed /tmp/easy_install-SM0Psj/pytest-runner-1.2/hgtools-2.0.2-py2.6.egg
>
> Installed /home/dmercer/anvil/build/keyring/pytest_runner-1.2-py2.6.egg
> Traceback (most recent call last):
…SNIP…
> ImportError: No module named hgtools.plugins
If the hgtools package is installed in advance of the other pip dependencies all is well. I like the recent change where the pip deps were removed from smithy and into tools/pip-requires, but it may be necessary to do the pip installs in multiple phases.
Installing pypi dependencies...
Downloading/unpacking Cheetah==2.4.4 (from -r tools/pip-requires (line 7))
Downloading Cheetah-2.4.4.tar.gz (190Kb): 190Kb downloaded
Running setup.py egg_info for package Cheetah
warning: no files found matching 'examples'
warning: no files found matching 'docs'
warning: no files found matching 'bin'
warning: no files found matching '*' under directory 'docs'
warning: no files found matching '*' under directory 'examples'
warning: no previously-included files matching '*.pyc' found under directory 'cheetah'
warning: no previously-included files matching '*~' found under directory 'cheetah'
warning: no previously-included files matching '*.aux' found under directory 'cheetah'
warning: no previously-included files matching '*~' found under directory 'docs'
warning: no previously-included files matching '*.aux' found under directory 'docs'
Downloading/unpacking hgtools (from -r tools/pip-requires (line 3))
Downloading hgtools-2.0.2.zip
Running setup.py egg_info for package hgtools
Downloading/unpacking keyring>=0.9.2 (from -r tools/pip-requires (line 4))
Downloading keyring-1.0.zip (61Kb): 61Kb downloaded
Running setup.py egg_info for package keyring
zip_safe flag not set; analyzing archive contents...
Installed /tmp/easy_install-SM0Psj/pytest-runner-1.2/hgtools-2.0.2-py2.6.egg
Installed /home/dmercer/anvil/build/keyring/pytest_runner-1.2-py2.6.egg
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/dmercer/anvil/build/keyring/setup.py", line 92, in <module>
setup_mod.setup(**setup_params)
File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands
self.run_command(cmd)
File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "<string>", line 12, in replacement_run
File "/usr/lib/python2.6/site-packages/setuptools/command/egg_info.py", line 254, in find_sources
mm.run()
File "/usr/lib/python2.6/site-packages/setuptools/command/egg_info.py", line 308, in run
self.add_defaults()
File "/usr/lib/python2.6/site-packages/setuptools/command/egg_info.py", line 335, in add_defaults
rcfiles = list(walk_revctrl())
File "/usr/lib/python2.6/site-packages/setuptools/command/sdist.py", line 46, in walk_revctrl
for item in ep.load()(dirname):
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1948, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named hgtools.plugins
Complete output from command python setup.py egg_info:
zip_safe flag not set; analyzing archive contents...
Installed /tmp/easy_install-SM0Psj/pytest-runner-1.2/hgtools-2.0.2-py2.6.egg
Installed /home/dmercer/anvil/build/keyring/pytest_runner-1.2-py2.6.egg
running egg_info
creating pip-egg-info/keyring.egg-info
writing requirements to pip-egg-info/keyring.egg-info/requires.txt
writing pip-egg-info/keyring.egg-info/PKG-INFO
writing top-level names to pip-egg-info/keyring.egg-info/top_level.txt
writing dependency_links to pip-egg-info/keyring.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/keyring.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/dmercer/anvil/build/keyring/setup.py", line 92, in <module>
setup_mod.setup(**setup_params)
File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands
self.run_command(cmd)
File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "<string>", line 12, in replacement_run
File "/usr/lib/python2.6/site-packages/setuptools/command/egg_info.py", line 254, in find_sources
mm.run()
File "/usr/lib/python2.6/site-packages/setuptools/command/egg_info.py", line 308, in run
self.add_defaults()
File "/usr/lib/python2.6/site-packages/setuptools/command/egg_info.py", line 335, in add_defaults
rcfiles = list(walk_revctrl())
File "/usr/lib/python2.6/site-packages/setuptools/command/sdist.py", line 46, in walk_revctrl
for item in ep.load()(dirname):
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1948, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named hgtools.plugins
----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in /root/.pip/pip.log
dlm
Follow ups