Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 710030

Summary: dev-python/pandas-0.24.2 type object 'pandas._libs.tslibs.conversion._TSObject' has no attribute '__reduce_cython__'
Product: Gentoo Linux Reporter: Andrew Ammerlaan <andrewammerlaan>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: andrewammerlaan, juippis
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: buildlog without MAKEOPTS=j1
emerge --inof
buildlog with MAKEOPTS=j1

Description Andrew Ammerlaan gentoo-dev 2020-02-18 14:01:19 UTC
Pandas-0.24.2 seems to behave differently if it is built with MAKEOPTS=-j1. If it is built without MAKEOPTS=-j1, tests on dev-python/spyder fail:
============================================ ERRORS ============================================
__________________ ERROR collecting spyder_kernels/utils/tests/test_nsview.py __________________
spyder_kernels/utils/tests/test_nsview.py:18: in <module>
    import pandas as pd
/usr/lib64/python3.6/site-packages/pandas/__init__.py:26: in <module>
    from pandas._libs import (hashtable as _hashtable,
/usr/lib64/python3.6/site-packages/pandas/_libs/__init__.py:4: in <module>
    from .tslibs import (
/usr/lib64/python3.6/site-packages/pandas/_libs/tslibs/__init__.py:4: in <module>
    from .conversion import normalize_date, localize_pydatetime, tz_convert_single
pandas/_libs/tslibs/conversion.pyx:234: in init pandas._libs.tslibs.conversion
    ???
E   AttributeError: type object 'pandas._libs.tslibs.conversion._TSObject' has no attribute '__reduce_cython__'
!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!

It works just fine if pandas is built with MAKEOPTS=j1
Comment 1 Andrew Ammerlaan gentoo-dev 2020-02-18 14:03:25 UTC
Created attachment 614246 [details]
buildlog without MAKEOPTS=j1
Comment 2 Andrew Ammerlaan gentoo-dev 2020-02-18 14:04:59 UTC
Created attachment 614248 [details]
emerge --inof
Comment 3 Joonas Niilola gentoo-dev 2020-02-18 14:32:39 UTC
*** Bug 710062 has been marked as a duplicate of this bug. ***
Comment 4 Andrew Ammerlaan gentoo-dev 2020-02-18 15:00:49 UTC
Created attachment 614254 [details]
buildlog with MAKEOPTS=j1
Comment 5 Pacho Ramos gentoo-dev 2020-06-07 10:42:17 UTC
can you retry with 1.0.4?
Comment 6 Andrew Ammerlaan gentoo-dev 2020-06-07 12:33:44 UTC
(In reply to Pacho Ramos from comment #5)
> can you retry with 1.0.4?

Tests on spyder seem to pass just fine now with pandas-1.0.4 (without MAKEOPTS=-j1)

791 passed, 96 skipped, 3 xfailed, 68 warnings in 136.97s (0:02:16)