Skip to content

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

Closed
@stnatter

Description

@stnatter

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.

Activity

asimshankar

asimshankar commented on Nov 6, 2017

@asimshankar
Contributor

Closing this as a duplicate of #14182

theminingengineer

theminingengineer commented on Nov 12, 2017

@theminingengineer

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

pabs-lop

pabs-lop commented on Nov 14, 2017

@pabs-lop

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

stnatter commented on Nov 14, 2017

@stnatter
Author
pabs-lop

pabs-lop commented on Nov 16, 2017

@pabs-lop

Thank you! @SteffenNa

elfxwt

elfxwt commented on Nov 29, 2017

@elfxwt

I have met the same issue with python3 in virtualenv

vkumarcisco

vkumarcisco commented on Dec 1, 2017

@vkumarcisco

Thank you @SteffenNa

drewszurko

drewszurko commented on Dec 8, 2017

@drewszurko
Contributor

Thanks @SteffenNa

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

sshadmand

sshadmand commented on Dec 16, 2017

@sshadmand

+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

cloudtrends commented on Dec 26, 2017

@cloudtrends

Thank you! @SteffenNa

erickrf

erickrf commented on Dec 27, 2017

@erickrf

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

brifordwylie

brifordwylie commented on Dec 27, 2017

@brifordwylie

@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

theminingengineer commented on Dec 27, 2017

@theminingengineer

8 remaining items

carljunepiao

carljunepiao commented on Jan 30, 2018

@carljunepiao

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

carljunepiao commented on Jan 30, 2018

@carljunepiao

NVM it works.

nickpoulos

nickpoulos commented on Feb 4, 2018

@nickpoulos

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.

burgagutierrez

burgagutierrez commented on Apr 2, 2018

@burgagutierrez

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

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

yuseferi

yuseferi commented on Apr 3, 2018

@yuseferi

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

DAHEECHOI1208 commented on Apr 10, 2018

@DAHEECHOI1208

@SteffenNa Thank you :)

benedictchen

benedictchen commented on May 11, 2018

@benedictchen

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

animaleja32

animaleja32 commented on May 23, 2018

@animaleja32

@benedictchen I'm getting the same error

monktastic

monktastic commented on Jul 12, 2018

@monktastic

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

ChenKunMiner

ChenKunMiner commented on Sep 17, 2018

@ChenKunMiner

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

yuanjun

yuanjun commented on Sep 20, 2018

@yuanjun

@zhilevan thanks for your suggestion, works one my Mac

rakshitsareen

rakshitsareen commented on Sep 29, 2018

@rakshitsareen

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

Beenhakker commented on Jan 9, 2019

@Beenhakker

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @asimshankar@sshadmand@erickrf@benedictchen@rakshitsareen

        Issue actions

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