Colab Import Error

New project for OpenCap, which is a new software package to estimate 3D human movement dynamics from smartphone videos. OpenCap strongly relies on OpenSim.
POST REPLY
User avatar
Aaron Gonzalez
Posts: 4
Joined: Sun Apr 07, 2024 11:34 am

Colab Import Error

Post by Aaron Gonzalez » 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!

User avatar
Antoine Falisse
Posts: 422
Joined: Wed Jan 07, 2015 2:21 am

Re: Colab Import Error

Post by Antoine Falisse » Fri Apr 19, 2024 11:27 am

There was a bug in the latest version of scipy. I fixed the scipy version and it should work now. Let us know otherwise.

POST REPLY