indygreg / indygreg/PyOxidizer

Avoid conflict in program arguments

Open
#478 5 comments 0 reactions 0 assignees View on GitHub
need-info
Dominant language
Rust
Stars
6.2k
Forks
256
PR merge metrics
No merged PRs in 30d

Description

I am working with pyembed to embed a python kernel and using default python config for the kernel. however, i can see that there is an issue when im trying to pass args to my program to start. error is:
```
Try `python -h' for more information.
Error: during initializing Python core: could not format PyStatus
```
any ideas?

Also, when running `cargo test -- --nocapture`, im getting:
```
unknown option --nocapture
Dynamic("during initializing Python core: could not format PyStatus")'
```

without `-- --nocapture`, my tests run fine.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure with pyembed's default Python config, first using program arguments and then `cargo test -- --nocapture`; compare which arguments reach embedded Python initialization. Done means program arguments and Cargo's test passthrough no longer produce the reported Python initialization error, while the existing tests still pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.