indygreg / indygreg/PyOxidizer

Memory loading issue possible workaround

Open
#641 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
6.2k
Forks
256
PR merge metrics
No merged PRs in 30d

Description

Hi, i've recently came across the memory loading issue like in the issue ([438](https://github.com/indygreg/PyOxidizer/issues/438)). I am also using pydantic(1.10.2). After I tried around for some time I tried using pydantic from github instead of Pypi. In that case, the error `extension module pydantic cannot be loaded from memory but memory loading required` won't come anymore.

Now the main question is, why there is a difference between using the pre-build wheels from Pypi and using the github repo and building it itself. The problem is, that we want to use pyoxidizer to build independent executables without the requirement to install additional libs (at least for linux).
I've made a [demo repo](https://github.com/henningWoehr/pydantic_test) to easily reproduce this error. There's also a little more documentation on how to reproduce this error.

I hope this is the right place for this issue because I figured, this has to be an issue with how pip is used to installs the wheel, but that's just guess.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked demo repository and compare its PyPI pydantic dependency with the build from the GitHub repository, then review issue #438 for the related memory-loading behavior. Done means identifying the wheel or packaging difference and documenting or implementing a path that lets PyOxidizer produce an independent Linux executable.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.