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

‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’ on Ubuntu 21.04 #22

Open
iebb opened this issue May 5, 2021 · 2 comments

Comments

@iebb
Copy link

iebb commented May 5, 2021

decrunch.cpp: In function ‘int __Pyx_modinit_type_init_code()’:
decrunch.cpp:3372:38: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
3372 | __pyx_type_8decrunch_UnpackContext.tp_print = 0;

System: Ubuntu 21.04 (GNU/Linux 5.11.0-16-generic x86_64)

@iebb
Copy link
Author

iebb commented May 5, 2021

installing from source using Cython works, while pip failed.

@lauhayden
Copy link

Root of the problem is that python3.9 removed tp_print, causing the pre-generated decrunch.cpp in the PyPI release to not compile. Installing from source using Cython works because the newer versions of Cython don't emit C++ sources that use tp_print.

See also: https://stackoverflow.com/questions/65462530/pyclipper-installation-error-tp-print-is-not-a-member-of-typeobject

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants