iancmcc/ouimeaux

Python 3 env.discover TypeError

vzlgdu opened this issue · 0 comments

Hi, I'm migrating from Python2 to Python3.

Running the script in Python3, when execute emv.disover(4), I receive the following:

Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/gevent/pywsgi.py", line 964, in handle_one_response
self.run_application()
File "/usr/local/lib/python3.5/dist-packages/gevent/pywsgi.py", line 912, in run_application
self.process_result()
File "/usr/local/lib/python3.5/dist-packages/gevent/pywsgi.py", line 898, in process_result
self.write(data)
File "/usr/local/lib/python3.5/dist-packages/gevent/pywsgi.py", line 745, in write
self._write_with_headers(data)
File "/usr/local/lib/python3.5/dist-packages/gevent/pywsgi.py", line 766, in _write_with_headers
self._write(data)
File "/usr/local/lib/python3.5/dist-packages/gevent/pywsgi.py", line 730, in _write
self._sendall(data)
File "/usr/local/lib/python3.5/dist-packages/gevent/pywsgi.py", line 704, in _sendall
self.socket.sendall(data)
File "/usr/local/lib/python3.5/dist-packages/gevent/_socket3.py", line 450, in sendall
data_memory = _get_memory(data)
File "src/gevent/_greenlet_primitives.py", line 98, in gevent.__greenlet_primitives.get_memory
File "src/gevent/_greenlet_primitives.py", line 121, in gevent.__greenlet_primitives.get_memory
File "src/gevent/_greenlet_primitives.py", line 109, in gevent.__greenlet_primitives.get_memory
TypeError: memoryview: a bytes-like object is required, not 'str'
2019-10-04T13:23:28Z {'REMOTE_ADDR': '::ffff:10.0.0.102', 'HTTP_HOST': '10.0.0.117:8577', 'REMOTE_PORT': '3601', (hidden keys: 23)} failed with TypeError

Please, could you help me?

Thanks