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.

no attribute __reduce_cython__

See original GitHub issue

https://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:closed
  • Created 6 years ago
  • Comments:36 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
Hellcat1005commented, May 10, 2018

@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.

0reactions
scodercommented, Aug 1, 2018

One more thing to add, since it came up along the way: calling Py_Initialize() after Py_Finalize() is not actually supported in CPython: https://bugs.python.org/issue34309

Read more comments on GitHub >

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

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