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

install on mac gives ImportError: cannot import name symbol_database #282

Closed
evolu8 opened this issue Nov 18, 2015 · 7 comments
Closed

install on mac gives ImportError: cannot import name symbol_database #282

evolu8 opened this issue Nov 18, 2015 · 7 comments
Assignees

Comments

@evolu8
Copy link

@evolu8 evolu8 commented Nov 18, 2015

protobuf is not happy. What can I do?

import tensorflow
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/philipteare/anaconda/lib/python2.7/site-packages/tensorflow/__init__.py", line 4, in <module>
    from tensorflow.python import *
  File "/Users/philipteare/anaconda/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 13, in <module>
    from tensorflow.core.framework.graph_pb2 import *
  File "/Users/philipteare/anaconda/lib/python2.7/site-packages/tensorflow/core/framework/graph_pb2.py", line 9, in <module>
    from google.protobuf import symbol_database as _symbol_database
ImportError: cannot import name symbol_database
@vrv

This comment has been minimized.

Copy link
Contributor

@vrv vrv commented Nov 18, 2015

Most likely the runtime is selecting too old a version of protobuf -- we require protobuf 3.0.0.a3 or higher.

I'd see if any other installed version of protobuf is somehow interfering.

@vrv vrv self-assigned this Nov 19, 2015
@evolu8

This comment has been minimized.

Copy link
Author

@evolu8 evolu8 commented Nov 19, 2015

I'm on a lower version. Anyone got tips on upgrading. Preferably on anaconda
On 18 Nov 2015 10:06 pm, "Vijay Vasudevan" notifications@github.com wrote:

Most likely the runtime is selecting too old a version of protobuf -- we
require protobuf 3.0.0.a3 or higher.

I'd see if any other installed version of protobuf is somehow interfering.


Reply to this email directly or view it on GitHub
#282 (comment)
.

@victorv

This comment has been minimized.

Copy link

@victorv victorv commented Nov 19, 2015

If you have brew installed on OS X, you can use "brew reinstall --devel protobuf" to upgrade your protobuf to 3.0.x (experimental). This fixes the error.

@evolu8

This comment has been minimized.

Copy link
Author

@evolu8 evolu8 commented Nov 19, 2015

Thank you. Close, but:

/usr/local/Cellar/protobuf/3.0.0-alpha-2/include/google/protobuf/stubs/pbconfig.h:3:37:
note: expanded from macro 'GOOGLE_PROTOBUF_HASH_MAP_H'

#define GOOGLE_PROTOBUF_HASH_MAP_H <unordered_map>

                                ^

2 errors generated.

error: command 'clang' failed with exit status 1


Phil Teare
evolu8 Ltd


On Thu, Nov 19, 2015 at 10:13 PM, victorv notifications@github.com wrote:

If you have brew installed on OS X, you can use "brew reinstall --devel
protobuf" to upgrade your protobuf to 3.0.x (experimental). This fixes the
error.


Reply to this email directly or view it on GitHub
#282 (comment)
.

@victorv

This comment has been minimized.

Copy link

@victorv victorv commented Nov 20, 2015

Did you do a "brew doctor" to see if you have a unlinked packages or pathing issues?
Did you "brew update"?
If these fail, try "brew upgrade" which will upgrade all installed packages to the latest versions.

@vrv

This comment has been minimized.

Copy link
Contributor

@vrv vrv commented Feb 19, 2016

Related to not having the right version of protobuf installed, closing due to inactivity.

@vrv vrv closed this Feb 19, 2016
@cybertk

This comment has been minimized.

Copy link
Contributor

@cybertk cybertk commented Nov 28, 2017

Fixed by upgrading protobuf, like @vrv pointed.

tensorflow-copybara pushed a commit that referenced this issue Nov 29, 2019
Closes #282

PiperOrigin-RevId: 283064785
Change-Id: Ifac8f03310a4548f6f45399e5b2a2693bd7b0fe6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.