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

RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6 #14273

Closed
stnatter opened this issue Nov 6, 2017 · 34 comments

Comments

@stnatter
Copy link

stnatter commented Nov 6, 2017

Please go to Stack Overflow for help and support:

https://stackoverflow.com/questions/tagged/tensorflow

If you open a GitHub issue, here is our policy:

  1. It must be a bug or a feature request.
  2. The form below must be filled out.
  3. It shouldn't be a TensorBoard issue. Those go here.

Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.


System information

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
    macOS High Sierra 10.13.1
  • TensorFlow installed from (source or binary):
    pip3 install tensor flow
  • TensorFlow version (use command below):
    1.4.0
  • Python version:
    3.6.3
  • Bazel version (if compiling from source):
  • GCC/Compiler version (if compiling from source):
    GCC: stable 7.2.0
  • CUDA/cuDNN version:
  • GPU model and memory:
  • Exact command to reproduce:
    python3 -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"

You can collect some of this information using our environment capture script:

https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh

You can obtain the TensorFlow version with

python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"

Describe the problem

Error after install Tensorflow:

python3 -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"

/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
return f(*args, **kwds)
v1.4.0-rc1-11-g130a514 1.4.0

getting this and ONE MORE error when running:
python3 -c "import keras; print (keras.version)"
Using TensorFlow backend.
/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
return f(*args, **kwds)
2017-11-06 15:12:09.361728: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
2.0.9

Source code / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.

@asimshankar
Copy link
Contributor

Closing this as a duplicate of #14182

@theminingengineer
Copy link

HI, am having the same issue.... any one with a solution?

@pau-lo
Copy link

pau-lo commented Nov 14, 2017

I am also having the same problem:

Using TensorFlow backend.
/Users/Create/.pyenv/versions/3.6.3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
return f(*args, **kwds)

@stnatter
Copy link
Author

https://github.com/lakshayg/tensorflow-build
this guy can help.

@pau-lo
Copy link

pau-lo commented Nov 16, 2017

Thank you! @SteffenNa

@elfxwt
Copy link

elfxwt commented Nov 29, 2017

I have met the same issue with python3 in virtualenv

@vkumarcisco
Copy link

Thank you @SteffenNa

@drewszurko
Copy link
Contributor

Thanks @SteffenNa

For anyone else, the "macOS Sierra" build worked on my macOS High Sierra 10.13.1

@sshadmand
Copy link

sshadmand commented Dec 16, 2017

+1 to @drewszurko and @SteffenNa

Better to use Sierra (1.4.0) on High Sierra than what is marked High Sierra (1.4.1):

pip install --ignore-installed --upgrade "https://github.com/lakshayg/tensorflow-build/raw/master/tensorflow-1.4.0-cp36-cp36m-macosx_10_12_x86_64.whl"

@cloudtrends
Copy link

Thank you! @SteffenNa

@erickrf
Copy link

erickrf commented Dec 27, 2017

@sshadmand I installed the High Sierra build on High Sierra with no problems (running macOS version 10.13.2)

@brifordwylie
Copy link

@SteffenNa suggestion is the solution (at least for me). Just go to https://github.com/lakshayg/tensorflow-build click on the on wheel you want and then on the download button right click and copy link address and paste into your pip line... e.g.

$  pip install --upgrade https://github.com/lakshayg/tensorflow-build/raw/master/tensorflow-1.4.1-cp36-cp36m-macosx_10_13_x86_64.whl

Worked great and fixed the warning about mismatched version.

@theminingengineer
Copy link

theminingengineer commented Dec 27, 2017 via email

@skyrmion
Copy link

skyrmion commented Jan 3, 2018

https://github.com/lakshayg/tensorflow-build/raw/master/tensorflow-1.4.0-cp36-cp36m-linux_x86_64.whl
(ubuntu version) works for current Opensuse Tumbleweed

@KyleTheNewbie
Copy link

how about for RHEL7?

