-
Notifications
You must be signed in to change notification settings - Fork 34
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
pip install pyfst fails on OSX Yosemite #24
Comments
I just ran into this issue too, from what I can tell this is a compiler error, and you need to specify the use of a newer compiler (which you can install with homebrew). |
I made some progress on this issue, but it's still not fixed. with homebrew install gcc4.7
Inside the setup.py file after the imports of modules add the following:
It now compiles/builds, however it still isn't functioning... |
can you expand on "it still isn't functioning.." ? On Mon, Oct 12, 2015 at 2:42 AM, Ogi Moore [email protected] wrote:
|
After the compile finishes, I start python, and upon running import fst, I
get errors about symbols missing from _fst.so
Sorry I can't give a more accurate error, I'm at work right now, I'll
follow up when I get home.
|
Here is an example error I get after a successful compile of pyfst:
I can successfully build with later versions of gcc, but I get errors similar to this one. Suggestions? EDIT: I should point out I'm using the UFAL-DSG fork of pyfst as it has been more recently updated; however development has stopped there as well. |
I'm guessing this is because of a Python version mismatch. I see you have On Mon, Oct 12, 2015 at 7:30 PM, Ogi Moore [email protected] wrote:
|
I can try it later; however I do have pyfst working* on on my linux system with python 3. Again, note that I am using this fork: https://github.com/UFAL-DSG/pyfst of pyfst (not this one). ** for some reason the plotting within the jupyter notebook doesn't work with python 3, but works with python 2. |
I got it working! there are a number of steps to be done here, not sure if they're all necessary but this is what I did
⋅⋅1. near the top of the file, after the imports, add the following two lines of code:
you will then be able to start a python kernel and import fst |
This is great. Well done! Pyfst is notoriously hard to install. It will be On Wed, Oct 14, 2015 at 1:47 AM, Ogi Moore [email protected] wrote:
|
Not sure how a python library would work in a docker image on its own,but There is still the IPython/Jupyter plotting issue that occurs when running
|
My only worry is steps 3&4.
This could cause other builds to fail. Did you try using LD_LIBRARY_PATH On Thu, Oct 15, 2015 at 1:12 PM, Delip Rao [email protected] wrote:
|
So after talking with one of the developers for openfst, it turns out that openfst now (as of 1.5.0) supports python bindings, you just need to add --enable-python in the compile options. Alternatively, you can perform a "pip install openfst" as well; however a lot of the same issues we've encountered here (won't compile, symbol not found, etc) are still occurring. I'm shifting my efforts to getting the openfst python bindings working as pyfst development seems to have been abandoned. |
Strange that it can't seem to find the unordered_map header. Any suggestions?
The text was updated successfully, but these errors were encountered: