#🔒 I turned the pyhton file to exe but it crashes please guys be fast

85 messages · Page 1 of 1 (latest)

turbid steeple
#

i dont know what to do or problem is ı just installed the pyinstaller then made the py file exe but now this thing is just crashing

stuck dewBOT
#

@turbid steeple

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

turbid steeple
#

ı connected it sql3 but ı have no clue wheres the db

pure narwhal
#

do you see any error?

turbid steeple
#

there isnt any error

#

ı just turned it to the exe file

#

then tried to open

#

there isnt any photo

vivid ravine
#

Why "be fast" in the title?

pure narwhal
#

try opening the exe from cmd and see if any output is there

vivid ravine
turbid steeple
vivid ravine
turbid steeple
vivid ravine
turbid steeple
#

umm ı gotta bring it to the school tomorrow :D

#

what should ı do ?

vivid ravine
#

But why as exe? Python scripts are hard to convert, it's better to just keep them as py

chilly summit
vivid ravine
pure narwhal
turbid steeple
chilly summit
turbid steeple
pure narwhal
turbid steeple
#

nothing important j

turbid steeple
chilly summit
pure narwhal
#

do you see any errors?

turbid steeple
#

try

vivid ravine
chilly summit
turbid steeple
#

bel'rt'len modül bulunamadı means couldnt find the variable i guess

pure narwhal
turbid steeple
pure narwhal
#

first of all why is the .exe not in a dist folder?

vivid ravine
pure narwhal
#

most likely you have copied just the exe to an outer folder from dist/

#

and then tried to run it. that won't work. you need the entire contents of dist/ in the way they are

#

tldr run your exe from dist/

turbid steeple
#

ı got the whole folder

pure narwhal
#

what's the pyinstaller command you are running?

#

are you overriding the output folder?

turbid steeple
#

lemme check

turbid steeple
#

pyhton -m PyInstaller --onedir ...

#

... = the py file location

turbid steeple
pure narwhal
#

share your full pyinstaller command

turbid steeple
turbid steeple
pure narwhal
turbid steeple
#

Python -m PyInstaller --onedir "C:\Users\iumit\Desktop\Ders\Codes\Kodlama Deneme\kel\deneme v2.py"

turbid steeple
#

ı just found an error on that file which i just sent photo of

#

This file lists modules PyInstaller was not able to find. This does not
necessarily mean this module is required for running your program. Python and
Python 3rd-party packages include a lot of conditional or optional modules. For
example the module 'ntpath' only exists on Windows, whereas the module
'posixpath' only exists on Posix systems.

Types if import:

  • top-level: imported at the top-level - look at these first
  • conditional: imported within an if-statement
  • delayed: imported within a function
  • optional: imported within a try-except-statement

IMPORTANT: Do NOT post this list to the issue-tracker. Use it as a basis for
tracking down the missing module yourself. Thanks!

missing module named 'org.python' - imported by copy (optional)
missing module named org - imported by pickle (optional)
missing module named pwd - imported by posixpath (delayed, conditional, optional), shutil (delayed, optional), tarfile (optional), pathlib (delayed, optional), subprocess (delayed, conditional, optional)
missing module named grp - imported by shutil (delayed, optional), tarfile (optional), pathlib (delayed, optional), subprocess (delayed, conditional, optional)
missing module named posix - imported by os (conditional, optional), posixpath (optional), shutil (conditional), importlib._bootstrap_external (conditional)
missing module named resource - imported by posix (top-level)
missing module named _frozen_importlib_external - imported by importlib._bootstrap (delayed), importlib (optional), importlib.abc (optional)
excluded module named _frozen_importlib - imported by importlib (optional), importlib.abc (optional)
missing module named _posixsubprocess - imported by subprocess (conditional)
missing module named fcntl - imported by subprocess (optional)

#

not sure if its error but it was sayin warn

pure narwhal
#

i don't see a python runtime dll in your screenshot

#

check the source code folder once if anything is getting created there

turbid steeple
#

nothing it put the onedir file somewhere else im not sure where it was ima create aga

#

again

pure narwhal
#

yea delete the entire folder and try again

#

i am seeing a bunch of random stuff here. like what's that html file there?

soft copper
#

do note btw that if the computer you'll be running this on is windows 7, python 3.11 won't run there

turbid steeple
#

nah win 10

pure narwhal
turbid steeple
soft copper
pure narwhal
#

y

pure narwhal
turbid steeple
#

k now it works

#

thanks

pure narwhal
#

do !close

turbid steeple
#

ı closed the visual studio entirely ☠️👍

pure narwhal
#

enter !close here to close this thread

#

if you are done that is

turbid steeple
#

oh

#

ok

#

thanks for help

#

!close

stuck dewBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.