-
Notifications
You must be signed in to change notification settings - Fork 20
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
Undefined variable "py" or class "py.numpy.array" when running MATLAB wrapper #12
Comments
I installed Anaconda3 and got the same error above. |
Install Python (Cpython) from python.org/downloads. |
Hey! I've got problems as well to launch Python into MATLAB, and I've successfully made it work (after spending the whole afternoon) by following your instructions together with other info that I found on the internet regarding the same problem with other Python packages. Yay! Also, I've created this tutorial for those who might have the same issues in the future and probably end up on this very page. I hope you find the tutorial useful and clearly explained! |
Hey @viguix that tutorial blog post looks really cool - would it be okay if I link to it from the README so other people can find it more easily? Also, sorry for the slow reply here, but if you've been trying out FOOOF through the wrapper or anything and have any questions etc, please do feel free to ask them! |
Hi, I got the same error. The easiest solution I found on internet is |
When I try to run the MATLAB error, I get the following error, even though all the dependencies are installed and pyversion is correctly specified in MATLAB:
Error in fooof (line 37)
freqs = py.numpy.array(freqs);
Error in fooof_group (line 41)
cur_results = fooof(freqs, psd', f_range, settings);
Error in example_wrapper_multi_psd (line 21)
fooof_results = fooof_group(freqs, psds, f_range, settings);
The text was updated successfully, but these errors were encountered: