hughperkins / tf-coriander

OpenCL 1.2 implementation for Tensorflow
Apache License 2.0
792 stars 90 forks source link

ModuleNotFoundError: No module named '_pywrap_tensorflow' #97

Open someshbhokre opened 5 years ago

someshbhokre commented 5 years ago

Using TensorFlow backend. Traceback (most recent call last): File "C:\Program Files (x86)\Python37-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 18, in swig_import_helper fp, pathname, description = imp.find_module('_pywrap_tensorflow', [dirname(file)]) File "C:\Program Files (x86)\Python37-32\lib\imp.py", line 296, in find_module raise ImportError(_ERR_MSG.format(name), name=name) ImportError: No module named '_pywrap_tensorflow'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Program Files (x86)\Python37-32\lib\site-packages\tensorflow\python__init__.py", line 66, in from tensorflow.python import pywrap_tensorflow File "C:\Program Files (x86)\Python37-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 28, in _pywrap_tensorflow = swig_import_helper() File "C:\Program Files (x86)\Python37-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 20, in swig_import_helper import _pywrap_tensorflow ModuleNotFoundError: No module named '_pywrap_tensorflow'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "c:\Users\sam.vscode\extensions\ms-python.python-2019.9.34911\pythonFiles\ptvsd_launcher.py", line 43, in main(ptvsdArgs) File "c:\Users\sam.vscode\extensions\ms-python.python-2019.9.34911\pythonFiles\lib\python\ptvsd__main.py", line 432, in main run() File "c:\Users\sam.vscode\extensions\ms-python.python-2019.9.34911\pythonFiles\lib\python\ptvsd__main__.py", line 316, in run_file runpy.run_path(target, run_name='main') File "C:\Program Files (x86)\Python37-32\lib\runpy.py", line 263, in run_path pkg_name=pkg_name, script_name=fname) File "C:\Program Files (x86)\Python37-32\lib\runpy.py", line 96, in _run_module_code mod_name, mod_spec, pkg_name, script_name) File "C:\Program Files (x86)\Python37-32\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "c:\Users\sam\Desktop\Image Classification.py", line 2, in from keras.preprocessing.image import ImageDataGenerator File "C:\Program Files (x86)\Python37-32\lib\site-packages\keras\init.py", line 3, in from . import utils File "C:\Program Files (x86)\Python37-32\lib\site-packages\keras\utils\init.py", line 6, in from . import conv_utils File "C:\Program Files (x86)\Python37-32\lib\site-packages\keras\utils\conv_utils.py", line 9, in from .. import backend as K File "C:\Program Files (x86)\Python37-32\lib\site-packages\keras\backend\init.py", line 1, in from .load_backend import epsilon File "C:\Program Files (x86)\Python37-32\lib\site-packages\keras\backend\load_backend.py", line 90, in from .tensorflow_backend import * File "C:\Program Files (x86)\Python37-32\lib\site-packages\keras\backend\tensorflow_backend.py", line 5, in import tensorflow as tf File "C:\Program Files (x86)\Python37-32\lib\site-packages\tensorflow\init.py", line 24, in from tensorflow.python import * File "C:\Program Files (x86)\Python37-32\lib\site-packages\tensorflow\python\init.py", line 72, in raise ImportError(msg) ImportError: Traceback (most recent call last): File "C:\Program Files (x86)\Python37-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 18, in swig_import_helper fp, pathname, description = imp.find_module('_pywrap_tensorflow', [dirname(file__)]) File "C:\Program Files (x86)\Python37-32\lib\imp.py", line 296, in find_module raise ImportError(_ERR_MSG.format(name), name=name) ImportError: No module named '_pywrap_tensorflow'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Program Files (x86)\Python37-32\lib\site-packages\tensorflow\python__init__.py", line 66, in from tensorflow.python import pywrap_tensorflow File "C:\Program Files (x86)\Python37-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 28, in _pywrap_tensorflow = swig_import_helper() File "C:\Program Files (x86)\Python37-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 20, in swig_import_helper import _pywrap_tensorflow ModuleNotFoundError: No module named '_pywrap_tensorflow'

Failed to load the native TensorFlow runtime.

See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#import_error

for some common reasons and solutions. Include the entire stack trace above this error message when asking for help.

someshbhokre commented 5 years ago

This Error occurred when I am doing Image Classification. Please Let me know what i do

datatalking commented 1 year ago

@someshbhokre I believe this repo has only been tested on Mac and Ubuntu, the "C:\" would indicate a windows install. If you have never tried an Ubuntu install could work for you.