Issues Running OpenCap locally

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
Sasha Portnova
Posts: 3
Joined: Fri Sep 20, 2024 11:32 am

Issues Running OpenCap locally

Post by Sasha Portnova » Fri Sep 27, 2024 4:06 pm

My apologies if this seems like a trivial issue with a simple solution, but I haven't been able to fix this. Following all of the installation steps on the opencap-core github, I get "AttributeError: module 'numpy.typing' has no attribute 'NDArray'" when attempting to run reprocessSessions.py.

I thought it might be some old python dependency issues coming from my computer (although I've tried to trace all of the python folders from old projects and remove them and reinstalled everything a bunch of times), but the same problem persisted when I attempted to install this on a lab computer.

Am I missing anything? Installing and running things from the opencap-processing github works just fine.

Thanks in advance!

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

Re: Issues Running OpenCap locally

Post by Antoine Falisse » Sun Oct 06, 2024 11:43 pm

Hey, what line is triggering that issue? If you could provide the session ID and trial name youa re trying to reprocess data for that would be great. Thanks, Antoine

User avatar
Sasha Portnova
Posts: 3
Joined: Fri Sep 20, 2024 11:32 am

Re: Issues Running OpenCap locally

Post by Sasha Portnova » Sun Oct 06, 2024 11:45 pm

Hi Antoine! Matt was able to help me. It was an issue with the numpy version. Purely upgrading it didn't solve it, so we just ended up doing this:

Code: Select all

pip install numpy==1.25.0
and it worked great! Putting it out there in case it is of use to anyone else.

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

Re: Issues Running OpenCap locally

Post by Antoine Falisse » Tue Oct 08, 2024 11:05 am

Thanks, will take a look.

POST REPLY