DeepEEG icon indicating copy to clipboard operation
DeepEEG copied to clipboard

error in loading examples from eeg-notebooks . " from utils import *" causes error : " no module called TensorFlow"

Open PayasSingh opened this issue 5 years ago • 5 comments

PayasSingh avatar May 08 '19 02:05 PayasSingh

"I have been trying to run DeepEEG on my machine but I am facing a problem while loading examples from eeg-notebooks. Every time I enter the line “ from utils import * ” in a python script the terminal reports an error “no module called TensorFlow” despite having TensorFlow installed on my MacBook. I have tried installing different versions of tenserflow and creating a virtual environment as well but nothing seems to work. Do you have any suggestions as to how I could get past this problem ? "

kylemath avatar May 08 '19 03:05 kylemath

you could also try running the code in a google collaboratory notebook if this is getting too frustrating

https://github.com/kylemath/DeepEEG/tree/master/notebooks

kylemath avatar May 08 '19 03:05 kylemath

"I have been trying to run DeepEEG on my machine but I am facing a problem while loading examples from eeg-notebooks. Every time I enter the line “ from utils import * ” in a python script the terminal reports an error “no module called TensorFlow” despite having TensorFlow installed on my MacBook. I have tried installing different versions of tenserflow and creating a virtual environment as well but nothing seems to work. Do you have any suggestions as to how I could get past this problem ? "

are you using conda or python venv for the virtual environment?

what happens during the /install.sh when it is installing the requirements with pip, scroll through the command window output and see if there is an error when you install tensorflow

this is the specific tensor flow import it is trying from tensorflow import set_random_seed set_random_seed(2)

kylemath avatar May 08 '19 03:05 kylemath

Hello,

I am using Conda for the virtual environment. I also tried using the python venv which gives me the error “ can’t import set_random_seed from Tensorflow” .

I tried to use google collaboratory notebook as well but I am confused about where to get the data from. I tried to run the simulate data code but it gives me the error “ name ‘SimulateRaw' is not defined”

Sincerely, Payas Singh

On May 7, 2019, at 9:46 PM, Kyle Mathewson [email protected] wrote:

"I have been trying to run DeepEEG on my machine but I am facing a problem while loading examples from eeg-notebooks. Every time I enter the line “ from utils import * ” in a python script the terminal reports an error “no module called TensorFlow” despite having TensorFlow installed on my MacBook. I have tried installing different versions of tenserflow and creating a virtual environment as well but nothing seems to work. Do you have any suggestions as to how I could get past this problem ? "

are you using conda or python venv for the virtual environment?

what happens during the /install.sh when it is installing the requirements with pip, scroll through the command window output and see if there is an error when you install tensorflow

this is the specific tensor flow import it is trying from tensorflow import set_random_seed set_random_seed(2)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kylemath/DeepEEG/issues/29#issuecomment-490336234, or mute the thread https://github.com/notifications/unsubscribe-auth/AKJGNK5KNQFWKQPBJ35RQKDPUJEKNANCNFSM4HLN43NA.

PayasSingh avatar May 13 '19 23:05 PayasSingh

try the muse collab notebook, that one should be the easiest

On Mon, May 13, 2019 at 5:38 PM PayasSingh [email protected] wrote:

Hello,

I am using Conda for the virtual environment. I also tried using the python venv which gives me the error “ can’t import set_random_seed from Tensorflow” .

I tried to use google collaboratory notebook as well but I am confused about where to get the data from. I tried to run the simulate data code but it gives me the error “ name ‘SimulateRaw' is not defined”

Sincerely, Payas Singh

On May 7, 2019, at 9:46 PM, Kyle Mathewson [email protected] wrote:

"I have been trying to run DeepEEG on my machine but I am facing a problem while loading examples from eeg-notebooks. Every time I enter the line “ from utils import * ” in a python script the terminal reports an error “no module called TensorFlow” despite having TensorFlow installed on my MacBook. I have tried installing different versions of tenserflow and creating a virtual environment as well but nothing seems to work. Do you have any suggestions as to how I could get past this problem ? "

are you using conda or python venv for the virtual environment?

what happens during the /install.sh when it is installing the requirements with pip, scroll through the command window output and see if there is an error when you install tensorflow

this is the specific tensor flow import it is trying from tensorflow import set_random_seed set_random_seed(2)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/kylemath/DeepEEG/issues/29#issuecomment-490336234>, or mute the thread < https://github.com/notifications/unsubscribe-auth/AKJGNK5KNQFWKQPBJ35RQKDPUJEKNANCNFSM4HLN43NA .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kylemath/DeepEEG/issues/29?email_source=notifications&email_token=AA36GFKAEEC5YNJTEND3LU3PVH3W7A5CNFSM4HLN43NKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVJ3GJY#issuecomment-492024615, or mute the thread https://github.com/notifications/unsubscribe-auth/AA36GFILQW2CYGFKV6UYTOLPVH3W7ANCNFSM4HLN43NA .

kylemath avatar May 13 '19 23:05 kylemath