ModuleNotFoundError: No module named 'pandas'

Asked by Ruidong LI

Hi! I am trying to test the code 'oedometric.py' in the folder 'clumps-breakage' (https://gitlab.com/yade-dev/trunk/blob/master/examples/clumps-breakage/oedometric.py) on ubuntu 22.04 but failed. The error is presented as below:

Traceback (most recent call last):
  File "/home/kyle7/Yade/install/bin/yade-2023-05-15.git-a46ea55", line 343, in runScript
    execfile(script,globals())
  File "/usr/lib/python3/dist-packages/past/builtins/misc.py", line 87, in execfile
    exec_(code, myglobals, mylocals)
  File "/home/kyle7/Yade/install/bin/clumps-breakage/oedometric.py", line 3, in <module>
    import pandas as pd
ModuleNotFoundError: No module named 'pandas'

Can someone help me with this? Many thanks.
Kyle

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Ruidong LI
Solved:
Last query:
Last reply:
Revision history for this message
Karol Brzezinski (kbrzezinski) said :
#1

Hi Kyle,

Just install pandas before running the script:
sudo apt install python3-pandas

Cheers
Karol

Revision history for this message
Ruidong LI (kyle2000) said :
#2

Hi Karol,

This solved my problem. Many thanks.

Cheers
Kyle