Question: (Closed) C extension: No module named 'pandas._libs.tslib' not built (pandas)
0
gravatar for Darill
11 months ago by
Darill30
Darill30 wrote:

'm actually using the pandas module in my script.

The scipt is running on a server in ssh with python3. Usually, I export the programm file on my home server and then I change the PYTHONPATH.

But I actually got this error message;

Traceback (most recent call last):
  File "/me/scripts/divergence.py", line 22, in <module>
    import pandas as pd
  File "/me/TOOLS/pandas-master/pandas/__init__.py", line 35, in <module>
    "the C extensions first.".format(module))
ImportError: C extension: No module named 'pandas._libs.tslib' not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace --force' to build the C extensions first.

Anyone has an idea?

THANKS

pandas python3 • 9.1k views
ADD COMMENTlink written 11 months ago by Darill30
1

have you ran the setup.py command that it suggests?

ADD REPLYlink written 11 months ago by russhh4.3k

Yes but there is no setup.py file in the pandas folder. Where should I run setup.py?

ADD REPLYlink written 11 months ago by Darill30
1

How was this installed?

ADD REPLYlink written 11 months ago by Devon Ryan89k

Usually, I export the programm file on my home server and then I change the PYTHONPATH

Why is that necessary? Can you add the commands you used?

ADD REPLYlink modified 11 months ago • written 11 months ago by WouterDeCoster38k

for exemple: export PYTHONPATH=$PYTHONPATH:/me/TOOLS/packages

ADD REPLYlink written 11 months ago by Darill30

Why is that necessary? How did you install these modules?

ADD REPLYlink written 11 months ago by WouterDeCoster38k

This is not bioinformatics, strictly speaking. If another mod agrees, the question can be closed and OP redirected to Stack Overflow.

ADD REPLYlink written 11 months ago by RamRS21k

Except if Toto26 can add some context to this post, convincing us this is bioinformatics?

ADD REPLYlink written 11 months ago by WouterDeCoster38k

Of course. However, installing pandas should be something to talk to SE, not us. We do install pandas, but we also set up NAS servers when required. Boundaries need to be drawn, no? :-)

ADD REPLYlink written 11 months ago by RamRS21k

See similar posts, with solutions: No module named 'pandas._libs.tslibs.timedeltas' in PyInstaller and Pandas missing 'pandas._libs.tslibs.timedeltas.so'.

ADD REPLYlink written 11 months ago by h.mon24k

Hello Toto26!

We believe that this post does not fit the main topic of this site, as it is not a strict bioinformatics question, and it is more suitable to Stack Overflow. For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree, please provide the background explaining the bioinformatics context, but before doing so, please first try the solutions from the links I provided.

Cheers!

ADD REPLYlink modified 11 months ago • written 11 months ago by h.mon24k
Please log in to add an answer.
The thread is closed. No new answers may be added.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 936 users visited in the last hour