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

Bug 710062

Summary: dev-python/pandas: weird runtime issues when compiled with default MAKEOPTS
Product: Gentoo Linux Reporter: Joonas Niilola <juippis>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Joonas Niilola gentoo-dev 2020-02-18 14:28:12 UTC
[ebuild   R    ] dev-python/pandas-0.24.2::gentoo  USE="X (-doc) -full-support -minimal -test" PYTHON_TARGETS="python3_6 python3_7" 0 KiB

If I compile it with default settings, 
  MAKEOPTS="-j16 -l16"

I start getting these weird assertion errors:
============================================ 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 !!!!!!!!!!!!!!!!!!!!!!!!!!!!

On different packages that import from pandas.

It is weirdly fixed by emerging pandas with MAKEOPTS="-j1". Maybe the installation phase can't keep up with higher MAKEOPTS?

Fast-fix: Just export MAKEOPTS="-j1" in the ebuild.
Comment 1 Joonas Niilola gentoo-dev 2020-02-18 14:32:39 UTC

*** This bug has been marked as a duplicate of bug 710030 ***