-
Notifications
You must be signed in to change notification settings - Fork 53
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
Python 3.5 support #47
Comments
Thanks for the report. (side note: I will update docs to make these issues clearer) |
I tried it with the latest version and it failed in just the same way. I backed down and installed |
I am having the same (or a similar) problem.
no problems with the C++ code itself, seems to build fine with:
This code builds but I am new to python and not sure how to get it to install from pip.
gives the same or similar errors to wbecker.
|
I think the issue is that the wrapper file bundled with the 2015.12.3 release uses SWIG 3.0.7 or earlier, which causes these build problems. I will make a new release soon using SWIG 3.0.8 to generate the wrapper file which will hopefully address this problem. In the meantime, here's a possible workaround::
The first command will wipe out the SWIG-generated wrapper files (among other things) which will be regenerated during building. |
I'm still running into this issue running python 3.5.1 on Ubuntu 16.04. pip pulls down |
Thanks for the note @halfak. Sorry, this fell off my plate. I'll try to get a new-enough version of SWIG working this weekend and cut a new release. |
Alright, there's a new release (2016.9.11) which should work with Python 3.5/swig 3.0.8. Please let me know either way if it works or doesn't. Thanks! |
@anupamme, I am able to install bllipparser-2016.9.11 via pypi with pip. ubuntu - 16.04 |
Okay I am not able to install. These are the things I have tried:
I have tried it on 2 machines: Mac OS 10.11.5 (el capitan) So I am not sure what else I can try. So if someone can suggest that would be great. |
@anupamme Which errors are you seeing? |
On ubuntu 16.04 (installing using pypi): x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ifirst-stage/PARSE/ -I/usr/include/python3.5m -c first-stage/PARSE/swig/wrapper.C -o build/temp.linux-x86_64-3.5/first-stage/PARSE/swig/wrapper.o
Command "/usr/bin/python3.5 -u -c "import setuptools, tokenize;file='/tmp/pip-build-vn848n2m/bllipparser/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-j_za0ero-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-vn848n2m/bllipparser/ On Mac 10.11.5 (installing using pypi): /usr/bin/clang -fno-strict-aliasing -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c second-stage/programs/features/simple-api.cc -o build/temp.macosx-10.6-intel-3.5/second-stage/programs/features/simple-api.o -iquote second-stage/programs/features/ -DSWIGFIX -std=c++11
Command "/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;file='/private/tmp/pip-build-m2ez9evu/bllipparser/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-ur28p0hx-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-m2ez9evu/bllipparser/ |
For Ubuntu, looks like you're missing http://stackoverflow.com/questions/16880571/why-does-clang-lack-forward-list might be part of what's going on with Mac OS 10.11.5, but it's not clear to me why this works for others. |
Works on Ubuntu after installing libpython3.5-dev. On mac I am unsure why this is not working but may be I have beta version of xcode 8 and that is causing it. But I can live with it working on ubuntu so I am good to go. Thanks for the prompt help. |
When I try to build it with Python 3.5 I get the following error
I've never touched
swig
in my life, but looking at this it's seems that wrapper.C is not being regenerated properly.The text was updated successfully, but these errors were encountered: