ptrvilya / blendify

Lightweight Python framework that provides a high-level API for creating and rendering scenes with Blender.
https://virtualhumans.mpi-inf.mpg.de/blendify/
GNU General Public License v3.0
408 stars 12 forks source link

Conflicting dependencies at installation time #6

Closed drprojects closed 1 year ago

drprojects commented 1 year ago

Hi, thanks for sharing this work !

I have been trying to pip install blendify but come across some dependency issues :

$ pip install blendify
Defaulting to user installation because normal site-packages is not writeable
Collecting blendify
  Downloading blendify-1.2.2-py3-none-any.whl (60 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.7/60.7 kB 2.8 MB/s eta 0:00:00
Requirement already satisfied: scipy in /home/ign.fr/drobert-admin/.local/lib/python3.10/site-packages (from blendify) (1.8.1)
Requirement already satisfied: numpy in /home/ign.fr/drobert-admin/.local/lib/python3.10/site-packages (from blendify) (1.24.2)
Collecting opencv-python-headless
  Downloading opencv_python_headless-4.7.0.72-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (49.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 49.2/49.2 MB 10.6 MB/s eta 0:00:00
Collecting blendify
  Downloading blendify-1.2.1-py3-none-any.whl (60 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.7/60.7 kB 4.3 MB/s eta 0:00:00
  Downloading blendify-1.2.0-py3-none-any.whl (60 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.0/61.0 kB 4.1 MB/s eta 0:00:00
ERROR: Cannot install blendify==1.2.0, blendify==1.2.1 and blendify==1.2.2 because these package versions have conflicting dependencies.

The conflict is caused by:
    blendify 1.2.2 depends on bpy==3.5.0
    blendify 1.2.1 depends on bpy==3.5.0
    blendify 1.2.0 depends on bpy==3.5.0

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: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

It seems bpy is needed, but I could not install the seemingly-required bpy==3.5.0 version, only the 3.4.0, even though the official bpy page suggests I should be able to install 3.5.0 .

Did you come across similar installation issues ? Thanks in advance for the help !

drprojects commented 1 year ago

Hi again, I managed to solve this problem. For the record, using a more recent conda=22.9.0 version and using python=3.10.9 solved the issue. Closing this issue. Cheers Damien