question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build failure under Python-3.9

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
rushtercommented, Dec 17, 2020

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/

1reaction
BoboTiGcommented, Jul 27, 2021

Fixed in master (b8f0cfd49a53914eb6c92f8d6d26f7cf366f8042).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found