mnelab icon indicating copy to clipboard operation
mnelab copied to clipboard

Can't use the starting commands

Open lilly-sanchezz opened this issue 2 years ago • 7 comments

Hi, I used the command "pip install "mnelab[full]" " to install mnelab, it worked without problems, but when I tried to use any of the starting commands they don't work. When I use mnelab it gives me an error saying that the name mnelab is not defined, and if I use the command python -m mnelab it gives me a message that says that is not the correct syntax. I'm new at using python so I genuinely don't understand what's going on, I apologize if this is a dumb question, but does anyone know what should I do? 🥲

lilly-sanchezz avatar Apr 10 '24 19:04 lilly-sanchezz

Forgot to mention it but I'm using mne ver 1.6.1 and I'm using it on a macOS ventura 13.2.1

lilly-sanchezz avatar Apr 10 '24 23:04 lilly-sanchezz

This sounds like you have multiple Python environments, and the one you installed MNELAB into is not the one you're trying to start it from.

A couple of things that might be relevant:

  1. How did you install the Python environment that you are using for MNELAB?
  2. What is the output of python -VV?
  3. Can you post the output of pip --version?
  4. What is the output of pip list?
  5. If pip is the wrong alias (i.e. if it is associated with the wrong Python environment), you could try installing with `python -m pip install "mnelab[full]".
  6. Can you post the exact errors when you try to start MNELAB with mnelab and python -m mnelab?

cbrnr avatar Apr 11 '24 05:04 cbrnr

Thanks for the help!

  1. I'm not sure if this is the answer but I used Anaconda navigator to install it

  2. I got the message "NameError. Traceback (most recent call last). NameError: name 'python' is not defined."

  3. the output is "pip 23.3.1 from /opt/anaconda3/lib/python3.11/site-packages/pip (python 3.11)"

  4. A little long, but here's the output list:

Package                           Version
--------------------------------- ------------
aiobotocore                       2.7.0
aiohttp                           3.9.3
aioitertools                      0.7.1
aiosignal                         1.2.0
...
mne                               1.6.1
mnelab                            0.9.0
...
zict                              3.0.0
zipp                              3.17.0
zope.interface                    5.4.0
zstandard                         0.19.0
  1. I tried to use the command but i recieved the message "SyntaxError: invalid syntax"

  2. When I use mnelab, I get the message " NameError: name 'mnelab' is not defined", when I use python -m mnelab I get "SyntaxError: invalid syntax"

lilly-sanchezz avatar Apr 11 '24 17:04 lilly-sanchezz

Can you try using python3 instead of python?

cbrnr avatar Apr 11 '24 18:04 cbrnr

No, I can't, it gives me the same output

lilly-sanchezz avatar Apr 11 '24 19:04 lilly-sanchezz

There's probably something wrong with your Python installation. I recommend that you completely uninstall Anaconda and then install Python from https://www.python.org. This installs Python as python3 and pip as pip3, so you can then do pip3 install "mnelab[full]". Then, both mnelab and python3 -m mnelab commands should work.

cbrnr avatar Apr 12 '24 06:04 cbrnr

Did you solve the issue @lilly-sanchezz?

cbrnr avatar Apr 18 '24 09:04 cbrnr

I'm assuming that you solved the problem, if not, feel free to report back.

cbrnr avatar May 14 '24 11:05 cbrnr