Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"python setup.py install" is not working #5

Closed
ili3p opened this issue Jan 26, 2016 · 6 comments
Closed

"python setup.py install" is not working #5

ili3p opened this issue Jan 26, 2016 · 6 comments

Comments

@ili3p
Copy link

ili3p commented Jan 26, 2016

Problem 1: cannot install inspyred because of missing README.md file.
Error log:

Processing dependencies for pySOT==0.1.18
Searching for inspyred
Reading https://pypi.python.org/simple/inspyred/
Best match: inspyred 1.0.1
Downloading https://pypi.python.org/packages/source/i/inspyred/inspyred-1.0.1.tar.gz#md5=ce51b599f5682ec526c97412f3ebaf45
Processing inspyred-1.0.1.tar.gz
Writing /tmp/easy_install-3cWNNt/inspyred-1.0.1/setup.cfg
Running inspyred-1.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-3cWNNt/inspyred-1.0.1/egg-dist-tmp-_n29fg
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gz
Extracting in /tmp/easy_install-3cWNNt/inspyred-1.0.1/temp/tmpD3lh4S
Now working in /tmp/easy_install-3cWNNt/inspyred-1.0.1/temp/tmpD3lh4S/distribute-0.6.14
Building a Distribute egg in /tmp/easy_install-3cWNNt/inspyred-1.0.1
/tmp/easy_install-3cWNNt/inspyred-1.0.1/distribute-0.6.14-py2.7.egg
error: [Errno 2] No such file or directory: '/tmp/easy_install-3cWNNt/inspyred-1.0.1/README.md'

After manually installing inspyred and removing the need for README.md by editing inspyred's setup.cfg I have this problem:

Problem 2:

Processing dependencies for pySOT==0.1.18
Traceback (most recent call last):
  File "setup.py", line 15, in <module>
    'Programming Language :: Python :: 2.7',
  File "/home/ilija/anaconda2/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/home/ilija/anaconda2/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/home/ilija/anaconda2/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/home/ilija/anaconda2/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/setuptools/command/install.py", line 73, in run
    self.do_egg_install()
  File "/home/ilija/anaconda2/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/setuptools/command/install.py", line 101, in do_egg_install
    cmd.run()
  File "/home/ilija/anaconda2/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/setuptools/command/easy_install.py", line 342, in run
    self.easy_install(spec, not self.no_deps)
  File "/home/ilija/anaconda2/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/setuptools/command/easy_install.py", line 562, in easy_install
    return self.install_item(None, spec, tmpdir, deps, True)
  File "/home/ilija/anaconda2/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/setuptools/command/easy_install.py", line 614, in install_item
    self.process_distribution(spec, dist, deps)
  File "/home/ilija/anaconda2/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/setuptools/command/easy_install.py", line 666, in process_distribution
    [requirement], self.local_index, self.easy_install
  File "/home/ilija/anaconda2/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 557, in resolve
    requirements.extend(dist.requires(req.extras)[::-1])
  File "/home/ilija/anaconda2/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 2172, in requires
    dm = self._dep_map
  File "/home/ilija/anaconda2/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 2164, in _dep_map
    for extra,reqs in split_sections(self._get_metadata(name)):
  File "/home/ilija/anaconda2/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 2628, in split_sections
    for line in yield_lines(s):
  File "/home/ilija/anaconda2/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 1854, in yield_lines
    for ss in strs:
  File "/home/ilija/anaconda2/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 2186, in _get_metadata
    for line in self.get_metadata_lines(name):
  File "/home/ilija/anaconda2/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 1174, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "/home/ilija/anaconda2/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 1166, in get_metadata
    return self._get(self._fn(self.egg_info,name))
  File "/home/ilija/anaconda2/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 1231, in _get
    return self.loader.get_data(path)
zipimport.ZipImportError: bad local file header in /home/ilija/anaconda2/lib/python2.7/site-packages/pySOT-0.1.18-py2.7.egg

So I gave up, and installed via pip install pySOT

@dme65
Copy link
Owner

dme65 commented Jan 26, 2016

It is recommended to install pySOT using pip unless there is a good reason to install from source. The installation process seems to work fine if inspyred is installed separately before the pySOT installation is started. I would appreciate if you could check whether it is possible to install using the setup.py as follows (it works fine from my virtual environment):

pip install inspyred
python setup.py install

Thank you for pointing out this issue!

@ili3p
Copy link
Author

ili3p commented Jan 27, 2016

I can confirm that it installs without an issue.

Thanks for the awesome framework. Looking forward to using it.

@dme65
Copy link
Owner

dme65 commented Jan 27, 2016

I'm happy that it worked and I'm glad you like pySOT. Thanks again for pointing out the installation issue. The documentation has been updated appropriately.

@dme65 dme65 closed this as completed Jan 27, 2016
@gvola
Copy link

gvola commented Feb 6, 2017

I cannot solve my issue when installing dragnet package ...
zipimport.ZipImportError: bad local file header in /usr/local/lib/python2.7/dist-packages/dragnet-1.1.0-py2.7-linux-x86_64.egg
Any idea ? Thanks

@dme65
Copy link
Owner

dme65 commented Feb 6, 2017

Please open a new issue since this isn't related to inspyred, which isn't a pySOT dependency anymore.

@ili3p
Copy link
Author

ili3p commented Feb 6, 2017

@gvola looks like corrupted file to me. Try clearing out the zipimport cache and redownloading the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants