indygreg / indygreg/PyOxidizer

Pyoxidizer multiprocessing problem.

Open
#748 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
6.2k
Forks
256
PR merge metrics
No merged PRs in 30d

Description

Hello, guys.
When i compile program to pyoxidizer app in windows and run it. it's give me a error:

Traceback (most recent call last):
File "multiprocessing.spawn", line 107, in spawn_main
File "multiprocessing.reduction", line 79, in duplicate
TypeError: DuplicateHandle() argument 2 must be int, not dict

#code :
```
import multiprocessing

def run_webview():
...

p = multiprocessing.Process(target=run_webview,args=())
p.start()
```

What happen?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Windows PyOxidizer build with the provided multiprocessing example and trace the failure through multiprocessing.spawn and multiprocessing.reduction. Compare the packaged application's behavior with a normal Python run; done means the cause of the DuplicateHandle TypeError is identified and multiprocessing works in the packaged app.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
operating-systems, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.