indygreg / PyOxidizer

A modern Python application packaging and distribution tool
Mozilla Public License 2.0
5.32k stars 227 forks source link

How to manually include modules (customtkinter) #719

Open odonald opened 9 months ago

odonald commented 9 months ago

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 <module> 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.