You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This makes following the tutorial impossible using python 3 - and the tutorial makes no note of the python 2 requirement.
Reacted by Oleksii, Václav Dohnal, Vlad Ionescu, Vlad Velici, Dominik Stadler, Krzysztof Kozmic, GPhilo, Ed Robinson, Joshua, Oleg Kozlovskyi and 18 more
Reacted by jasonzhang079 and Dudley Esteban Díaz Suárez
Reacted by Václav Dohnal, Mikhail Sirotenko, Jason Morgan, Richard Muñoz, Dominik Stadler, GPhilo, Peng Yu, chen wei, Dimitar Pavlov, Shevkunov Kirill and 60 more
The API package is just a collection of autogenerated classes from proto files. It already supports python 3 as-is, it just needs to be published as such.
Reacted by Václav Dohnal, GPhilo, Dimitar Pavlov, Martial Hue, Majid alDosari, Charles German and Ashwin Hegde
I can confirm, that the package supports Python 3 (we're using it on Python 3.6 without any changes). Unfortunately, the package is tagged as Python2 only on PyPI, so it is not possible to simply run pip install ....
At this point we have to do:
Download .whl file from PyPI
Unzip package
Copy&Paste tensorflow_serving/* to our Python3 project
// EDIT: I think this issue should be re-openned. We have a year 2018, Python3 is the future.
Reacted by Mikhail Sirotenko, Jason Morgan, XuFeng, Feisan, gottk, Frank, Ed Robinson, hufangjian, chen wei, Dimitar Pavlov and 23 more
Folks, the issue is that, at this time, we cannot sign up for the ongoing support of python 3. Please understand that although it may be "easy", for a variety of reasons the cost to us is not zero and we do have to limit our commitments. We will revisit this decision in the future.
Reacted by Václav Dohnal, Piotr Żelasko, lacatus, Jonas Brunsgaard, jsn5, Vlad Bataev, Andrew Stepanov, Kavindu Dodanduwa, Tsotne Tabidze, Martial Hue and 19 more
I believe more people are using python3(especially new learners) and tensorflow also support python3 offically. Please consider making tensorflow serving available officially.
Thank you
Reacted by RSam, Aaron Morris, Paritosh Gupta, LeslieChiang, Joshua Jones, Navneet, Martial Hue, Li Jinyao, thangnvd, pihtahorse and 13 more
we are using Python3, and trying to migrate Flask model server to Tensorflow model server, I believe most of other TF Serving users are also using python3, rather than python2.
Again, please try to support python3 officially, you know it will somehow impact the Go/NoGO decision for TF serving migration project.
@jasonzhang079 the client does support Python 3. You can literally just use the existing python 2 wheel - but you have to download it manually.
The bug here is opened because the TF serving team doesn't seem to understand how this works. pip isn't used internally at Google, so I think they're just unfamiliar with the system. It's literally just a single flag change in their build script, but I can't seem to get them to understand this. Makes me almost want to go back to work for them just to get this issue resolved. ;)
Reacted by mikkopori, vuzya, AK, Dudley Esteban Díaz Suárez, Riccardo Padovani, Majid alDosari, Janis Lesinskis, Francesco Mosconi and Vlad Ionescu
Reacted by Snehal Patel, 海洋@tju, jason-leng, Md Asadul Islam, 卡利米库猫, Dudley Esteban Díaz Suárez and Vlad Bataev
How do I install tensorflow-model-server on macOS? Apparently instructions are there for apt-get and bazel. I'm getting this error when trying to install with bazel using this command bazel build -c opt tensorflow_serving/...
Any ideas @jkinkead ? Beginning of the error:
ERROR: /private/var/tmp/_bazel_Sumanth/f07d738ca2f9eb67816d8a220b407e4d/external/org_tensorflow/tensorflow/python/BUILD:396:1: C++ compilation of rule '@org_tensorflow//tensorflow/python:py_util' failed (Exit 1)
In file included from external/org_tensorflow/tensorflow/python/lib/core/py_util.cc:20:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/locale:182:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:492:15: error: C++ requires a type specifier for all declarations
char_type toupper(char_type __c) const
^
bazel-out/host/genfiles/external/local_config_python/python_include/pyport.h:731:29: note: expanded from macro 'toupper'
#define toupper(c) towupper(btowc(c))
^
In file included from external/org_tensorflow/tensorflow/python/lib/core/py_util.cc:20:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/locale:182:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:498:48: error: too many arguments provided to function-like macro invocation
const char_type* toupper(char_type* __low, const char_type* __high) const
^
bazel-out/host/genfiles/external/local_config_python/python_include/pyport.h:731:9: note: macro 'toupper' defined here
#define toupper(c) towupper(btowc(c))
^
In file included from external/org_tensorflow/tensorflow/python/lib/core/py_util.cc:20:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/locale:182:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:498:29: error: expected ';' at end of declaration list
const char_type* toupper(char_type* __low, const char_type* __high) const
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:510:48: error: too many arguments provided to function-like macro invocation
const char_type* tolower(char_type* __low, const char_type* __high) const
^
bazel-out/host/genfiles/external/local_config_python/python_include/pyport.h:729:9: note: macro 'tolower' defined here
#define tolower(c) towlower(btowc(c))
^
In file included from external/org_tensorflow/tensorflow/python/lib/core/py_util.cc:20:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/locale:182:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/_locale:494:27: error: use of undeclared identifier '_c'
return do_toupper(__c);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:601:15: error: C++ requires a type specifier for all declarations
char_type toupper(char_type __c) const
^
bazel-out/host/genfiles/external/local_config_python/python_include/pyport.h:731:29: note: expanded from macro 'toupper'
#define toupper(c) towupper(btowc(c))
^
In file included from external/org_tensorflow/tensorflow/python/lib/core/py_util.cc:20:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/locale:182:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:607:48: error: too many arguments provided to function-like macro invocation
const char_type* toupper(char_type* __low, const char_type* __high) const
^
bazel-out/host/genfiles/external/local_config_python/python_include/pyport.h:731:9: note: macro 'toupper' defined here
#define toupper(c) towupper(btowc(c))
^
In file included from external/org_tensorflow/tensorflow/python/lib/core/py_util.cc:20:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/locale:182:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:607:29: error: expected ';' at end of declaration list
const char_type* toupper(char_type* __low, const char_type* __high) const
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:619:48: error: too many arguments provided to function-like macro invocation
const char_type* tolower(char_type* __low, const char_type* __high) const
^
bazel-out/host/genfiles/external/local_config_python/python_include/pyport.h:729:9: note: macro 'tolower' defined here
#define tolower(c) towlower(btowc(c))
^
In file included from external/org_tensorflow/tensorflow/python/lib/core/py_util.cc:20:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/locale:182:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/_locale:603:27: error: use of undeclared identifier '_c'
return do_toupper(__c);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:729:21: error: too many arguments provided to function-like macro invocation
isspace(_CharT __c, const locale& __loc)
^
bazel-out/host/genfiles/external/local_config_python/python_include/pyport.h:725:9: note: macro 'isspace' defined here
#define isspace(c) iswspace(btowc(c))
^
In file included from external/org_tensorflow/tensorflow/python/lib/core/py_util.cc:20:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/locale:182:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:729:1: error: declaration conflicts with target of using declaration already in scope
isspace(_CharT __c, const locale& __loc)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/_ctype.h:267:1: note: target of using declaration
isspace(int _c)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cctype:113:9: note: using declaration
using ::isspace;
^
In file included from external/org_tensorflow/tensorflow/python/lib/core/py_util.cc:20:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/locale:182:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:731:5: error: expected expression
return use_facet<ctype<CharT> >(_loc).is(ctype_base::space, __c);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:732:2: error: expected ';' at end of declaration
}
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:753:21: error: too many arguments provided to function-like macro invocation
isupper(_CharT __c, const locale& __loc)
^
bazel-out/host/genfiles/external/local_config_python/python_include/pyport.h:727:9: note: macro 'isupper' defined here
#define isupper(c) iswupper(btowc(c))
^
In file included from external/org_tensorflow/tensorflow/python/lib/core/py_util.cc:20:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/locale:182:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:753:1: error: declaration conflicts with target of using declaration already in scope
isupper(_CharT __c, const locale& __loc)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/_ctype.h:273:1: note: target of using declaration
isupper(int _c)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cctype:114:9: note: using declaration
using ::isupper;
^
In file included from external/org_tensorflow/tensorflow/python/lib/core/py_util.cc:20:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/locale:182:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:755:5: error: expected expression
return use_facet<ctype<CharT> >(_loc).is(ctype_base::upper, __c);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:756:2: error: expected ';' at end of declaration
}
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:761:21: error: too many arguments provided to function-like macro invocation
islower(_CharT __c, const locale& __loc)
^
bazel-out/host/genfiles/external/local_config_python/python_include/pyport.h:723:9: note: macro 'islower' defined here
#define islower(c) iswlower(btowc(c))
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
INFO: Elapsed time: 5440.752s, Critical Path: 606.11s
INFO: 1671 processes, local.
FAILED: Build did NOT complete successfully
Activity
chrisolston commentedon Jan 2, 2018
Sorry, tf-serving only supports python 2. See https://github.com/tensorflow/serving/pull/685/files
jkinkead commentedon Jan 2, 2018
The API package is just a collection of autogenerated classes from proto files. It already supports python 3 as-is, it just needs to be published as such.
illagrenan commentedon Jan 3, 2018
I can confirm, that the package supports Python 3 (we're using it on Python 3.6 without any changes). Unfortunately, the package is tagged as Python2 only on PyPI, so it is not possible to simply run
pip install ....At this point we have to do:
.whlfile from PyPItensorflow_serving/*to our Python3 project// EDIT: I think this issue should be re-openned. We have a year 2018, Python3 is the future.
jkinkead commentedon Jan 22, 2018
Adding the
--universalflag to this command should be sufficient to get the package labeled as cross-version:jkinkead commentedon Jan 22, 2018
I'm happy to submit a patch fixing the script, but I can't publish or verify on my own.
Aspirinkb commentedon Jan 30, 2018
@illagrenan I Copy&Paste tensorflow_serving/* to my Python3 project, but
No moudle named 'tensorflow_serving.session_bundle'.chrisolston commentedon Feb 5, 2018
Folks, the issue is that, at this time, we cannot sign up for the ongoing support of python 3. Please understand that although it may be "easy", for a variety of reasons the cost to us is not zero and we do have to limit our commitments. We will revisit this decision in the future.
jkinkead commentedon Feb 5, 2018
To clarify: The request is that you label your existing, universal (Python3-compatible) build artifact as such.
We're asking for a label change, not an implementation change. The only Python3 support we're getting is from the gRPC project, not from TensorFlow.
hufangjian commentedon Feb 6, 2018
hi ,when the python3 api will be published,thanks.
illagrenan commentedon Feb 6, 2018
I think there was some misunderstanding -
servingsupports Python3, the only problem are tags on the PyPI (@jkinkead is right).I have made Python3 compatible package (I only redistributed official Python package with Python3-compatible
setup.py): https://github.com/illagrenan/tensorflow-serving-api-python3. You can now do this:# Python3 package from https://pypi.python.org/pypi/tensorflow-serving-api-python3 pip install --upgrade tensorflow-serving-api-python3a7744hsc commentedon Mar 6, 2018
I believe more people are using python3(especially new learners) and tensorflow also support python3 offically. Please consider making tensorflow serving available officially.
Thank you
jasonzhang079 commentedon Apr 18, 2018
we are using Python3, and trying to migrate Flask model server to Tensorflow model server, I believe most of other TF Serving users are also using python3, rather than python2.
Again, please try to support python3 officially, you know it will somehow impact the Go/NoGO decision for TF serving migration project.
THANK YOU!!!
jkinkead commentedon Apr 18, 2018
@jasonzhang079 the client does support Python 3. You can literally just use the existing python 2 wheel - but you have to download it manually.
The bug here is opened because the TF serving team doesn't seem to understand how this works.
pipisn't used internally at Google, so I think they're just unfamiliar with the system. It's literally just a single flag change in their build script, but I can't seem to get them to understand this. Makes me almost want to go back to work for them just to get this issue resolved. ;)lkluo commentedon Jun 11, 2018
Google does not take care of this issue with half a year's time?
hurricanedjp commentedon Jun 12, 2018
pip install tensorflow-serving-api-python3
sumanth-culli commentedon Jul 6, 2018
How do I install
tensorflow-model-serveron macOS? Apparently instructions are there forapt-getandbazel. I'm getting this error when trying to install with bazel using this commandbazel build -c opt tensorflow_serving/...Any ideas @jkinkead ?
Beginning of the error:
Support building Python3-compatible PIP packages
idiotic-intellect commentedon Nov 20, 2019
How do I install tensorflow-model-server on Windows10?