-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_pyfreeling module not found #104
Comments
You'll find precompiled packages for version 4.2 in the "releases" section. They include python APIs |
I tried using the precompiled package (for MacOS). Was receiving |
I checked this issue. For some reason, python module loader expects the module to be called _pyfreeling.so instead of _pyfreeling.dylib If you rename or copy _pyfreeling.dylib to _pyfreeling.so it should work |
The precompiled package already includes an alias _pyfreeling.so that points to _pyfreeling.dylib. When I delete this alias and rename the .dylib to .so, the problem persists. DYLD_LIBRARY_PATH:
Perhaps this may be the reason? I've tried compiling everything as described in the documentation and then renaming the .dylib to .so, as well, but doing this gave Seg faults for some reason. |
That is a different problem. It is now finding the library, but then there is a problem with some of the boost dependencies. It may be you have more than one boost installed, and the loader is finding the wrong one. I also uploaded a new .pkg that has _pyfreeling.so compiled as a MODULE and not as SHARED (cmake stuff) which is supposed to be the right way for this case. You can try downloading it again. |
I updated my brew boost version and I get the same error now. The safest way will be rebuilding the API. Get lastest git master version and compile again. Cmake should build the .so library instead of the .dylib. Install it on a clean directory. |
I have installed everything with brew and currently have the most recent versions of all dependencies described here. I built from the latest git master version and I am getting a seg fault: I made the package with the following (and I properly export $FLINSTALL to a directory on my system):
I tried renaming the _pyfreeling.so to _pyfreeling.dylib and created an alias with the name _pyfreeling.so, and this also did not work; I got an When you recompiled, did the python3 API work for you? |
Yes, it worked for me. The segfault maybe due to differnt reasons. Did the C++ main "analyze -f en.cfg " work properly ? |
Yes, the main C++ I get the segfault the moment I try and I'm sure my paths ( SWIG: 4.02 |
I was able to get it to work - it was because I had multiple versions of python installed. It was building everything with python 3.8 but I was using anaconda python 3.7.6. Thanks for your help with this! |
Hello @lluisp. Thank you for developing such a wonderful tool for language processing. I'm having the same problem as @matt-nam. I compiled FreeLing 4.2 from source on macOS 11.1 to use with python. SWIG: 4.0.2 I'm having the same issue where I renamed _pyfreeling.dylib to _pyfreeling.so and I got the error @matt-nam how did you solve your issue with having multiple versions installed? I would appreciate any insight into this issue, as it seems to be recurrent. Thanks. |
It looks as if the loader is not finding the binary library libfreeling.dylib |
Hello,
I followed your instructions to build freeling from source to use it as a python3 API. However, checking all the step, running python sample.py > sample.txt still show _pyfreeling module not found. I checked that my DYLD_LIBRARY_PATH was correct with usr/local/lib and usr/local/share/freeling/APIs/python3. Any insight about why? thanks in advance.
The text was updated successfully, but these errors were encountered: