Build failure under Python-3.9
See original GitHub issueI tried to build marisa-trie
with python-3.9 and failed with following error:
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Imarisa-trie/include -I/opt/python3.9/include/python3.9 -c src/marisa_trie.cpp -o build/temp.linux-x86_64-3.9/src/marisa_trie.o
src/marisa_trie.cpp: In function ‘int __Pyx_modinit_type_init_code()’:
src/marisa_trie.cpp:17944:34: error: ‘PyTypeObject {aka struct _typeobject}’ has no member named ‘tp_print’
__pyx_type_11marisa_trie__Trie.tp_print = 0;
From documentation follows that tp_print
was removed in Python-3.9: https://docs.python.org/dev/whatsnew/3.9.html#id3 .
Issue Analytics
- State:
- Created 3 years ago
- Reactions:9
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Pyenv and Python 3.9.1. - BUILD FAILED on Big Sur
The following error message appears, consistently. BUILD FAILED (OS X 11.4 using python-build 20180424) Inspect or clean up the working tree ...
Read more >Changelog — Python 3.11.1 documentation
gh-87235: On macOS python3 /dev/fd/9 9</path/to/script.py failed for any script longer than a couple of bytes.
Read more >Not Able to Build Some Versions of Python on M1 at 12.3.1
I trying to build older version of python such as 3.6, 3.7, 3.8 using pyenv and having build failures. I am on apple...
Read more >Prepare to move to Python 3.9 venv, build fails ciso8601
So I am preparing to move HA to Python 3.9, setting up a new venv to build everything in. I'm running Ubuntu Focal,...
Read more >1794293 – meson fails to build with Python 3.9 with tests ...
Python 3.9 will be included in Fedora 33. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.9....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Since this project is unmaintained, I’ve published a fork that supports Python 3.9 and has prebuilt wheels:
https://pypi.org/project/marisa-trie-m/
Fixed in master (b8f0cfd49a53914eb6c92f8d6d26f7cf366f8042).