#🔒 I turned the pyhton file to exe but it crashes please guys be fast
85 messages · Page 1 of 1 (latest)
@turbid steeple
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.
ı connected it sql3 but ı have no clue wheres the db
do you see any error?
there isnt any error
ı just turned it to the exe file
then tried to open
there isnt any photo
Why "be fast" in the title?
try opening the exe from cmd and see if any output is there
Try to run the exe from the cmd, then you'll be able to see if it prints anything
i gotta stop makng noise with my keyboard everyone else is sleepin
Sql is language. You probably mean sqlite3
yeah ı meant that
Then go to sleep and fix it tomorrow?
But why as exe? Python scripts are hard to convert, it's better to just keep them as py
This is unlikely to be a "fast fix" -- turning a python script to an exe has a lot of snafus
Why "run"? Just the path, it's exe, it will run directly
what's the run there for? remove it and run
dam
What does "deneme" mean in English?
i ve almost never used cmd before
what's this?
nothing important j
just a name i put
Sure; but what does it mean?
do you see any errors?
||attempt, try. Nothing shady if you were wondering about the exe||
I was just curious is all
bel'rt'len modül bulunamadı means couldnt find the variable i guess
pls google translate that one
The specified module was not found ☠️
first of all why is the .exe not in a dist folder?
Probably meant the file. The python to exe stuff has to literally put the whole python interpreter inside the exe. And it fails a lot.
That's why it's not recommended, as i said. Why can't you just bring the py files and run it normally with python?
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/
ı got the whole folder
what's the pyinstaller command you are running?
are you overriding the output folder?
lemme check
school problems
pyhton -m PyInstaller --onedir ...
... = the py file location
.
wha ?
share your full pyinstaller command
this is the folder it gave to me for this code
k
where is your source code?
Python -m PyInstaller --onedir "C:\Users\iumit\Desktop\Ders\Codes\Kodlama Deneme\kel\deneme v2.py"
isnt this ur looking for ?
ı 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
i don't see a python runtime dll in your screenshot
check the source code folder once if anything is getting created there
nothing it put the onedir file somewhere else im not sure where it was ima create aga
again
yea delete the entire folder and try again
i am seeing a bunch of random stuff here. like what's that html file there?
do note btw that if the computer you'll be running this on is windows 7, python 3.11 won't run there
nah win 10
win7 explorer doesn't have dark mode (unless modded maybe)
wha ?
i meant the school computer.
y
click y. that's where your pyinstaller output is actually going
do !close
ı closed the visual studio entirely ☠️👍
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.