Skip to content
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

Python3 bindings (pip) not working #68

Closed
Paulo-Jorge-PM opened this issue Oct 25, 2021 · 3 comments
Closed

Python3 bindings (pip) not working #68

Paulo-Jorge-PM opened this issue Oct 25, 2021 · 3 comments

Comments

@Paulo-Jorge-PM
Copy link

Python 3 installation is not working, both on Linux (Python 3.8 on Ubuntu 18 and 20) and Windows (10 Python 3.5).

I am trying to install it with "pip3 install bllipparser" but it always fails ("Don't know how to compile first-stage/PARSE/swig/wrapper.C" etc.). Using "make" is not working also.

Thanks for your work.

@Paulo-Jorge-PM Paulo-Jorge-PM changed the title Python bidings not working Python3 bindings (pip) not working Oct 25, 2021
@dmcc
Copy link
Member

dmcc commented Oct 27, 2021

Thanks for the report! I think the issue is that the generated SWIG files have gone bad with the latest versions of things. I'll try to do a new PyPI release soon, but in the meantime, does it help if you run:

sudo apt-get install swig3.0 flex

and then try

python setup.py build

@Paulo-Jorge-PM
Copy link
Author

You are the best, it works now! Thank you very much! I am building an hobbie text editor for linguistics and Thursday will have a presentation - it stopped crashing, you saved me in good time :)

For anyone with the same problem:

Installed the missing dependencies in Ubuntu 20 (Python 3.8): sudo apt-get install swig3.0 flex
Dowloaded the Git repository;
Extracted it and went to its dir and: python3 setup.py build
All went ok. In the end, in the "builds" folder you will find the built "bllipparser" folder ready for use, just copy paste it to the root dir of some script/app that needs it and done: bllipparser back to life.

Thanks

dmcc added a commit that referenced this issue Nov 7, 2021
Bonus: New release on PyPI should help with
#68
@dmcc
Copy link
Member

dmcc commented Nov 7, 2021

For others who find this bug: There's a new version of BLLIP Parser at https://pypi.org/project/bllipparser/2021.11.7/

This should fix the build issues. If not, please reopen this bug!

@dmcc dmcc closed this as completed Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants