indygreg / indygreg/PyOxidizer

Built binary unable to find packaged dependencies

Open
#435 1 comment 0 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 am running into an issue where I am building a binary of SaltStack and the binary is failing to find dependency modules that are definitely included. The dependency in question is python-ldap, which is in the `lib` directory next to the binary, but when ran you get the following:
```shell
==> /var/log/salt/master <==
2021-08-23 11:20:40,130 [salt.loaded.int.auth.ldap:339 ][ERROR ][8475] LDAP authentication requires python-ldap module
```
Is there some method of importing that can be used to solve this?

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 by reproducing the SaltStack binary build with python-ldap present in the lib directory next to the binary. Investigate PyOxidizer's packaged-dependency import handling; done when the built binary loads python-ldap and the LDAP authentication error no longer occurs.

Written by the indexing model from the issue text.

Assessment

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