indygreg / indygreg/PyOxidizer

Help loading a package

Open
#273 1 comment 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

I've been trying to load a few NLP related packages, and seems they can't be loaded in-memory
Successfully installed click-7.1.2 joblib-0.16.0 nltk-3.5 regex-2020.6.8 tqdm-4.47.0 error[PYOXIDIZER_BUILD]: in-memory-only resources policy active but in-memory extension module importing not supported by this configuration --> ./pyoxidizer.bzl:107:5 | 107 | exe.add_in_memory_python_resources(dist.pip_install(["nltk"])) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ add_extension_module
I built the package from source locally, but now I'm unsure how to include it. Would love some help - happy to be able to bundle an app into a binary

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 at pyoxidizer.bzl line 107 and read the add_in_memory_python_resources call together with the in-memory-only resources policy error. Reproduce the build with the shown nltk installation and determine what configuration or packaging path is required for a bundled binary; done means the NLP package loads successfully in the resulting application.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
build-system, 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.