Hey folks. Opened a project today that I was working on for a week to find that it’s now throwing an error when trying to import numpy. I have no idea what this is about or how to start fixing it, because when I open a new project and import numpy, there’s no issue.
Attached is a screenshot of the error. Hope someone can help! There’s essentially nothing I can do with this without numpy
could you try deleting operators in your project and see when it starts without errors? This might already get you closer to the issue, but then you could also post the file here and it would make it easier to diagnose.
The error is appearing on the callbacks DAT for a script CHOP. It imports numpy, but then it also imports a DAT with util functions like so: utils = op("utils").module
This utils module also imports numpy. When I delete it, the error is resolved.
I can’t attach the entire file here as there’s an algorithm i’m not keen on making public yet, but I’m attaching a network with just the utils module and another DAT trying to import it.
Interestingly, after trying other methods to import it, the above error no longer occurs, and there’s just a module compilation error. It’s been a while since I’ve imported DATs as modules, maybe I’m doing something wrong? import_error.toe (4.0 KB)
Luckily all these functions already live in the callbacks DAT, I had just made the utils DAT to eventually clean it up, so I can delete it and continue working on the project. Thanks!
EDIT: I just tried opening that saved ‘import_error’ file again and doing the import, and now there’s no error when trying to import… I’m beyond confused