Skip to content

Creating a specific 3.6 binary for Linux #14182

Closed
@KrishnaveniTK

Description

@KrishnaveniTK

System information

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 14.04
  • TensorFlow installed from (source or binary): Source
  • TensorFlow version (use command below):
  • Python version: Python3.6
  • Bazel version (if compiling from source):
  • GCC/Compiler version (if compiling from source): -NA-
  • CUDA/cuDNN version: -NA-
  • GPU model and memory: -NA-
  • Exact command to reproduce: import tensorflow as tf

Environment capture text:

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

You can obtain the TensorFlow version with
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
This command also results in the same error.
/home/raju/anaconda3/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)

Describe the problem

When importing tensorflow , I get this error. I found some information on "Feature request: nightly build for python 3.6 #12935" --"Yes, we unfortunately copy the 3.5 binary for 3.6 I'll look into creating a specific 3.6 binary for Linux."

Source code / logs

$import tensorflow as tf
result is
/home/raju/anaconda3/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)

Activity

jbboisseau

jbboisseau commented on Nov 2, 2017

@jbboisseau

same issue on MacOS 10.12.6

rfarouni

rfarouni commented on Nov 2, 2017

@rfarouni

same problem on Linux Ubuntu 16.04

asimshankar

asimshankar commented on Nov 2, 2017

@asimshankar
Contributor

@gunan : Do we have any updates on the resources we have to support Python 3.6 releases?

gunan

gunan commented on Nov 2, 2017

@gunan
Contributor

@av8ramit looks like there were divergences which prevent us from using the same pip packages on python 3.5 and 3.6
Can we modify our builds to also build 3.6 version from scratch?

YannDubs

YannDubs commented on Nov 3, 2017

@YannDubs

Same issue on Linux CentOS 7

knn1989

knn1989 commented on Nov 3, 2017

@knn1989

Same issue after upgrade Tensorflow from 1.3 to 1.4 on Mac High Sierra 10.13.1 using Python 3.6.2.
Tensorflow still works but give the above warning which is "RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6"

MichaelSnowden

MichaelSnowden commented on Nov 3, 2017

@MichaelSnowden

FWIW, python3.5 still works

sbshah97

sbshah97 commented on Nov 3, 2017

@sbshah97

ANything that can be changed here?

wieberinsma

wieberinsma commented on Nov 3, 2017

@wieberinsma

Same problem using virtualenv after upgrading from Ubuntu 17.04 to 17.10.
/home/wiebe/virtual/tensorflow/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)

banifou

banifou commented on Nov 3, 2017

@banifou

Same on Ubuntu 14.04

dsitnik

dsitnik commented on Nov 3, 2017

@dsitnik

Same issue on Fedora 26 with Python 3.6.2.

76 remaining items

tylerlekang

tylerlekang commented on Jan 16, 2018

@tylerlekang

@av8ramit , I have 1.4.1 and you said that official releases now have .... yet,

When I do:
python3.6 -m pip install --upgrade --user tensorflow

It says that:
Requirement already up-to-date: tensorflow in ./.local/lib/python3.6/site-packages

stevenlii

stevenlii commented on Jan 17, 2018

@stevenlii

You guys could get python3.6 specific binary for mac/linux/windows from here:
https://pypi.python.org/pypi/tensorflow

tylerlekang

tylerlekang commented on Jan 17, 2018

@tylerlekang

@av8ramit I manually downloaded 1.5.0rc1 cp36 manylinux wheel and installed successfully. The warning message has disappeared when import tensorflow in python 3.6

However, I think there is issue with pip. See below please. Do you need me to start a new issue, or am I just doing something wrong?

When I do:
python3.6 -m pip install --upgrade --user tensorflow -vvv

It does find the 1.5.0rc1 cp36 manylinux wheel, as well as rc0 and older version wheels (both rc and non-rc):

Found link https://pypi.python.org/packages/cd/e4/b2a8bcd1fa689489050386ec70c5c547e4a75d06f2cc2b55f45463cd092c/tensorflow-1.1.0-cp36-cp36m-manylinux1_x86_64.whl#md5=1f761290358dfb7fe4ec73140f4d282a (from https://pypi.python.org/simple/tensorflow/), version: 1.1.0
...
Found link https://pypi.python.org/packages/c6/1c/d64f9367cc3a50194e911ab9da865c2515cbc1fefa5e210ddebf85a61bac/tensorflow-1.2.0rc0-cp36-cp36m-manylinux1_x86_64.whl#md5=8a637f414bc16c86708c01f17c94f3f6 (from https://pypi.python.org/simple/tensorflow/), version: 1.2.0rc0
...
Found link https://pypi.python.org/packages/fe/7d/01c588ba060e5e7dffe64ab968745d143530c84da30296f9593f661ca27d/tensorflow-1.5.0rc0-cp36-cp36m-manylinux1_x86_64.whl#md5=6578302e0c843660464cc16ad45d6093 (from https://pypi.python.org/simple/tensorflow/), version: 1.5.0rc0
...
Found link https://pypi.python.org/packages/4e/50/87e3c6861957413deb5ccd62aee6cea85cc2eedcf6391183595191d3c87d/tensorflow-1.5.0rc1-cp36-cp36m-manylinux1_x86_64.whl#md5=501d5072275518056aa5a5f25a001015 (from https://pypi.python.org/simple/tensorflow/), version: 1.5.0rc1

but at the end this does not register somehow with pip to be the latest version:

Installed version (1.4.1) is most up-to-date (past versions: 0.12.1, 1.0.0, 1.0.1, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.4.0, 1.4.1)
Requirement already up-to-date: tensorflow in ./.local/lib/python3.6/site-packages

I may be completely wrong, but it seems pip is not catching the versions with rc in the version number. I don't know if this is pip's error or tensorflow's error, but it seems to be an issue. Or am I wrong?

attiasr

attiasr commented on Jan 17, 2018

@attiasr

@tylerlekang pip fetch the latest stable release by default (see https://pip.pypa.io/en/stable/reference/pip_install/#pre-release-versions)
and the pypi package of tensorflow is still a release candidate (1.5.0rc1)

try using:
pip install 'tensorflow>=1.5.0rc1'

tylerlekang

tylerlekang commented on Jan 17, 2018

@tylerlekang

@attiasr Oh! Well ... that's embarrassing!

How long does it take the rc to turn into stable, and are there usually any changes once released as rc? Well I guess I can answer my own question by fact that there has already been rc0 and rc1 of 1.5.0 .....

Thanks!

attiasr

attiasr commented on Jan 17, 2018

@attiasr
ozkalt

ozkalt commented on Apr 29, 2018

@ozkalt

Thanks @Karthick333031 it works for me (MacOS 10.12.6)

umang6891

umang6891 commented on Aug 24, 2018

@umang6891

Running: pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.10.0-py3-none-any.whl solved the issue

Python 3.6.5
TensorFlow 1.10.0 (Was previously 1.10.1)
MacOS 10.14

hectorip

hectorip commented on Aug 25, 2018

@hectorip

Thanks,

@umang6891! It solved the problem for me. With the warning, my example hanged forever without failing, but now it runs. It looks like the problem is the version in pip.

screenshot 2018-08-24 23 38 35 👍

zhangjunpeng9354

zhangjunpeng9354 commented on Sep 13, 2018

@zhangjunpeng9354

@umang6891 's solution works good for me, and I am using a python3.6 virtualenv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @asimshankar@dartdog@febris21@bryanpham85@GreggHelt2

      Issue actions

        Creating a specific 3.6 binary for Linux · Issue #14182 · tensorflow/tensorflow