indygreg / indygreg/PyOxidizer

Incompatibility with PIL ?

Open
#129 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hey, using python 3.7 on mac and running build using a venv with all the dependencies installed.
The application runs fine using python and the venv but when I build with pyoxidizer and try opening it I get the following error:

Traceback (most recent call last):
File "app", line 4, in
File "face_recognition", line 7, in
File "face_recognition.api", line 3, in
File "PIL.Image", line 95, in
ImportError: cannot import name '_imaging' from 'PIL' (unknown location)

Does anyone have any suggestions on what I can try?

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 macOS Python 3.7 build with the reported virtual-environment dependencies and compare it with the working interpreter run. Trace the built application's import of face_recognition.api and PIL.Image, then verify that the packaged application can import PIL's _imaging component without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
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.