Skip to content

AttributeError: type object pandas._TSObject has no attribute __reduce_cython__ #22426

@isanmu

Description

@isanmu

Problem description

First
With pandas(0.23.4) imported, I use pyinstaller 3.3.1 to package my program, when open the .exe program, it reminded me error message as bellow and self-closing then.
" File "pandas\_libs\tslibs\conversion.pyx", line 222, in init pandas._libs.tslibs.conversion AttributeError: type object pandas._TSObject has no attribute __reduce_cython__"

Second
When i changed the pandas(0.23.4) to pandas(0.20.3), the issue can be solved, but i prefer to the new features of pandas's new version, so how can i solve this issue with pandas(0.23.4)? Waiting for your reply, thanks!

Expected Output

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None
python: 3.6.5.final.0
python-bits: 32
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.23.4
pytest: None
pip: 18.0
setuptools: 28.8.0
Cython: 0.28.5
numpy: 1.15.0
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.7.3
pytz: 2018.4
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.2.2
openpyxl: 2.5.3
xlrd: 1.1.0
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs InfoClarification about behavior needed to assess issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions