Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Converting to exe problems
#7
When you say black window are you taking about the cmd/command prompt/console

If your getting errors from that it probably means there is something wrong in your code, probably something to do about location of pictures and not being able to find imports all that stuff. If you are using pyinstaller from the link above, there is an option for window based meaning the console/cmd won't appear. If the problem is w/ being able to find pictures/songs I would suggest something like this -
import os
from pathlib import Path #may have to use pip to install

d = Path(__file__).parent
picture = os.path.join(d, 'Folder for stuff', 'picture.png') #The "Folder for Stuff" would be in the same directory as the .exe
Reply


Messages In This Thread
Converting to exe problems - by francisco_neves2020 - Apr-18-2019, 08:59 PM
RE: Converting to exe problems - by SheeppOSU - Apr-18-2019, 11:30 PM
RE: Converting to exe problems - by SheeppOSU - Apr-19-2019, 12:12 AM
RE: Converting to exe problems - by gehrenfeld - Apr-20-2019, 12:51 PM
RE: Converting to exe problems - by SheeppOSU - Apr-20-2019, 08:11 PM
RE: Converting to exe problems - by SheeppOSU - Apr-20-2019, 11:20 PM
RE: Converting to exe problems - by SheeppOSU - Apr-20-2019, 11:25 PM
RE: Converting to exe problems - by snippsat - Apr-20-2019, 11:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems converting pyqt4 script to pyqt5 using pyqt4topyqt5.py Vysero 1 2,826 Jul-31-2018, 08:56 PM
Last Post: Axel_Erfurt

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020