@@ -65,28 +65,28 @@ def __init__(self, name: str = None, create: bool = False, size: int = 0):
6565 except ModuleNotFoundError :
6666 # Unfortunately, on (some?) Windows systems, we see the error:
6767 #
68- # Traceback (most recent call last):
69- # File "...\site-packages\appose\types.py", line 97, in decode
70- # return json.loads(the_json, object_hook=_appose_object_hook)
71- # File "...\lib\json\__init__.py", line 359, in loads
72- # return cls(**kw).decode(s)
73- # File "...\lib\json\decoder.py", line 337, in decode
74- # obj, end = self.raw_decode(s, idx=_w(s, 0).end())
75- # File "...\lib\json\decoder.py", line 353, in raw_decode
76- # obj, end = self.scan_once(s, idx)
77- # File "...\site-packages\appose\types.py", line 177, in _appose_object_hook
78- # return SharedMemory(name=(obj["name"]), size=(obj["size"]))
79- # File "...\site-packages\appose\types.py", line 63, in __init__
80- # resource_tracker.unregister(self._name, "shared_memory")
81- # File "...\lib\multiprocessing\resource_tracker.py", line 159, in unregister
82- # self._send('UNREGISTER', name, rtype)
83- # File "...\lib\multiprocessing\resource_tracker.py", line 162, in _send
84- # self.ensure_running()
85- # File "...\lib\multiprocessing\resource_tracker.py", line 129, in ensure_running
86- # pid = util.spawnv_passfds(exe, args, fds_to_pass)
87- # File "...\lib\multiprocessing\util.py", line 448, in spawnv_passfds
88- # import _posixsubprocess
89- # ModuleNotFoundError: No module named '_posixsubprocess'
68+ # Traceback (most recent call last): # noqa: E501
69+ # File "...\site-packages\appose\types.py", line 97, in decode # noqa: E501
70+ # return json.loads(the_json, object_hook=_appose_object_hook) # noqa: E501
71+ # File "...\lib\json\__init__.py", line 359, in loads # noqa: E501
72+ # return cls(**kw).decode(s) # noqa: E501
73+ # File "...\lib\json\decoder.py", line 337, in decode # noqa: E501
74+ # obj, end = self.raw_decode(s, idx=_w(s, 0).end()) # noqa: E501
75+ # File "...\lib\json\decoder.py", line 353, in raw_decode # noqa: E501
76+ # obj, end = self.scan_once(s, idx) # noqa: E501
77+ # File "...\site-packages\appose\types.py", line 177, in _appose_object_hook # noqa: E501
78+ # return SharedMemory(name=(obj["name"]), size=(obj["size"])) # noqa: E501
79+ # File "...\site-packages\appose\types.py", line 63, in __init__ # noqa: E501
80+ # resource_tracker.unregister(self._name, "shared_memory") # noqa: E501
81+ # File "...\lib\multiprocessing\resource_tracker.py", line 159, in unregister # noqa: E501
82+ # self._send('UNREGISTER', name, rtype) # noqa: E501
83+ # File "...\lib\multiprocessing\resource_tracker.py", line 162, in _send # noqa: E501
84+ # self.ensure_running() # noqa: E501
85+ # File "...\lib\multiprocessing\resource_tracker.py", line 129, in ensure_running # noqa: E501
86+ # pid = util.spawnv_passfds(exe, args, fds_to_pass) # noqa: E501
87+ # File "...\lib\multiprocessing\util.py", line 448, in spawnv_passfds # noqa: E501
88+ # import _posixsubprocess # noqa: E501
89+ # ModuleNotFoundError: No module named '_posixsubprocess' # noqa: E501
9090 #
9191 # A bug in Python? Regardless: we guard against it here.
9292 # See also: https://github.com/imglib/imglib2-appose/issues/1
0 commit comments