Closed nathanRamaNoodles closed 3 years ago
Hi! We have tested it with MSVC compiler under Windows. If PYTHONPATH
was modified properly, my best guess is that something was not properly executed during build_ext
. May be extract_poses
is not exported from the library? Anyway, the demo should be able run as is (but with Python post-processing).
I want the c++ processing for the Python demo since it is faster. How do I modify the PYTHONPATH
? Is it an environmental variable in windows? I used Visual Studio 2019 to compile.
Also, where should the .pyd file go?
data
models
pose_extractor
src
extract_poses.cpp
...
CMakeLists.txt
wrapper.cpp
pose_extractor.pyd <-- is here alright?
pose_extractor.lib
scripts
demo.py
Yes, you can check any answer to this question. The structure looks ok, it is expected that you will run demo.py
from cmd, something like this should work (not sure \\
or \
):
set PYTHONPATH=pose_extractor\\build\\;
python.exe demo.py ...
Turns out I had to call my openvino's setupvars.bat
before running demo.py
. I have no idea why.
Hi there! I am using a Windows 10 on an i5 cpu. Python version: 3.6
I successfully compiled my
.pyd
frompython setup.py build_ext
. I added the path in my environmental variables to a folder consisting only with the pose_extractor.pydBut when I run the camera demo, I get an issue:
Any idea why it isn't able to import the name?