no attribute __reduce_cython__
See original GitHub issuehttps://github.com/cython/cython/issues/1894#issuecomment-339966952.
I’m getting an AttributeError
due to a missing __reduce_cython__
attribute in an embedded environment when I build lxml with Cython 0.26 or 0.27. 0.25(.2) works fine. The issue seems to be triggered by reinitializing the environment but unfortunately I was not able to find a minimal sample that replicates it yet.
I did a git-bisect and found https://github.com/cython/cython/commit/f8b3405e926d2ba9bc2ee24d79848235875ee12e to be the first broken commit.
Will try to find a simple test case, but I’m not sure how soon I’ll have a result.
EDIT: This was resolved in Cython 0.28. See https://github.com/cython/cython/issues/1953#issuecomment-398128940.
Issue Analytics
- State:
- Created 6 years ago
- Comments:36 (10 by maintainers)
Top Results From Across the Web
python reduce issue object has no attribute - Stack Overflow
The function that reduce takes has two parameters. Once is the current element being processed and the other is the accumulator (or running ......
Read more >AttributeError: 'list' object has no attribute 'lower' | bobbyhadz
The Python "AttributeError: 'list' object has no attribute 'lower'" occurs when we call the lower() method on a list instead of a string....
Read more >numba f.reduce : 'function' object has no attribute 'reduce' #2284
I cut the piece of code to test and it is OK. In my larger program, however, it reports " 'function' object has...
Read more >Built-in Functions — Python 3.11.1 documentation
Note: Unlike iter() , aiter() has no 2-argument variant. ... Changed in version 3.10: Class methods now inherit the method attributes ( __module__ ......
Read more >Error AttributeError NoneType object has no attribute extend
I tried it with reduce(), but I get an error. ... Python error "AttributeError: '_Screen' object has no attribute 'mainloop'" python module ...
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
@eliaperantoni I got AttributeError: type object ‘pandas._libs.tslib._TSObject’ has no attribute ‘reduce_cython’ as well. I solved this problem by using pandas-0.20.3, cython-0.27.3 and python-3.5.
One more thing to add, since it came up along the way: calling
Py_Initialize()
afterPy_Finalize()
is not actually supported in CPython: https://bugs.python.org/issue34309