FORTH-ModelBasedTracker / PyOpenPose

Python bindings for the Openpose library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImportError: dynamic module does not define module export function (PyInit_PyOpenPose)

Gloriabhsfer opened this issue · comments

Hi all:

I have met the same issue of #51
PyOpenPose is not on your pythonpath. Did building it work? If so, you have to add the path to the .so file to your search path for python modules.

Originally posted by @christian-lanius in #51 (comment)

Seems it's my PYTHONPATH directory not right. So I re-set my python path to where has Pyopenpose.so.
And I got another error like this:
https://pastebin.com/d1SFc246
Because openpose has update their API, I am afraid this issue is because the version of PyOpenpose is not up to date.
Is that mean I can only choose to use the python-API in OpenPose?

My System Configuration

OpenPose version: 1.5.0

General configuration:

Installation mode: CMake-GUI
Operating systemUbuntu 16.04
Compiler gcc -11
3rd-party software:

Caffe version: 10.01
CMake version (cmake --version in Ubuntu):3.5.1
If GPU mode issue:


CUDA version (cat /usr/local/cuda/version.txt in most cases):CUDA Version 10.0.130
GPU model (nvidia-smi in Ubuntu):
 NVIDIA-SMI 418.87.01    Driver Version: 418.87.01    CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce RTX 2070    Off  | 00000000:01:00.0  On |                  N/A |
|  0%   45C    P8    23W / 175W |    700MiB /  7951MiB |      2%      Default 

If Python API:
Python version:3.7
Numpy versionprint (numpy.version.version)1.16.4

My python path and openpose root path

(base) username@username:~$ echo $OPENPOSE_ROOT
/home/username/openpose
(base) username@username:~$ echo $PYTHONPATH
/home/username/PyOpenPose/build/PyOpenPoseLib

Thanks,
Gloria

Hi all:

I still cannot use PyOpenPose. But I find the Python API of OpenPose works, so I will close this issue.

Thanks,
Gloria