Pomegranate: Not able to compile the cython library.

Created on 16 Jan 2018  路  4Comments  路  Source: jmschrei/pomegranate

Hi, hope you can help me, I am really desperate. I need to make some modification to the forward algorithm and compile my custom version of pomegranate. When i run setup.py with the command "python3 setup.py build_ext --inplace". I receive the following error:

/usr/bin/clang -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-3.5/pomegranateplus/utils.o -o build/lib.macosx-10.6-intel-3.5/POWERSPOTTING/codes/pomegranateplus/utils.cpython-35m-darwin.so
copying build/lib.macosx-10.6-intel-3.5/POWERSPOTTING/codes/pomegranateplus/BayesClassifier.cpython-35m-darwin.so -> POWERSPOTTING/codes/pomegranateplus
error: could not create 'POWERSPOTTING/codes/pomegranateplus/BayesClassifier.cpython-35m-darwin.so': No such file or directory

Do you have any suggestions what to do? My machine is a Mac with Sierra 10.12.6 and python 3.

Thanks in advance

Most helpful comment

It seems that deleting __init__.py works!

All 4 comments

Can you try removing all of the files that are not .py, .pyx, or .pxd from the library and recompile? Also, potentially try running python3 setup.py install instead.

Did this work out?

It seems that deleting __init__.py works!

Well, how do you build a cython package that requires an __init__.py if you have to delete it!!! This is driving me nuts.

Was this page helpful?
0 / 5 - 0 ratings