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

Mac OS X Python 3.5 binary runtime warning for Tensorflow 1.5.0+ #18850

Closed
binoche9 opened this issue Apr 25, 2018 · 13 comments
Closed

Mac OS X Python 3.5 binary runtime warning for Tensorflow 1.5.0+ #18850

binoche9 opened this issue Apr 25, 2018 · 13 comments
Assignees

Comments

@binoche9
Copy link

binoche9 commented Apr 25, 2018

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): Mac OS X 10.13.4
  • TensorFlow installed from (source or binary): binary (or whatever pip is)
  • TensorFlow version (use command below): 1.5.0+
  • Python version: 3.5.2
  • Bazel version (if compiling from source):
  • GCC/Compiler version (if compiling from source):
  • CUDA/cuDNN version: N/A
  • GPU model and memory: 8GB CPU
  • Exact command to reproduce: python -c "import tensorflow"

Describe the problem

I seem to have the opposite problem of #14182

I'm using Python 3.5, but when I try to use a Tensorflow version 1.5 or above with the command

python -c "import tensorflow"

I get a RuntimeWarning saying:

/Users/<user>/.pyenv/versions/3.5.3/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: 
compiletime version 3.6 of module 'tensorflow.python.framework.fast_tensor_util' does not match 
runtime version 3.5
  return f(*args, **kwds)

When I install using pip install tensorflow==1.5.0, it installs from https://files.pythonhosted.org/packages/b1/57/1d27695a4572d70b8cd365dd358b45a41ece811d675910e175254779885e/tensorflow-1.5.0-cp35-cp35m-macosx_10_11_x86_64.whl

Installing with pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.5.0-py3-none-any.whl doesn't make the warning go away either.

I get this warning for any Tensorflow version 1.5.0 and above. Incidentally, 1.5.0 is where the runtime binary for Python 3.6 was fixed, so I'm wondering if this is related. I have no issues when installing Tensorflow 1.5.0+ on Ubuntu 16.04 with pip install tensorflow with Python 3.5.2 so it seems to be a Mac OS X problem.

Source code / logs

I get the warning whenever I run import tensorflow

@binoche9 binoche9 changed the title Python 3.5 binary runtime warning for Tensorflow 1.5.0+ Mac OS X Python 3.5 binary runtime warning for Tensorflow 1.5.0+ Apr 25, 2018
@tensorflowbutler
Copy link
Member

Nagging Assignee @skye: It has been 15 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@skye
Copy link
Member

skye commented May 16, 2018

@gunan can you comment or reassign? Thanks!

@skye skye assigned gunan and unassigned skye May 16, 2018
@gunan
Copy link
Contributor

gunan commented May 17, 2018

Do you see just a warning, or do you also face problems when running things?
We might be just renaming the package we built for python 36 on macos, because we cannot easily create macos environments using docker.

@binoche9
Copy link
Author

I didn't face any issues, but I also wasn't running any complicated stuff because it was my introudction to tensorflow and I was just playing around with the basics

@mcharrak
Copy link

mcharrak commented Jun 1, 2018

I ran into the same issue.

I am using python version 3.5.5 and after "import tensorflow" I do get the following warning:

/anaconda2/envs/tensorflow/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: compiletime version 3.6 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.5 return f(*args, **kwds)

Please clarification what to do and how to solve?

Note:
If I change my python version from 3.5.5 to 3.6.5 the warning message disappears, so is that an issue with python 3.5?

@tensorflowbutler
Copy link
Member

Nagging Assignee @gunan: It has been 15 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@gunan
Copy link
Contributor

gunan commented Jun 16, 2018

Do you see any errors in practice?
Any unexpected results, or any unexpected failures?
Looks like this is just a warning message.
We are still working on the new system to build more packages, but it may take some time to land.

@tensorflowbutler
Copy link
Member

Nagging Assignee @gunan: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@tensorflowbutler
Copy link
Member

Nagging Assignee @gunan: It has been 29 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@gunan
Copy link
Contributor

gunan commented Jul 29, 2018

this should be resolved now.

@gunan gunan closed this as completed Jul 29, 2018
@delfu
Copy link

delfu commented Sep 14, 2018

i still have the issue with python 3.6.5
screen shot 2018-09-14 at 10 34 49 am

@MacQwerty
Copy link

MacQwerty commented Sep 19, 2018

=> python -c "import tensorflow"
/usr/local/Cellar/python/3.6.5_1/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)

I get the same warning on MacOS 10.13.6. Tried to install Tensorflow with latest Python v.3.7.0, yet that didn't work...

Update: Reverting Tensorflow to an earlier build and using https://github.com/lakshayg/tensorflow-build resolved the warning.

@delfu
Copy link

delfu commented Sep 19, 2018

Tensorflow doesnt exist for python 3.7 yet because of a reserved keyword issue. 20517

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

7 participants