carlosedubarreto / b3d_mocap_import

addon for blender to import mocap data from tools like easymocap, frankmocap and Vibe
106 stars 14 forks source link

Traceback (most recent call last): #26

Closed JelleRouquart closed 3 years ago

JelleRouquart commented 3 years ago

error

This happens when I click on Animation MOCAP Import

carlosedubarreto commented 3 years ago

Please try this instructions.

https://www.patreon.com/posts/script-to-opencv-54890147

I think it only works with the portable version of blender. (the zip file)

JelleRouquart commented 3 years ago

Hey Carlos, I tried but it didn't work. Can you explain 'the portable version of blender' I found one but it just opened blender.

carlosedubarreto commented 3 years ago

Sure. Its this one https://www.blender.org/download/Blender2.93/blender-2.93.4-windows-x64.zip/

in the site you find it here (or download via the link i posted above image

JelleRouquart commented 3 years ago

Thankyou for the quick reply, I really appriciate it :)

But it still doesn't work...

  1. So I installed the Portable version of Blender

  2. Then I Installed the code in the scripting array of Blender: import subprocess import sys import os path to python.exe python_exe = os.path.join(sys.prefix, 'bin', 'python.exe') py_lib = os.path.join(sys.prefix, 'lib', 'site-packages','pip') ...........

  3. Then I tried to install the cv2 and Mediapipe: import cv2 import mediapipe

  4. But i still got the error: Traceback (most recent call last): File "<blender_console>, line 1, in <module> ModuleNotFoundError: No module named 'mediapipe''

carlosedubarreto commented 3 years ago

can you show what shows up in the console? after you run the code for the installation

JelleRouquart commented 3 years ago

Capture Capture02

carlosedubarreto commented 3 years ago

it would be this console image

JelleRouquart commented 3 years ago

Capture3

ow sorry here it is

JelleRouquart commented 3 years ago

should I do the command?

carlosedubarreto commented 3 years ago

From what you showed, looks like it is the problem I was expecting. The installation went to the system installation of python

Let me try on this... wait a moment please.

carlosedubarreto commented 3 years ago

can you go to cmd and run set pythonpath and show what shows up?

the screen bellow is just a reference of my pc before executing the command image

JelleRouquart commented 3 years ago

Just in command Prompt from windows? not in Blender? I am just new in blender sorry ;) (come from C4D) Capture04

carlosedubarreto commented 3 years ago

Yeah it was from windows. you did it correctly... let me try one more thing, just a moment again.

I wanted to test if we could make it work more easily. There is another solution but its not so user friendly

carlosedubarreto commented 3 years ago

I tried to make something easier but Iwont be able to give more time on it today... sorry.

But I have another issue explaining a way that was able to work can you try this solution?

https://github.com/carlosedubarreto/vibe_win_install/issues/17#issuecomment-899016167 It´s basically, getting the files from the place where python installed CV2, mediapipe and other packages and pasting manually to python folder inside blender

JelleRouquart commented 3 years ago

alright, thanks a lot for the help!! I will try it :)

JelleRouquart commented 3 years ago

It worked! I copied and pasted the files and is was allright! Thanks for the help! made my day 💯

carlosedubarreto commented 3 years ago

Thanks a lot for the feedback., Have fun 😊