Closed stephenhky closed 7 years ago
Which version of tensorflow do you have e.g. the output of import tensorflow; print tensorflow.__version__
Mine is 1.1.0
Can you run from tensorflow.contrib.tensorboard.plugins import projector
manually as well? I guess this should be reported to tensorflow and/or dask.
Can you try updating dask and pandas packages?
My pandas package is updated.
For dask package, before updating it, running from tensorflow.contrib.tensorboard.plugins import projector
gives the same error message. But after updating dask, the error message dissappeared, by running this import and import keras
(with Tensorflow backend)
It looks like it is resolved.
Ran through same issue and applied same fix (update dask). Most likely this was caused by updating pandas to recent version (saw it after updating pandas to 0.20.1).
Just update dask to 0.15.0, the problem will disappear
Great to hear that!
Thanks so much once I updated dask and pandas, works now
Hi, I have a similar issue. I'm working with ubuntu 16.04, keras 2.1.2, tensorflow 1.3.0 and pandas 0.21.0, dask 0.16.0. If I try to import anything from keras, after I imported pandas i get the following error:
ImportError: /folder_name/../lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /folder_name/anaconda3/lib/python3.6/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so)
If I import the things I need from keras before importing pandas everything works fine. Any idea how to fix this or why it happens? I read that downgrading pandas should work, but that would cause me some compatibility issues. Thanks
Hi I had similar issue and was able to fix by reinstalling TensorFlow using
sudo conda install tensorflow
This allows and gave permission to downgrade to the compatible
numba: 0.35.0-np113py36_6 --> 0.35.0-np112py36_0 numpy: 1.13.3-py36h2cdce51_0 --> 1.12.1-py36h8871d66_1
i have been having a similar error for a while now the error is ModuleNotFoundError: no module named tensorflow.contrib:tensorflow is not a package
could someone please help me out with this
Big problem that wasted a week of mine small solution if keras is giving import problem and you are facing "no module named keras" even if you have installed it.
re install upgraded keras and tensorflow by:
pip install keras
pip install tensorflow
Hope it will solve the problem. If not, try upgrading your conda (Anaconda) and then do steps 1 to 3 above again
pip install Keras==2.2.4 solved my same problem.
i have keras version== 2.2.4 , tensorflow version == 2.0.0b1, numpy version version == 1.16.1 and i m still getting error
MY CODE
from imageai.Detection import ObjectDetection import os
execution_path = os.getcwd()
detector = ObjectDetection() detector.setModelTypeAsRetinaNet() detector.setModelPath( os.path.join(execution_path , "resnet50_coco_best_v2.0.1.h5")) detector.loadModel() detections = detector.detectObjectsFromImage(input_image=os.path.join(execution_path , "traffic.jpeg"), output_image_path=os.path.join(execution_path , "traffic.jpeg"))
for eachObject in detections: print(eachObject["name"] , " : " , eachObject["percentage_probability"] )
Using TensorFlow backend.
Traceback (most recent call last):
File "C:/Users/Atul Raj/PycharmProjects/Projects/expression.py", line 6, in
PLEASE HELP ME SOLVING THIS ERROR
Same error not solve in my system using instructions given above in various replies. ModuleNotFoundError: No module named 'keras.backend.tensorflow_backend' How to resolve it. ??
Same error not solve in my system using instructions given above in various replies. ModuleNotFoundError: No module named 'keras.backend.tensorflow_backend' How to resolve it. ??
I think you should install keras command- pip install keras
I ran with the latest version of tensorflow and keras. I didn't experience an import problem with theano as the backend. And when I put tensorflow as the backend, I saw the following message:
` In [1]: import keras Using TensorFlow backend.
AttributeError Traceback (most recent call last)