Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 741446 - dev-python/pandas-1.1.2 error when importing pandas in python
Summary: dev-python/pandas-1.1.2 error when importing pandas in python
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-09 14:40 UTC by Hendrik Klug
Modified: 2021-03-28 16:29 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
output of "emerge --info" (emerge_info.txt,6.28 KB, text/plain)
2020-09-09 14:40 UTC, Hendrik Klug
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hendrik Klug 2020-09-09 14:40:46 UTC
Created attachment 659282 [details]
output of "emerge --info"

Hello, I get following error when importiung pandas in python:

python3.6 -c "import pandas"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python3.6/site-packages/pandas/__init__.py", line 142, in <module>
    from pandas.io.api import (
  File "/usr/lib64/python3.6/site-packages/pandas/io/api.py", line 8, in <module>
    from pandas.io.excel import ExcelFile, ExcelWriter, read_excel
  File "/usr/lib64/python3.6/site-packages/pandas/io/excel/__init__.py", line 1, in <module>
    from pandas.io.excel._base import ExcelFile, ExcelWriter, read_excel
  File "/usr/lib64/python3.6/site-packages/pandas/io/excel/_base.py", line 10, in <module>
    from pandas._libs.parsers import STR_NA_VALUES
ImportError: /usr/lib64/python3.6/site-packages/pandas/_libs/parsers.cpython-36m-x86_64-linux-gnu.so: undefined symbol: precise_xstrtod

output of "eix pandas":

[I] dev-python/pandas                                                                                                                                                                
     Available versions:  1.0.5^t (~)1.1.0^t (~)1.1.1^t (~)1.1.2^t {X doc full-support minimal test PYTHON_TARGETS="python3_6 python3_7 python3_8 python3_9"}                        
     Installed versions:  1.1.2^t(12:26:27 09/09/20)(X -doc -full-support -minimal -test PYTHON_TARGETS="python3_6 python3_7 -python3_8 -python3_9")                                 
     Homepage:            https://pandas.pydata.org/                                                                                                                                 
     Description:         Powerful data structures for data analysis and statistics
Comment 1 Jonas Stein gentoo-dev 2020-09-10 14:45:45 UTC
I had the same problem with lxml and saw several similar reports. Here lxml failed with py37, but worked with other versions. Could you test
python3.6 -c "import pandas" 
with several other versions?
Comment 2 Hendrik Klug 2020-09-10 19:05:55 UTC
Hello Jason,

thanks for the reply. I could resolve the bug with `emerge @preserved-rebuild`