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
{{ message }}
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.
When I now try to import snakebite.client I get this:
$ pipenv run python -c 'import snakebite.client; print "bye"'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/stefaan/.local/share/virtualenvs/tmp2-JPL-14RH/lib/python2.7/site-packages/snakebite/client.py", line 20, in <module>
from snakebite.service import RpcService
File "/Users/stefaan/.local/share/virtualenvs/tmp2-JPL-14RH/lib/python2.7/site-packages/snakebite/service.py", line 16, in <module>
from snakebite.channel import SocketRpcChannel
File "/Users/stefaan/.local/share/virtualenvs/tmp2-JPL-14RH/lib/python2.7/site-packages/snakebite/channel.py", line 53, in <module>
import snakebite.protobuf.datatransfer_pb2 as datatransfer_proto
File "/Users/stefaan/.local/share/virtualenvs/tmp2-JPL-14RH/lib/python2.7/site-packages/snakebite/protobuf/datatransfer_pb2.py", line 15, in <module>
RROR_CHECKSUM\x10\x02\x12\x11\n\rERROR_INVALID\x10\x03\x12\x10\n\x0c\x45RROR_EXISTS\x10\x04\x12\x16\n\x12\x45RROR_ACCESS_TOKEN\x10\x05\x12\x0f\n\x0b\x43HECKSUM_OK\x10\x06\x42>\n%org.apache.hadoop.hdfs.protocol.protoB\x12\x44\x61taTransferProtos\xa0\x01\x01')
File "/Users/stefaan/.local/share/virtualenvs/tmp2-JPL-14RH/lib/python2.7/site-packages/google/protobuf/descriptor.py", line 829, in __new__
return _message.default_pool.AddSerializedFile(serialized_pb)
TypeError: Couldn't build proto file into descriptor pool!
Invalid proto descriptor for file "datatransfer.proto":
SUCCESS: "SUCCESS" is already defined in file "RpcPayloadHeader.proto".
SUCCESS: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "SUCCESS" must be unique within the global scope, not just within "Status".
ERROR: "ERROR" is already defined in file "RpcPayloadHeader.proto".
ERROR: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "ERROR" must be unique within the global scope, not just within "Status".
With standard virtualenv/pip
For reference, using standard virtualenv/pip works:
$ virtualenv-2.7 ve
$ source ve/bin/activate
(ve)$ pip install 'snakebite<2'
Downloading/unpacking snakebite<2
Downloading snakebite-1.3.13.tar.gz (65kB): 65kB downloaded
Running setup.py (path:/Users/stefaan/tmp/snakebite-playground/tmp1/ve/build/snakebite/setup.py) egg_info for package snakebite
Downloading/unpacking protobuf>2.4.1 (from snakebite<2)
Downloading protobuf-3.5.2.post1-py2.py3-none-any.whl (388kB): 388kB downloaded
Downloading/unpacking argparse (from snakebite<2)
Downloading argparse-1.4.0-py2.py3-none-any.whl
Downloading/unpacking six>=1.9 (from protobuf>2.4.1->snakebite<2)
Downloading six-1.11.0-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): setuptools in ./ve/lib/python2.7/site-packages (from protobuf>2.4.1->snakebite<2)
Installing collected packages: snakebite, protobuf, argparse, six
Running setup.py install for snakebite
changing mode of build/scripts-2.7/snakebite from 644 to 755
changing mode of /Users/stefaan/tmp/snakebite-playground/tmp1/ve/bin/snakebite to 755
Successfully installed snakebite protobuf argparse six
Cleaning up...
(ve)$ python -c 'import snakebite.client; print "bye"'
bye
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I know that snakebite 1.3 is unsupported, but I wanted to report this, at least to have a pointer for myself.
Installing snakebite 1.3 with pipenv causes protobuf errors for me when I try to import
snakebite.client
.Illustration
First setting up environment:
When I now try to import
snakebite.client
I get this:With standard virtualenv/pip
For reference, using standard virtualenv/pip works:
The text was updated successfully, but these errors were encountered: