Page 1 of 1

Issues Running OpenCap locally

Posted: Fri Sep 27, 2024 4:06 pm
by sashaportnova
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!

Re: Issues Running OpenCap locally

Posted: Sun Oct 06, 2024 11:43 pm
by antoinefalisse
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

Re: Issues Running OpenCap locally

Posted: Sun Oct 06, 2024 11:45 pm
by sashaportnova
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.

Re: Issues Running OpenCap locally

Posted: Tue Oct 08, 2024 11:05 am
by antoinefalisse
Thanks, will take a look.