indygreg / indygreg/PyOxidizer

Including PyGObject

Open
#146 1 comment 0 reactions 0 assignees View on GitHub
compatibility help wanted
Dominant language
Rust
Stars
6.2k
Forks
256
PR merge metrics
No merged PRs in 30d

Description

I'm trying to use PyOxidizer to build a [zim](https://github.com/zim-desktop-wiki/zim-desktop-wiki) binary, however it fails as with the following message:

```
Traceback (most recent call last):
File "zim", line 40, in
File "zim.main", line 22, in
File "zim.fs", line 27, in
File "zim.signals", line 7, in
File "gi", line 42, in
ImportError: cannot import name '_gi' from 'gi' (unknown location)
ERROR: Could not find python module files in path:

Try setting PYTHONPATH
```

The required package is [PyGObject](https://pygobject.readthedocs.io/en/latest/getting_started.html), is it possible to link it somehow into the app?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the failing imports in zim.main, zim.fs, zim.signals, and gi, then read the PyGObject getting-started documentation linked in the issue. Determine whether a PyOxidizer-built application can package PyGObject so the gi import finds _gi; done means the zim binary starts without this ImportError.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.