@aykutyararbas
Copy link

Worked perfect , Thanks.

@marcelohenrique180
Copy link

@KyleTheNewbie I've installed with

pip install https://github.com/mind/wheels/releases/download/tf1.3-cpu/tensorflow-1.3.0-cp36-cp36m-linux_x86_64.whl

on Fedora and it seems good

@hpeiyan
Copy link

hpeiyan commented Jan 26, 2018

@SteffenNa correct. It's work. Thanks

@informixx
Copy link

informixx commented Jan 26, 2018

Using
macOS 10.13.2 (17C88)
Kernel-Version: Darwin 17.3.0

Why do I get the following error? What to do?

Last login: Fri Jan 26 17:25:23 on ttys000

$ pip install --ignore-installed --upgrade "https://github.com/lakshayg/tensorflow-build/raw/master/tensorflow-1.4.0-cp36-cp36m-macosx_10_12_x86_64.whl"
Collecting tensorflow==1.4.0 from https://github.com/lakshayg/tensorflow-build/raw/master/tensorflow-1.4.0-cp36-cp36m-macosx_10_12_x86_64.whl
Using cached https://github.com/lakshayg/tensorflow-build/raw/master/tensorflow-1.4.0-cp36-cp36m-macosx_10_12_x86_64.whl
Collecting six>=1.10.0 (from tensorflow==1.4.0)
Using cached six-1.11.0-py2.py3-none-any.whl
Collecting enum34>=1.1.6 (from tensorflow==1.4.0)
Using cached enum34-1.1.6-py3-none-any.whl
Collecting wheel>=0.26 (from tensorflow==1.4.0)
Using cached wheel-0.30.0-py2.py3-none-any.whl
Collecting protobuf>=3.3.0 (from tensorflow==1.4.0)
Using cached protobuf-3.5.1-py2.py3-none-any.whl
Collecting numpy>=1.12.1 (from tensorflow==1.4.0)
Using cached numpy-1.14.0-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Collecting tensorflow-tensorboard<0.5.0,>=0.4.0rc1 (from tensorflow==1.4.0)
Using cached tensorflow_tensorboard-0.4.0-py3-none-any.whl
Collecting setuptools (from protobuf>=3.3.0->tensorflow==1.4.0)
Using cached setuptools-38.4.0-py2.py3-none-any.whl
Collecting html5lib==0.9999999 (from tensorflow-tensorboard<0.5.0,>=0.4.0rc1->tensorflow==1.4.0)
Collecting markdown>=2.6.8 (from tensorflow-tensorboard<0.5.0,>=0.4.0rc1->tensorflow==1.4.0)
Using cached Markdown-2.6.11-py2.py3-none-any.whl
Collecting werkzeug>=0.11.10 (from tensorflow-tensorboard<0.5.0,>=0.4.0rc1->tensorflow==1.4.0)
Using cached Werkzeug-0.14.1-py2.py3-none-any.whl
Collecting bleach==1.5.0 (from tensorflow-tensorboard<0.5.0,>=0.4.0rc1->tensorflow==1.4.0)
Using cached bleach-1.5.0-py2.py3-none-any.whl
Installing collected packages: six, enum34, wheel, setuptools, protobuf, numpy, html5lib, markdown, werkzeug, bleach, tensorflow-tensorboard, tensorflow
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/local/lib/python3.6/site-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/usr/local/lib/python3.6/site-packages/pip/req/req_set.py", line 784, in install
**kwargs
File "/usr/local/lib/python3.6/site-packages/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/usr/local/lib/python3.6/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/usr/local/lib/python3.6/site-packages/pip/wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "/usr/local/lib/python3.6/site-packages/pip/wheel.py", line 323, in clobber
shutil.copyfile(srcfile, destfile)
File "/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/shutil.py", line 121, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/site-packages/six.py'

@erickrf
Copy link

erickrf commented Jan 26, 2018

