indygreg / indygreg/PyOxidizer
How to manually include modules (customtkinter)
- Dominant language
- Rust
- Stars
- 6.2k
- Forks
- 256
- PR merge metrics
- No merged PRs in 30d
Description
Hey,
I'm trying to compile my python app (cptn. obvious).
I'm stuck with this:
`Traceback (most recent call last):
File "/Users/xxx/Documents/Code/Commercial/project/main.py", line 4, in
import customtkinter as ctk
ModuleNotFoundError: No module named 'customtkinter'
error: cargo run failed`
I used to use PyInstaller to compile my apps and had the same issue with customtkinter, which I fixed by manually adding the path to the customtkinter module in PyInstaller compile command via "--add-data".
Is there a simple way to manually add modules in my .bzl ?
Thanks for any ideas to fix this.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the application's .bzl file and the PyOxidizer configuration for Python module inclusion, using main.py's import customtkinter and the traceback as the reproduction. Determine whether the configuration can include that module manually, then verify the packaged app starts without ModuleNotFoundError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, rust
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100