DIYer22 / bpycv

Computer vision utils for Blender (generate instance annoatation, depth and 6D pose by one line code)
MIT License
464 stars 58 forks source link

Installation gets stuck on error and retrying pip install bpycv #31

Closed bmiserez closed 2 years ago

bmiserez commented 2 years ago

Hi, thanks for the great initiative of creating this package.

I am having trouble with the installation. I have windows 10, blender 2.82, python 3.7.4, pip 21.3.1. There is no module ensurepip, and I seem to be unable to install it. When I execute blender -b --python-expr "__import__('pip._internal')._internal.main(['install', '-U', 'bpycv'])", the terminal gets in a loop of error and retrying to install. The error output is shown in the added screenshots, with the second screenshot looping.

Any clue on how to solve this?

Thanks!

ss1 ss2

jackyzyb commented 2 years ago

Same here on MacOS.

DIYer22 commented 2 years ago

I have repeated this error on Windows. The solution is: /blender-path/2.xx/python/bin/python3.7m -m pip install bpycv

jackyzyb commented 2 years ago

python3.7m

The problem was addressed when I switched to a Macbook with an intel chip (before was M1). (It's this true that bpycv is not supported on M1?)

Another two weird issues: 1) bpycv is successfully installed with Blender 2.9.1 version (i.e., failed with2.8.3, 2.8.1, 2.8.0). Haven't checked this is due to my laptop or sth else. 2) when using bpycv + Blender 2.9.1, I cannot set the engine as CYCLES. The error is raised by this line: https://github.com/DIYer22/bpycv/blob/master/bpycv/render_utils.py#L56

DIYer22 commented 2 years ago

Sorry, I don't have a Mac environment to test. Maybe it's better to run bpycv through docker on Mac

bmiserez commented 2 years ago

I have repeated this error on Windows. The solution is: /blender-path/2.xx/python/bin/python3.7m -m pip install bpycv

Perfect, this works for me! Thanks a lot