mcfletch / simpleparse

SimpleParse parser generator using mxTextTools (launchpad mirror)
Other
10 stars 12 forks source link

Cannot import simpleparse.stt.TextTools #20

Open fweimer-rh opened 1 year ago

fweimer-rh commented 1 year ago

This is with SimpleParse 2.2.3, installed via pip, but I think the current upstream sources are the same:

# python3
Python 3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import simpleparse.stt.TextTools
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib64/python3.11/site-packages/simpleparse/stt/TextTools/__init__.py", line 9, in <module>
    from .TextTools import *
  File "/usr/local/lib64/python3.11/site-packages/simpleparse/stt/TextTools/TextTools.py", line 15, in <module>
    from .mxTextTools import *
  File "/usr/local/lib64/python3.11/site-packages/simpleparse/stt/TextTools/mxTextTools/__init__.py", line 9, in <module>
    from simpleparse.stt.TextTools.mxTextTools.mxTextTools import *
ImportError: /usr/local/lib64/python3.11/site-packages/simpleparse/stt/TextTools/mxTextTools/mxTextTools.cpython-311-x86_64-linux-gnu.so: undefined symbol: Py_UNICODE_COPY
>>> 

Maybe the C extension module should simply be removed if it is not needed?