+ 1

Pyinstaller can not find the images for me to upload.

I am using the command: pyinstaller Archivo.pyw, and inside I have several routes where the images are, but he can not find them.

16th Sep 2018, 11:38 PM
Javi Hidalgo
Javi Hidalgo - avatar
3 Respostas
+ 1
ohh, you have to write the location relative to the .py file, or absolute location( I only do relative like imagepath\image.gif, it's better practice) and python can only open gif and another one format, not png,jpeg etc. you have to be careful about that..
19th Sep 2018, 7:59 AM
Gaurav Atreya
Gaurav Atreya - avatar
+ 1
Are you sure you have your image in .ico format? use photoshop or just online ico converter if you have image in other format. And after you have .ico file use the syntax in pyinstaller --icon="[Drive:\][\pathname]image.ico" before the filename, for example for me the command is: pyinstaller --onefile --icon="d:\soft\landmaker\pics\icon.ico" d:\soft\landmaker\graph.py
18th Sep 2018, 7:28 AM
Gaurav Atreya
Gaurav Atreya - avatar
+ 1
I mean within the program, not the icon.
18th Sep 2018, 7:31 AM
Javi Hidalgo
Javi Hidalgo - avatar