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

Installing qibo breaks installation from source #504

Closed
stavros11 opened this issue Nov 7, 2021 · 2 comments
Closed

Installing qibo breaks installation from source #504

stavros11 opened this issue Nov 7, 2021 · 2 comments
Labels
bug Something isn't working question Further information is requested

Comments

@stavros11
Copy link
Member

Describe the bug

I noticed some strange behavior while trying to test qiboteam/qibotf#17 in my laptop. It seems that installing qibo using python setup.py develop breaks some package used by pip install / python setup.py making it impossible to install other libraries after.

To Reproduce

  1. Create a clean python environment, for example using python -m virtualenv test-env
  2. Install qibo from source using python setup.py develop. This ends with the following error:
error: pyparsing 3.0.4 is installed but pyparsing<3,>=2.0.2 is required by {'packaging'}

but qibo is still successfully installed and usable.
3. Try to install some other library, eg. qibojit, using python setup.py develop. This fails with the following error:

pkg_resources.ContextualVersionConflict: (pyparsing 3.0.4 (/home/stavros/PythonEnvs/test2-env/lib/python3.8/site-packages/pyparsing-3.0.4-py3.8.egg), Requirement.parse('pyparsing<3,>=2.0.2'), {'packaging'})

and qibojit is not usable. It is still possible to install libraries from pypi using pip, but not from source using pip install ..

It is the first time I notice something like this.

@stavros11 stavros11 added bug Something isn't working question Further information is requested labels Nov 7, 2021
@stavros11 stavros11 changed the title Installing qibo breaks pip install (?) Installing qibo breaks installation from source Nov 7, 2021
@mlazzarin
Copy link
Contributor

It looks like a conflict between sub-dependencies. Take a look at pypa/packaging#471 and pypa/packaging#481.

@mlazzarin
Copy link
Contributor

As a temporary fix, you can remove packaging==21.x and install packaging==21.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants