tensorflow: 0.5.0 wheel install on Mac OS X using Homebrew python broken
This is what happens:
~: pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
Collecting tensorflow==0.5.0 from https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
Downloading https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl (9.8MB)
100% |████████████████████████████████| 9.8MB 51kB/s
Collecting six>=1.10.0 (from tensorflow==0.5.0)
Downloading six-1.10.0-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.9.2 in /usr/local/lib/python2.7/site-packages (from tensorflow==0.5.0)
Installing collected packages: six, tensorflow
Found existing installation: six 1.9.0
Uninstalling six-1.9.0:
Successfully uninstalled six-1.9.0
Successfully installed six-1.10.0 tensorflow-0.5.0
~: python
Python 2.7.10 (default, Jul 13 2015, 12:05:58)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/site-packages/tensorflow/__init__.py", line 4, in <module>
from tensorflow.python import *
File "/usr/local/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 13, in <module>
from tensorflow.core.framework.graph_pb2 import *
File "/usr/local/lib/python2.7/site-packages/tensorflow/core/framework/graph_pb2.py", line 16, in <module>
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File "/usr/local/lib/python2.7/site-packages/tensorflow/core/framework/attr_value_pb2.py", line 16, in <module>
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File "/usr/local/lib/python2.7/site-packages/tensorflow/core/framework/tensor_pb2.py", line 16, in <module>
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "/usr/local/lib/python2.7/site-packages/tensorflow/core/framework/tensor_shape_pb2.py", line 22, in <module>
serialized_pb=_b('\n,tensorflow/core/framework/tensor_shape.proto\x12\ntensorflow\"d\n\x10TensorShapeProto\x12-\n\x03\x64im\x18\x02 \x03(\x0b\x32 .tensorflow.TensorShapeProto.Dim\x1a!\n\x03\x44im\x12\x0c\n\x04size\x18\x01 \x01(\x03\x12\x0c\n\x04name\x18\x02 \x01(\tb\x06proto3')
TypeError: __init__() got an unexpected keyword argument 'syntax'
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 21 (6 by maintainers)
Links to this issue
Commits related to this issue
- Fixes #11: Due to sklearn 0.16 validation.check_array not taking list of dtypes, addressed it by making a choice prior the call. — committed to ilblackdragon/tensorflow by ilblackdragon 9 years ago
- Registered Ops for SYCL device. (#11) Registered EnterOp, ExitOp, SwitchOp, MergeOp and NextIterationOp, and _HostRecvOp for SYCL device. — committed to benoitsteiner/tensorflow by deleted user 8 years ago
- Registered Ops for SYCL device. (#11) Registered EnterOp, ExitOp, SwitchOp, MergeOp and NextIterationOp, and _HostRecvOp for SYCL device. — committed to benoitsteiner/tensorflow by deleted user 8 years ago
- Preparation for LIBXSMM 1.8 (#13) * Fixed libxsmm_config_arguments: Fixed the incorrect value supposed to trigger auto-prefetch. Fixed the 0-threshold, which is now accounted for in LIBXSMM (by just ... — committed to benoitsteiner/tensorflow by hfp 7 years ago
- Preparation for LIBXSMM 1.8 (#13) * Fixed libxsmm_config_arguments: Fixed the incorrect value supposed to trigger auto-prefetch. Fixed the 0-threshold, which is now accounted for in LIBXSMM (by just ... — committed to benoitsteiner/tensorflow by hfp 7 years ago
- Preparation for LIBXSMM 1.8 (#13) * Fixed libxsmm_config_arguments: Fixed the incorrect value supposed to trigger auto-prefetch. Fixed the 0-threshold, which is now accounted for in LIBXSMM (by just ... — committed to tensorflow/tensorflow by hfp 7 years ago
- Merge pull request #11 from ButterflyNetwork/rename_bnns Rename bnns module — committed to ButterflyNetwork/tensorflow by cancan101 7 years ago
- Added a comment about usage of the sycl_arm configuration (#11) * Added a comment about usage of the sycl_arm configuration, and added --incompatible_load_argument_is_label=false to all SYCL configur... — committed to Brolock/tensorflow by alistair-low 6 years ago
- Distributed Runtime (#11) — committed to acharal/tensorflow by DelphianCalamity 6 years ago
- Add bazel_build.sh Add use_explicit_batch parameter available in OpConverterParams and other places Formatting and make const bool everywhere Enable use_explicit_batch for TRT 6.0 Revise validatio... — committed to pooyadavoodi/tensorflow by deleted user 5 years ago
- Merge pull request #11 in AIML_DEPLOYMENT/tensorflow from feature/AIFORDES-303-performance-comparison to ifx/develop * commit '1acf4b08d84e46a71918bb601a855f9138ccf223': Added comments in the MNIST... — committed to tum-ei-eda/tensorflow by deleted user 4 years ago
- Merge pull request #11 from xmos/pad_op Pad op — committed to xmos/tensorflow by xross 4 years ago
- Merge pull request #11 from tensorflow/master Sync with upstream master — committed to jakobkruse1/tensorflow by andrewstevens-infineon 4 years ago
- Disabling MKLDNN based Eigen contraction kernels for ROCm build On some CI nodes (typically those with higher CPU core counts 128/256), the `//tensorflow/c/eager:c_api_distributed_test_gpu` test fail... — committed to tensorflow/tensorflow by deven-amd 3 years ago
- Fix the problem that cus accumulation does not work in convolution (#11) * fix the problem that cus as accumulation type does not work in convolution the scrach memory should be created by cutlass ... — committed to anandj91/tensorflow by serach24 2 years ago
- Merge pull request #11 from cms-externals/use-external-abslpy Use external abslpy — committed to kpedro88/tensorflow by iarspider a year ago
- Disabling MKLDNN based Eigen contraction kernels for ROCm build On some CI nodes (typically those with higher CPU core counts 128/256), the `//tensorflow/c/eager:c_api_distributed_test_gpu` test fail... — committed to fsx950223/tensorflow by deven-amd 3 years ago
This fixed the problem for me:
@vrv I’ve got
AttributeError: 'module' object has no attribute '__version__'for both 3.0.0a1 and 3.0.0a3 (which is the latest you can install with pip).I’ve found what fixes the issue for me:
It appears that Homebrew’s protobuf package was causing the issues. Removing it, then installing protobuf3 with pip does the trick.