Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

AttributeError: Can't pickle local object 'ArgumentParser.__init__.<locals>.identity' on Windows #128

Open
SofianeHamlaoui opened this issue Feb 14, 2024 · 0 comments

Comments

@SofianeHamlaoui
Copy link

OS : Windows 11
Pytest : 8.0.0
Pytest-parallel : 0.1.1
Command executed : pytest --workers 2 tests/endpoint_test.py

The error :

Exception in thread Thread-1 (process_responses):
Traceback (most recent call last):
  File "C:\Users\$USER\AppData\Local\Programs\Python\Python310\lib\multiprocessing\connection.py", line 312, in _recv_bytes
    nread, err = ov.GetOverlappedResult(True)
BrokenPipeError: [WinError 109] The pipe has been ended

During handling of the above exception, another exception occurred:
.
.
.
.
.
INTERNALERROR>   File "C:\Users\$USER\AppData\Local\Programs\Python\Python310\lib\multiprocessing\reduction.py", line 60, in dump
INTERNALERROR>     ForkingPickler(file, protocol).dump(obj)
INTERNALERROR> AttributeError: Can't pickle local object 'ArgumentParser.__init__.<locals>.identity'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant