Colab Import Error
Posted: Wed Apr 10, 2024 12:17 pm
Hello, I'm getting an error importing packages in colab. I'm trying to run a kinematics analysis through the colab scripts. I get this error: ImportError Traceback (most recent call last)
<ipython-input-2-297b6a014f0a> in <cell line: 6>()
4 import numpy as np
5 import matplotlib.pyplot as plt
----> 6 import utilsKinematics
7 from utils import download_kinematics
1 frames
/content/opencap-processing/utils.py in <module>
35 from utilsAuthentication import get_token
36 import matplotlib.pyplot as plt
---> 37 from scipy.signal import gaussian
38
39
ImportError: cannot import name 'gaussian' from 'scipy.signal' (/usr/local/lib/python3.10/site-packages/scipy/signal/__init__.py)
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
Any help is appreciated, thank you!
<ipython-input-2-297b6a014f0a> in <cell line: 6>()
4 import numpy as np
5 import matplotlib.pyplot as plt
----> 6 import utilsKinematics
7 from utils import download_kinematics
1 frames
/content/opencap-processing/utils.py in <module>
35 from utilsAuthentication import get_token
36 import matplotlib.pyplot as plt
---> 37 from scipy.signal import gaussian
38
39
ImportError: cannot import name 'gaussian' from 'scipy.signal' (/usr/local/lib/python3.10/site-packages/scipy/signal/__init__.py)
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
Any help is appreciated, thank you!