@informixx you don't have permission to write to the python installation. You should run sudo pip install ...

@informixx
Copy link

informixx commented Jan 26, 2018

@erickrf Thx, for your quick answer!

Of course that's the solution and I've learned something :-)

But, poorly that fix does not help, I still got this error:

/Users/hamburg/PycharmProjects/Linear Regression Example/venv/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
return f(*args, **kwds)
/Users/hamburg/PycharmProjects/Linear Regression Example/venv/lib/python3.6/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
Traceback (most recent call last):
File "/Users/hamburg/Library/Preferences/PyCharmCE2017.3/scratches/Linear_Regression_Example.py", line 6, in
import matplotlib.pyplot as plt
File "/Users/hamburg/PycharmProjects/Linear Regression Example/venv/lib/python3.6/site-packages/matplotlib/pyplot.py", line 116, in
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "/Users/hamburg/PycharmProjects/Linear Regression Example/venv/lib/python3.6/site-packages/matplotlib/backends/init.py", line 60, in pylab_setup
[backend_name], 0)
File "/Users/hamburg/PycharmProjects/Linear Regression Example/venv/lib/python3.6/site-packages/matplotlib/backends/backend_macosx.py", line 17, in
from matplotlib.backends import _macosx
RuntimeError: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more information on installing Python as a framework on Mac OS X. Please either reinstall Python as a framework, or try one of the other backends. If you are using (Ana)Conda please install python.app and replace the use of 'python' with 'pythonw'. See 'Working with Matplotlib on OSX' in the Matplotlib FAQ for more information.

@carljunepiao
Copy link

carljunepiao commented Jan 30, 2018

What if I have: Python 3.6.4 :: Anaconda custom (64-bit), does Anaconda custom affect any upgrade installation?

welp, I'll try it now.

@carljunepiao
Copy link

NVM it works.

@nickpoulos
Copy link

Any suggestions on what to try with this environment? I can't seem to find a TF build on that link above ^ for an exact match to my system, but upgrading some of this stuff seems fairly complex.

macOS Sierra
Apple LLVM version 9.0.0 (clang-900.0.37)
Python 3.6.1 :: Anaconda custom (64-bit)
TensorFlow v1.4.0-rc1-11-g130a514 1.4.0

Thanks for your help.

@enriqueb721
Copy link

It works for pip with:
pip install --upgrade pip

Or maybe you can execute if you use conda:
conda install tensorflow

@yuseferi
Copy link

yuseferi commented Apr 3, 2018

on Mac OS High Seirra the following worked for me

pip install --ignore-installed --upgrade "https://github.com/lakshayg/tensorflow-build/raw/master/tensorflow-1.5.0-cp36-cp36m-macosx_10_13_x86_64.whl"

@DAHEECHOI1208
Copy link

@SteffenNa Thank you :)

@benedictchen
Copy link

tensorflow-1.5.0-cp36-cp36m-macosx_10_13_x86_64.whl is not a supported wheel on this platform.

@animaleja32
Copy link

@benedictchen I'm getting the same error

@monktastic
Copy link

@benedictchen @animaleja32 Are you using a wheel that matches your Python version?

@ChenKunMiner
Copy link

take the right version of this @SteffenNa ,and i resolve it. thx

@yuanjun
Copy link

yuanjun commented Sep 20, 2018

@zhilevan thanks for your suggestion, works one my Mac

@rakshitsareen
Copy link

Facing the same issue on Mojave.
Any solution ?
python -c "import tensorflow as tf; print(tf.version)"
/Users/rakshitsareen/venv/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.6 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.7

@Beenhakker
Copy link

When using pyenv, omit the "--user", so in my case: pip install --ignore-installed --upgrade "Download URL"

If you already ran the command, you can "rm -rf ~/.local" to cleanup your mess on OSX :)
"pip --user" reference: https://docs.python.org/3.7/library/site.html

@rakshitsareen That's the whole purpose of this issue, so read carefully from the top.

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