Skip to content
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

Unable to run fooof.m despite up to date python #27

Open
MNwakamma opened this issue Jan 27, 2023 · 2 comments
Open

Unable to run fooof.m despite up to date python #27

MNwakamma opened this issue Jan 27, 2023 · 2 comments

Comments

@MNwakamma
Copy link

I am getting this error in the fooof.m code:

Not enough input arguments.

Error in fooof (line 50)
freqs = py.numpy.array(freqs);_

_
& if it isn't that, I get this error despite installing numpy to python using the terminal ("pip3 install numpy"):

Unable to resolve the name py.numpy.array.

Error in fooof (line 50)
freqs = py.numpy.array(freqs);

@kivaelte
Copy link

I have the same issue. Someone any ideas?

@jacobsen-noelle
Copy link

jacobsen-noelle commented Jun 8, 2023

Make sure you're not using Python within the Anaconda environment. It seems to cause issues. Also check your python version in Matlab and make sure it matches the one you see in the terminal when you enter python --version. To see if Matlab recognizes your py installation, simply type “pyversion” into matlab. Tell matlab where py install is if it doesn’t know
Example 1: pyversion(‘C:\Program Files\Python37\python.exe’)
Example 2: pyversion('C:\Users\USERNAME\AppData\Local\Programs\Python\Python37\python.exe')
If you run the following in your terminal:
pip install fooof
it will auto install numpy and scipy for you. Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants