Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13921

Customtkinter and pyinstaller issue

$
0
0

I am trying to use pyinstaller to convert my code to an .exe but when I run the command

pyinstaller --noconfirm --name Pendu --onedir --icon=icon.ico --add-data "C:\Users\adamc\OneDrive\onda\envs\converter\Lib\site-packages\customtkinter;./customtkinter"  --add-data "C:\Users\adamc\OneDrive\onda\envs\converter\Lib\site-packages\customtkinter\assets\themes\green.json" test.pyw

I got an error :pyinstaller: error: argument --add-data: invalid add_data_or_binary value: 'C:\\Users\\adamc\\OneDrive\\onda\\envs\\converter\\Lib\\site-packages\\customtkinter\\assets\\themes\\green.json'

The problem is that my --add-data for green.json is crucial else when I run the app I got the customtkinter error saying that some file like json theme file were missing. What can I do to fix it ?


Viewing all articles
Browse latest Browse all 13921

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>