Code Monkey home page Code Monkey logo

Comments (3)

anatol avatar anatol commented on August 28, 2024

see the same issue when running tests with python3

======================================================================
ERROR: tarantool (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: tarantool
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/loader.py", line 462, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
    __import__(name)
  File "/build/python-tarantool/src/tarantool-0.5.1/tarantool/__init__.py", line 6, in <module>
    from tarantool.connection import Connection
  File "/build/python-tarantool/src/tarantool-0.5.1/tarantool/connection.py", line 22, in <module>
    from tarantool.response import Response
  File "/build/python-tarantool/src/tarantool-0.5.1/tarantool/response.py", line 15, in <module>
    from tarantool.error import DatabaseError, tnt_strerror
  File "/build/python-tarantool/src/tarantool-0.5.1/tarantool/error.py", line 28, in <module>
    class Error(StandardError):
NameError: name 'StandardError' is not defined

from tarantool-python.

rtsisyk avatar rtsisyk commented on August 28, 2024
tarantool/1.6/test-run/lib/tarantool-python/tarantool/connection.py in handshake(self)
    135     def handshake(self):
    136         greeting_buf = self._recv(IPROTO_GREETING_SIZE)
--> 137         greeting = greeting_decode(greeting_buf)
    138         if greeting.protocol != "Binary":
    139             raise NetworkError("Unsupported protocol: " + greeting.protocol)

tarantool/1.6/test-run/lib/tarantool-python/tarantool/utils.py in greeting_decode(greeting_buf)
     66         return result
     67     except Exception as e:
---> 68         raise ValueError("Invalid greeting: " + str(greeting_buf) + ":" + str(e))

ValueError: Invalid greeting: b'Tarantool 1.6.7 (Binary) 166ac153-3577-4bb7-a2f0-d954adc686dd  \nlZA2QMXEFgHq028L+sUbrgEWcELxQod8USbepycmk7E=                   \n':'str' does not support the buffer interface

from tarantool-python.

bigbes avatar bigbes commented on August 28, 2024

fixed in b90eef6

from tarantool-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.