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

Potential error in Python 3.8 #4

Closed
niemasd opened this issue Feb 18, 2020 · 1 comment
Closed

Potential error in Python 3.8 #4

niemasd opened this issue Feb 18, 2020 · 1 comment
Labels

Comments

@niemasd
Copy link

niemasd commented Feb 18, 2020

I'm installing on Alpine, and I'm getting the following error:

gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DSQLITE_PTR_SIZE=sizeof(long) -D__UNIX__ -D__MP__ -D__MP2__ -D_SLKP_LFENGINE_REWRITE_ -D__AFYP_REWRITE_BGM__ -D__HEADLESS__ -D_HYPHY_LIBDIRECTORY_="/usr/local/lib/hyphy" -D__HYPHY_64__ -I/tmp/pip-install-h2xsrw_c/hyphy-python/hyphy-src/src/core/include -I/tmp/pip-install-h2xsrw_c/hyphy-python/hyphy-src/src/new/include -I/tmp/pip-install-h2xsrw_c/hyphy-python/hyphy-src/src/gui/include -I/tmp/pip-install-h2xsrw_c/hyphy-python/Link -I/tmp/pip-install-h2xsrw_c/hyphy-python/hyphy-src/contrib -I/tmp/pip-install-h2xsrw_c/hyphy-python/hyphy-src/contrib/SQLite-3.8.2 -I/usr/include/python3.8 -c /tmp/pip-install-h2xsrw_c/hyphy-python/SWIGWrappers/THyPhy_py3.cpp -o build/temp.linux-x86_64-3.8/tmp/pip-install-h2xsrw_c/hyphy-python/SWIGWrappers/THyPhy_py3.o -Wno-int-to-pointer-cast -Wno-char-subscripts -Wno-sign-compare -Wno-parentheses -Wno-uninitialized -Wno-unused-variable -Wno-shorten-64-to-32 -fsigned-char -O3 -fpermissive -fPIC -fopenmp
    /tmp/pip-install-h2xsrw_c/hyphy-python/SWIGWrappers/THyPhy_py3.cpp: In function 'void SwigPyStaticVar_dealloc(PyDescrObject*)':
    /tmp/pip-install-h2xsrw_c/hyphy-python/SWIGWrappers/THyPhy_py3.cpp:3219:3: error: '_PyObject_GC_UNTRACK' was not declared in this scope; did you mean 'PyObject_GC_UnTrack'?
     3219 |   _PyObject_GC_UNTRACK(descr);
          |   ^~~~~~~~~~~~~~~~~~~~
          |   PyObject_GC_UnTrack
    At global scope:
    cc1plus: warning: unrecognized command line option '-Wno-shorten-64-to-32'
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-h2xsrw_c/hyphy-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-h2xsrw_c/hyphy-python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-nrn_3b1_/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

I Googled the error, and it seems to be an issue with Python 3.8: ufal/udpipe#117 (comment)

I think this is the corresponding line of your code: https://github.com/veg/hyphy-python/blob/master/SWIGWrappers/THyPhy_py3.cpp#L3219

@stevenweaver
Copy link
Member

Thank you @niemasd for bringing this to our attention,

This will likely require regenerating the SWIG wrappers with a newer version of SWIG.

Best,
Steven

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants