spotify / snakebite

A pure python HDFS client
Apache License 2.0
856 stars 216 forks source link

Invalid syntax and module error #216

Closed mikayla-grace closed 7 years ago

mikayla-grace commented 7 years ago

Installed snakebite-2.11.0 under CentOS 7 and Fedora 24. Both return an invalid syntax and a module exception:

  File "/usr/lib/python3.4/site-packages/snakebite-2.11.0-py3.4.egg/snakebite/client.py", line 1473
    baseTime = min(time * (1L << retries), cap);
                            ^
SyntaxError: invalid syntax

Once we fixed this, a module exception is thrown:

  File "/usr/lib/python3.5/site-packages/snakebite/client.py", line 16, in <module>
    import snakebite.protobuf.ClientNamenodeProtocol_pb2 as client_proto
  File "/usr/lib/python3.5/site-packages/snakebite/protobuf/ClientNamenodeProtocol_pb2.py", line 12, in <module>
    import Security_pb2
ImportError: No module named 'Security_pb2'
mikayla-grace commented 7 years ago

Apparently Snakebite does not work with Python 3, reverted to 2 and its working now.