This is a test version of Biostars. For the public version, visit https://www.biostars.org.
C extension: No module named 'pandas._libs.tslib' not built (pandas)

'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

python3 pandas

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

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

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?

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

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

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

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

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? :-)

How was this installed?

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!

0 answers

No answers yet.

Log in to answer this question.