indygreg / indygreg/PyOxidizer
cargo build fails, unable to find PyInit_oxidized_importer
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 6.2k
- Forks
- 256
- PR merge metrics
- No merged PRs in 30d
Description
Running `cargo build` in a fresh checkout of the repo produces the following error:
```
[...snip...]
Compiling pyembed v0.8.0-pre (C:\Users\Dylan\Desktop\PyOxidizer\pyembed)
[...snip...]
Compiling oxidized-importer v0.8.0-pre (C:\Users\Dylan\Desktop\PyOxidizer\oxidized-importer)
error[E0425]: cannot find function, tuple struct or tuple variant `PyInit_oxidized_importer` in crate `pyembed`
--> oxidized-importer\src\lib.rs:11:14
|
11 | pyembed::PyInit_oxidized_importer()
| ^^^^^^^^^^^^^^^^^^^^^^^^ not found in `pyembed`
|
help: consider importing this function
|
5 | use crate::PyInit_oxidized_importer;
|
error: aborting due to previous error
For more information about this error, try `rustc --explain E0425`.
error: could not compile `oxidized-importer`.
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running `cargo build` in a fresh checkout and inspect `oxidized-importer/src/lib.rs`, especially its call to `pyembed::PyInit_oxidized_importer()`. Trace where the `PyInit_oxidized_importer` symbol is defined or generated in `pyembed`; done means the fresh checkout builds without the missing-function error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, rust
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100