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

Installation/Compilation on Py3.8, 3.9, 3.11 fails - missing Python.h in mxTextTools #25

Open
martinpakosch opened this issue Nov 9, 2023 · 0 comments

Comments

@martinpakosch
Copy link

Hi, the package version 2.2.4 fails to install with pip.

<...snip...>
  gcc -pthread -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=g
eneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -
grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexc
eptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DMX_BUILDING_MXTEXTTOOLS=1 -DPY_SSIZE_T_CLEAN=1 -DDEBUG=1
 -Isimpleparse/stt/TextTools/mxTextTools -I/usr/include/python3.11 -c simpleparse/stt/TextTools/mxTextTools/mxTextTools.c -o build/temp.linux-x86_64-cpython-311/simpleparse/stt/TextTools/mxTextTools/mxTextTools.o
  In file included from simpleparse/stt/TextTools/mxTextTools/mxTextTools.c:18:
  simpleparse/stt/TextTools/mxTextTools/mx.h:60:10: fatal error: Python.h: No such file or directory
   #include "Python.h"
            ^~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/gcc' failed with exit code 1
  error: subprocess-exited-with-error

Please fix it asap. Thanks.

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

1 participant