BlendArMocap icon indicating copy to clipboard operation
BlendArMocap copied to clipboard

Getting error while installing on windows

Open aaiguy opened this issue 3 years ago • 5 comments

Hi , I'm trying to install BlendArMocap addon in windows after pressing install I get some installation error as shown in image Screenshot (57)

I opened Blender with administrative access still I'm getting above error related to pip install using sys.process

aaiguy avatar Jul 22 '22 06:07 aaiguy

@cgtinker hey can you answer this please?

aaiguy avatar Jul 31 '22 07:07 aaiguy

I don't know this bug, no idea how to reproduce it. Atm I'm working on a standalone executable to get rid of dependency issues in the future. Please copy the log from the system console, maybe there's some valuable information.

Besides, you may install the dependencies manually:

  1. Find the path to blenders python binary, to do so, navigate to blenders python console and run the cmds:
import sys
sys.executable
  1. Copy the path you've received, then open the terminal and install the dependencies manually:
{path_to_blenders_python} -m ensurepip
{path_to_blenders_python} -m pip install protobuf==3.20.0
{path_to_blenders_python} -m pip install opencv-contrib-python==4.5.5.64
{path_to_blenders_python} -m pip install mediapipe==0.8.10

cgtinker avatar Aug 01 '22 17:08 cgtinker

hi @cgtinker thanks for reply, i get none when I execute sys.executable however I found out python binary and installed all depedencies manually but when I try to use addon from sidebar i get installation instruction again as shown in below screenshot. How to skip this and use addon Screenshot (69)

and system concsole log error as shown below while installing addons Screenshot (70)

aaiguy avatar Aug 02 '22 05:08 aaiguy

hi @cgtinker any updates on my followup question?

aaiguy avatar Aug 06 '22 15:08 aaiguy

  1. Copy the path you've received, then open the terminal and install the dependencies manually:
{path_to_blenders_python} -m ensurepip
{path_to_blenders_python} -m pip install protobuf==3.20.0
{path_to_blenders_python} -m pip install opencv-contrib-python==4.5.5.64
{path_to_blenders_python} -m pip install mediapipe==0.8.10

This worked for me.

@aaiguy is {path_to_blenders_python} -m ensurepip giving any errors? In my case it first said 'site-packages is not writeable'. It would still install the packages, but in the wrong location. I had to open the terminal as an administrator to fix this issue. If you navigate to {path_to_blenders_python}/lib/site-packages in the file explorer, the dependencies should show up here.

jwestendorp avatar Aug 18 '22 16:08 jwestendorp

I'm about to release a new version next week you can give it a try on the main branch, if any issues arise please refer to #131

cgtinker avatar Feb 22 '23 12:02 cgtinker