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!
Issues Running OpenCap locally
- Antoine Falisse
- Posts: 439
- Joined: Wed Jan 07, 2015 2:21 am
Re: Issues Running OpenCap locally
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
- Sasha Portnova
- Posts: 3
- Joined: Fri Sep 20, 2024 11:32 am
Re: Issues Running OpenCap locally
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:
and it worked great! Putting it out there in case it is of use to anyone else.
Code: Select all
pip install numpy==1.25.0
- Antoine Falisse
- Posts: 439
- Joined: Wed Jan 07, 2015 2:21 am
Re: Issues Running OpenCap locally
Thanks, will take a look.