digitalbrain79 / pyyolo

Simple python wrapper for YOLO.
126 stars 65 forks source link

pyyolo import error #18

Open jolsso opened 7 years ago

jolsso commented 7 years ago

When I clone the repository and follow the instructions, I get the following error when trying to import pyyolo:

Python 2.7.12 (default, Nov 19 2016, 06:48:10) 
Type "copyright", "credits" or "license" for more information.

IPython 2.4.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import pyyolo
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-63420bffe21f> in <module>()
----> 1 import pyyolo

ImportError: /usr/local/lib/python2.7/dist-packages/pyyolo.so: undefined symbol: __cudaUnregisterFatBinary

I've tried both with setup.py and setup_gpu.py.

I have previously had pyyolo working on another PC 1-2 months ago.

digitalbrain79 commented 7 years ago

Sorry. I cannot know the reason. Could you rebuild all after removing 'build' directory?

digitalbrain79 commented 7 years ago

Could you share Makefile and build process?

jolsso commented 7 years ago

Hi Thomas

Sorry for the late response. This has been fixed in a later commit.

atompie commented 6 years ago

I have the same error on current release: (compilation without GPU)

Traceback (most recent call last): File "example.py", line 1, in import pyyolo ImportError: /usr/local/lib/python2.7/dist-packages/pyyolo.so: undefined symbol: _ZGVbN2vv___pow_finite

tylertroy commented 6 years ago

Atompie, make sure you use setup_gpu.py for both building and installing the module after compiling. That was my silly mistake anyway.

lamaan123 commented 6 years ago

So tylertroy, younare saying even if we compile without gpu we use the setup_gpu.py file. Right?