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
Describe the bug
nameko worker process raise an exception when calling Path('anything').open(). reference to this issue, that should caused by a bug of eventlet.
run command line nameko run server and python client.py. Expected behavior
client crushed and server raised a exception. exception on my machine:
Traceback (most recent call last):
File "/home/***/.local/share/virtualenvs/judger-uPeNMyNf/lib/python3.7/site-packages/nameko/containers.py", line 392, in _run_worker
result = method(*worker_ctx.args, **worker_ctx.kwargs)
File "./server.py", line 10, in test
Path('anything').open()
File "/usr/lib64/python3.7/pathlib.py", line 1186, in open
opener=self._opener)
File "/usr/lib64/python3.7/pathlib.py", line 1039, in _opener
return self._accessor.open(self, flags, mode)
File "/home/***/.local/share/virtualenvs/judger-uPeNMyNf/lib/python3.7/site-packages/eventlet/green/os.py", line 107, in open
fd = __original_open__(file, flags, mode, dir_fd=dir_fd)
TypeError: open: path should be string, bytes or os.PathLike, not _NormalAccessor
Environment (please complete the following information):
Nameko version: 2.12.0
Python version: 3.7.3
OS: Manjaro/Linux
The text was updated successfully, but these errors were encountered:
As a simple workaround, in python >= 3.6 you should be able to use the normal builtin open function on pathlib objects. This seems to work fine and should have the exact same result (but without the crash):
Describe the bug
nameko worker process raise an exception when calling
Path('anything').open()
. reference to this issue, that should caused by a bug of eventlet.To Reproduce
server.py
client.py
run command line
nameko run server
andpython client.py
.Expected behavior
client crushed and server raised a exception. exception on my machine:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: