-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import error npyx 4.0.6, python3.9 NameError: name 'KronDecomposed' is not defined` #398
Comments
Hi there! It seems like you are trying to import a dependency that you shouldn't need when using the boilerplate version of npyx: would you mind uninstalling it fully and reinstalling it from pip with 'pip install npyx', and let me how that goes? Hope you find it useful :) |
Tried again but the error persists. |
All right - can you tell me what was your exact procedure to install npyx (did you use a fresh conda environment?), and also tell me what is the installed version (you can find this out by running 'pip list' and scrolling to npyx in your terminal) |
version is 4.0.6 |
Hi Anto, Did you manage to get npyx to work for you? Indeed, it seems like you were importing packages that you shouldn't be importing when using the basic version - I would recommend uninstalling npyx (pip uninstall npyx) and reinstalling it from pip. |
The thing is that in my case npyx needs to be part of a larger environment. |
Hmmm I cannot reproduce your error with the MWE that you provided. It does sound like, because you have torch installed for cebra, that npyx believes that the 'developer' version is installed, but it should not pose any problem and I cannot reproduce your exact issue - this line should set KronDecomposed to None when laplace is not found:
Can you confirm that this MWE does cause an error for you:
(now, in the python session) |
Hi Anto, Any update? |
Dear Maxime,
Thanks for developing this nice package!
With npyx version 4.0.6 I get the error below after installing in a conda environment with
python==3.9
and trying to import fromnpyx.spk_wvf import get_peak_chan
. Can you reproduce the issue?Thanks for your help.
Anto
The text was updated successfully, but these errors were encountered: