New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyinstaller and pandas._libs.tslibs.timedeltas #3015

j-h-m opened this Issue Nov 19, 2017 · 4 comments


None yet
3 participants

j-h-m commented Nov 19, 2017

I tried asking this question first on the IRC channel but got no responses.

Machine setup:
OS: Debian 9.2 stretch
Kernel: x86_64 Linux 4.9.0-4-amd64
WM: Xfwm4
WM Theme: Default
CPU: Intel Core i7 CPU 860 @ 2.801GHz
GPU: GeForce 8400GS/PCIe/SSE2
RAM: 7946MiB

Python setup:
Python 3.5.3
pip version:
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.5)
venv version:
python3-venv/stable,stable,stable,now 3.5.3-1 amd64 [installed]

pyinstaller command (searches all directories in venv for modules)

pyinstaller --clean --paths /home/workit/Programming/pd-project-main/:/home/workit/Programming/pd-project-main/Plant-Digitization-Project/:/home/workit/Programming/pd-project-main/Plant-Digitization-Project/kraldesk/ -w --distpath /home/workit/Programming/pd-project-main/kraldesk-build --workpath /home/workit/Programming/pd-project-main/kraldesk-build-temp/ --specpath /home/workit/Programming/pd-project-main/kraldesk-build ./

Error (caused by running created executable)

ImportError: C extension: No module named 'pandas._libs.tslibs.timedeltas' not built. If you want to import pandas from the source directory, you may need to run 'python build_ext --inplace --force' to build the C extensions first.

python REPL in same venv

import pandas._libs.tslibs.timedeltas as pt_td

Help on module pandas._libs.tslibs.timedeltas in pandas._libs.tslibs:


return a casting of the unit represented to nanoseconds
round the fractional part of a float to our precision, p

pyx_capi = {'cast_from_unit': <capsule object "__pyx_t_5numpy_int6...
test = {}



This comment has been minimized.

su79eu7k commented Nov 20, 2017

Hello, did you checked following issue page? I've experienced the simillar problem but solved with proposed hook file on Pandas missing #2998


This comment has been minimized.

j-h-m commented Nov 20, 2017

So until he merges the pull request I should clone the repo and use the file you added?


This comment has been minimized.

j-h-m commented Nov 20, 2017

I added the hook file in the referenced pull request #2998 and that fixed my issue with pandas!


This comment has been minimized.


htgoebel commented Mar 13, 2018

Duplicate of #2978

@htgoebel htgoebel marked this as a duplicate of #2978 Mar 13, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment