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

Pip installation conflict #10

Open
robertoost opened this issue May 24, 2021 · 3 comments
Open

Pip installation conflict #10

robertoost opened this issue May 24, 2021 · 3 comments

Comments

@robertoost
Copy link
Contributor

Installing this package using pip fails due to a dependency conflict between pyvista and vtk.

Full log below:

Installing pyiges...
Error:  An error occurred while installing pyiges!
Error text: Collecting pyiges
  Using cached pyiges-0.1.5-py3-none-any.whl (1.0 MB)
Collecting tqdm
  Using cached tqdm-4.61.0-py2.py3-none-any.whl (75 kB)
Collecting geomdl
  Using cached geomdl-5.3.1-py2.py3-none-any.whl (147 kB)
Collecting pyvista>=0.28.0
  Using cached pyvista-0.30.1-py3-none-any.whl (1.2 MB)
Collecting numpy
  Using cached numpy-1.20.3-cp39-cp39-win_amd64.whl (13.7 MB)
Collecting pillow
  Using cached Pillow-8.2.0-cp39-cp39-win_amd64.whl (2.2 MB)
Collecting transforms3d==0.3.1
  Using cached transforms3d-0.3.1.tar.gz (62 kB)
Collecting scooby>=0.5.1
  Using cached scooby-0.5.7-py3-none-any.whl (13 kB)
Collecting pyvista>=0.28.0
  Using cached pyvista-0.30.0-py3-none-any.whl (1.2 MB)
  Using cached pyvista-0.29.1-py3-none-any.whl (1.2 MB)
  Using cached pyvista-0.29.0-py3-none-any.whl (1.2 MB)
  Using cached pyvista-0.28.1-py3-none-any.whl (1.2 MB)
  Using cached pyvista-0.28.0-py3-none-any.whl (1.2 MB)
INFO: pip is looking at multiple versions of pyiges to determine which version is compatible with other requirements. This could take a while.
Collecting pyiges
  Using cached pyiges-0.1.4-py3-none-any.whl (1.0 MB)
  Using cached pyiges-0.1.3-py3-none-any.whl (14 kB)
  Using cached pyiges-0.1.2-py3-none-any.whl (12 kB)
  Using cached pyiges-0.1.1-py3-none-any.whl (12 kB)
Collecting pyvista>=0.22.0
  Using cached pyvista-0.27.4-py3-none-any.whl (1.2 MB)
  Using cached pyvista-0.27.3-py3-none-any.whl (1.2 MB)
  Using cached pyvista-0.27.2-py3-none-any.whl (1.2 MB)
  Using cached pyvista-0.27.1-py3-none-any.whl (1.2 MB)
  Using cached pyvista-0.27.0-py3-none-any.whl (1.2 MB)
  Using cached pyvista-0.26.1-py3-none-any.whl (1.2 MB)
  Using cached pyvista-0.26.0-py3-none-any.whl (1.2 MB)
  Using cached pyvista-0.25.3-py3-none-any.whl (1.2 MB)
  Using cached pyvista-0.25.2-py3-none-any.whl (1.2 MB)
  Using cached pyvista-0.25.1.tar.gz (1.2 MB)
Collecting imageio
  Using cached imageio-2.9.0-py3-none-any.whl (3.3 MB)
Collecting appdirs
  Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting meshio<5.0,>=4.0.3
  Using cached meshio-4.4.3-py3-none-any.whl (153 kB)
Collecting pyvista>=0.22.0
  Using cached pyvista-0.24.3.tar.gz (1.2 MB)
  Using cached pyvista-0.24.2.tar.gz (1.2 MB)
  Using cached pyvista-0.24.1.tar.gz (1.2 MB)
  Using cached pyvista-0.24.0.tar.gz (1.2 MB)
  Using cached pyvista-0.23.1.tar.gz (1.2 MB)
  Using cached pyvista-0.23.0.tar.gz (1.2 MB)
  Using cached pyvista-0.22.4.tar.gz (1.2 MB)
  Using cached pyvista-0.22.2.tar.gz (1.2 MB)
  Using cached pyvista-0.22.1.tar.gz (1.2 MB)
  Using cached pyvista-0.22.0.tar.gz (1.2 MB)

The conflict is caused by:
    pyvista 0.30.1 depends on vtk
    pyvista 0.30.0 depends on vtk
    pyvista 0.29.1 depends on vtk
    pyvista 0.29.0 depends on vtk
    pyvista 0.28.1 depends on vtk
    pyvista 0.28.0 depends on vtk
    pyvista 0.27.4 depends on vtk
    pyvista 0.27.3 depends on vtk
    pyvista 0.27.2 depends on vtk
    pyvista 0.27.1 depends on vtk
    pyvista 0.27.0 depends on vtk
    pyvista 0.26.1 depends on vtk
    pyvista 0.26.0 depends on vtk
    pyvista 0.25.3 depends on vtk
    pyvista 0.25.2 depends on vtk
    pyvista 0.25.1 depends on vtk
    pyvista 0.24.3 depends on vtk
    pyvista 0.24.2 depends on vtk
    pyvista 0.24.1 depends on vtk
    pyvista 0.24.0 depends on vtk
    pyvista 0.23.1 depends on vtk
    pyvista 0.23.0 depends on vtk
    pyvista 0.22.4 depends on vtk
    pyvista 0.22.2 depends on vtk
    pyvista 0.22.1 depends on vtk
    pyvista 0.22.0 depends on vtk

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict


ERROR: Cannot install pyiges because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

Installation Failed
@robertoost
Copy link
Contributor Author

pyvista/pyvista#534 seems to be relevant for this issue

@robertoost
Copy link
Contributor Author

Apparently, manually installing vtk is a solution. There's a wheel available for vtk 9.0.1, which should solve the dependency issue. However, at this time the wheel is not available for python 3.9, so I installed python 3.8.9. Then, I ran this command

pip install https://www.vtk.org/files/release/9.0/vtk-9.0.1-cp38-cp38-win_amd64.whl

After which the regular pip install pyiges ran like it should. There might be more complicated options to install vtk for Python 3.9, but I have not explored them. And the wheel for 3.9 seems to be almost ready anyway.

Perhaps an addition to the installation instructions in the README is in order, although this might just be a very specific and temporary issue.

@akaszynski
Copy link
Member

I'm going to try to fix this issue on the pyvista side since we're limited to the delays for VTK wheels.

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

2 participants