You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current python binding includes include imp instruction, which will raise error with Python 3.12 or later because the imp module has been removed with Python 3.12.
When trying to regenerate the python binding with swig 4.2, the following warnings will appear:
-> % make swig-python
swig -Wall -c++ -python -outdir python marisa-swig.i
marisa-swig.h:55: Warning 321: 'str' conflicts with a built-in name in python
marisa-swig.h:56: Warning 321: 'id' conflicts with a built-in name in python
marisa-swig.h:69: Warning 321: 'str' conflicts with a built-in name in python
marisa-swig.h:70: Warning 321: 'id' conflicts with a built-in name in python
mv marisa-swig_wrap.cxx python
cp marisa-swig.cxx marisa-swig.h python
Please revise the Python binding and fix the warnings accordingly. Thanks!
The text was updated successfully, but these errors were encountered:
Unofficially, I have created bindings that can be built with Python 3.10 and later. The source code is derived from the original, and I have set it up for package management via pip and for building with Python 3.10 and later.
I have confirmed that the native libraries can be compiled correctly on macOS (Apple Silicon) and Windows (x86_64), but I have not tested on other operating systems or architectures, including Linux. If anyone has time to try it out, I would appreciate your feedback.
If everything works well, I will upgrade to version 1.0.0 and upload it to PyPI.
The name "marisa-trie" is already in use, and using "marisa-swig" would imply reliance solely on SWIG in the future, so I chose the name "marisa-bindings."
marisa-trie/bindings/python/marisa.py
Line 12 in 006020c
The current python binding includes
include imp
instruction, which will raise error with Python 3.12 or later because theimp
module has been removed with Python 3.12.Downstream bug report: https://bugs.debian.org/1061809
When trying to regenerate the python binding with swig 4.2, the following warnings will appear:
Please revise the Python binding and fix the warnings accordingly. Thanks!
The text was updated successfully, but these errors were encountered: