FORTH-ModelBasedTracker / PyOpenPose

Python bindings for the Openpose library
BSD 3-Clause "New" or "Revised" License
287 stars 80 forks source link

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

Closed Gloriabhsfer closed 5 years ago

Gloriabhsfer commented 5 years ago

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 https://github.com/FORTH-ModelBasedTracker/PyOpenPose/issues/51#issuecomment-388246288

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

Gloriabhsfer commented 5 years ago

Hi all:

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

Thanks, Gloria