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

ModuleNotFoundError: No module named 'tensorflow' #35

Open
jgonzalez10 opened this issue Nov 27, 2019 · 3 comments
Open

ModuleNotFoundError: No module named 'tensorflow' #35

jgonzalez10 opened this issue Nov 27, 2019 · 3 comments

Comments

@jgonzalez10
Copy link

Hi!

I'm using Deepbinner because the previous program I used left many of my reads as 'unclassified'. But, no matter what I try to run I always get this error:

[jg2279@cbsugpu03 Deepbinner]$ deepbinner classify --rapid Raw_fast5
Using TensorFlow backend.
Traceback (most recent call last):
File "/programs/Deepbinner-0.2.0/bin/deepbinner", line 11, in
load_entry_point('Deepbinner==0.2.0', 'console_scripts', 'deepbinner')()
File "/programs/Deepbinner-0.2.0/lib/python3.6/site-packages/deepbinner/deepbinner.py", line 59, in main
from .classify import classify
File "/programs/Deepbinner-0.2.0/lib/python3.6/site-packages/deepbinner/classify.py", line 24, in
from keras.models import load_model
File "/programs/Deepbinner-0.2.0/lib/python3.6/site-packages/keras/init.py", line 3, in
from . import utils
File "/programs/Deepbinner-0.2.0/lib/python3.6/site-packages/keras/utils/init.py", line 6, in
from . import conv_utils
File "/programs/Deepbinner-0.2.0/lib/python3.6/site-packages/keras/utils/conv_utils.py", line 9, in
from .. import backend as K
File "/programs/Deepbinner-0.2.0/lib/python3.6/site-packages/keras/backend/init.py", line 1, in
from .load_backend import epsilon
File "/programs/Deepbinner-0.2.0/lib/python3.6/site-packages/keras/backend/load_backend.py", line 90, in
from .tensorflow_backend import *
File "/programs/Deepbinner-0.2.0/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 5, in
import tensorflow as tf
ModuleNotFoundError: No module named 'tensorflow'

Help!! Thanks!!!

@MostafaYA
Copy link

Hi, I am not sure if this could help but you may try
python -m pip install tensorflow --user

@MostafaYA
Copy link

UPDATE
python -m pip install tensorflow==1.15 --user

@gaferguz
Copy link

Hi @MostafaYA and everyone, I am facing the same issue when i install tensorflow 2.0 version or higher, but then when I tried deepbinner using tensorflow==1.15 I get the following error:

$ deepbinner classify --rapid fast5_pass/ > classifications
Traceback (most recent call last):
  File "/Users/Comms/.local/lib/python3.7/site-packages/keras/__init__.py", line 3, in <module>
    from tensorflow.keras.layers.experimental.preprocessing import RandomRotation
ModuleNotFoundError: No module named 'tensorflow.keras.layers.experimental.preprocessing'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/Comms/.local/bin/deepbinner", line 8, in <module>
    sys.exit(main())
  File "/Users/Comms/.local/lib/python3.7/site-packages/deepbinner/deepbinner.py", line 59, in main
    from .classify import classify
  File "/Users/Comms/.local/lib/python3.7/site-packages/deepbinner/classify.py", line 24, in <module>
    from keras.models import load_model
  File "/Users/Comms/.local/lib/python3.7/site-packages/keras/__init__.py", line 6, in <module>
    'Keras requires TensorFlow 2.2 or higher. '
ImportError: Keras requires TensorFlow 2.2 or higher. Install TensorFlow via `pip install tensorflow`

What should I do?

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