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

Error: Could not find suitable distribution for Requirement.parse('pyparsing>=1.5.5') #1

Closed
RockyZhangHKU opened this issue Jan 22, 2018 · 1 comment

Comments

@RockyZhangHKU
Copy link

Hi, I want to test the ac17.py scheme and need to install the Charm at first. While I meet this error when installing the charm cryptography library. My platform is ubuntu (16.04) and the python version is 2.7.12. The following error appears when executing make install.

No local packages or download links found for pyparsing>=1.5.5
error: Could not find suitable distribution for
Requirement.parse('pyparsing>=1.5.5')
Makefile:97: recipe for target 'install' failed

This is the output info when executing make install command.

removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing Charm_Crypto-0.42-py2.7-linux-x86_64.egg
removing '/usr/local/lib/python2.7/dist-packages/Charm_Crypto-0.42-py2.7-linux-x86_64.egg' (and everything under it)
creating /usr/local/lib/python2.7/dist-packages/Charm_Crypto-0.42-py2.7-linux-x86_64.egg
Extracting Charm_Crypto-0.42-py2.7-linux-x86_64.egg to /usr/local/lib/python2.7/dist-packages
Charm-Crypto 0.42 is already the active version in easy-install.pth

Installed /usr/local/lib/python2.7/dist-packages/Charm_Crypto-0.42-py2.7-linux-x86_64.egg
Processing dependencies for Charm-Crypto==0.42
Searching for pyparsing>=1.5.5
Reading http://pypi.python.org/simple/pyparsing/
Couldn't find index page for 'pyparsing' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for pyparsing>=1.5.5
error: Could not find suitable distribution for Requirement.parse('pyparsing>=1.5.5')
Makefile:97: recipe for target 'install' failed

I have tried to fix this error and google some solution, someone said I should install pip and python setuptools and then install an old version of pyparsing (1.5.7). But this will appear another error also about pyparsing. I guess the key issue is pyparsing, and these are the files under the folder python2.7/dist-packages as following.

root@rocky-VirtualBox:/usr/local/lib/python2.7/dist-packages# ls
Charm_Crypto-0.42-py2.7-linux-x86_64.egg  pyparsing-1.5.7.dist-info
distribute-0.6.24-py2.7.egg               pyparsing.py
easy-install.pth                          pyparsing.pyc
easy_install.py                           setuptools
easy_install.pyc                          setuptools-0.6c11-py2.7.egg-info
pip                                       setuptools-38.4.0.dist-info
pip-9.0.1.dist-info                       setuptools.pth
pkg_resources
@RockyZhangHKU
Copy link
Author

I think I have found the reason. The key issue is the setup.py. There is one sentence announced that the pyparsing version needs to be checked from the pypi.python.org/simple/pyparsing. but actually it has been installed. I comment out this sentence in the setup.py and then fix it. The Charm has been installed and run make test successfully.

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

1 participant