pyyolo icon indicating copy to clipboard operation
pyyolo copied to clipboard

pyyolo import error

Open jolsso opened this issue 8 years ago • 6 comments

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.

jolsso avatar Jul 09 '17 11:07 jolsso

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

digitalbrain79 avatar Jul 10 '17 11:07 digitalbrain79

Could you share Makefile and build process?

digitalbrain79 avatar Jul 11 '17 03:07 digitalbrain79

Hi Thomas

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

jolsso avatar Aug 12 '17 13:08 jolsso

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

atompie avatar Mar 07 '18 23:03 atompie

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

tylertroy avatar Apr 23 '18 23:04 tylertroy

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

lamaan123 avatar May 05 '18 12:05 lamaan123