Bottom Page

Thread Rating:
  • 3 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems running exe file from pyinstaller
#1
I want to convert a simple .py file to .exe file. I am using ubuntu 18.04,python 3.7,pyinstaller 3.4. I have been able to convert .py file to .exe file but when I try to run it,nothing happens. No output,no error,nothing. What might be the problem?
You like this post
Quote
#2
hard to say without knowing exactly how you ran the tool.
You need to show what you tried step by step, even the simplest steps.
You like this post
Quote
#3
If need .exe you most build it with pyinstaller on Windows.
pyinstaller work on Linux but it dos not create .exe for Windows.
So on Linux it will make foo no file extension ,and on Windows foo.exe.
They work the same also a stand alone executable,but need to build on OS used.
You and buran like this post
Quote
#4
(Jan-14-2019, 05:01 PM)Larz60+ Wrote: hard to say without knowing exactly how you ran the tool. You need to show what you tried step by step, even the simplest steps.

I first changed my directory to the folder where my code was saved then I tried running pyinstaller through terminal
pyinstaller --onefile calculator1.py
https://drive.google.com/open?id=1fDP7jQ...hJCtYt5PtZ
https://drive.google.com/open?id=1fDP7jQ...hJCtYt5PtZ

Everything runs fine and there is also folder for build and dist but when I try to run the exe file in dist folder,nothing happens.

(Jan-14-2019, 05:15 PM)snippsat Wrote: If need .exe you most build it with pyinstaller on Windows. pyinstaller work on Linux but it dos not create .exe for Windows. So on Linux it will make foo no file extension ,and on Windows foo.exe. They work the same also a stand alone executable,but need to build on OS used.

that executable file is created but it doesn't run. What do you mean y building that OS?
Quote
#5
(Jan-15-2019, 07:34 AM)ersa21 Wrote: What do you mean y building that OS?
Is't simple you say use Ubuntu 18.04,then you can not build .exe for Windows.
There is Wine that can used to run pyinstaller in,but in general is better to build in Windows if need .exe.
Pyinstaller is not a cross-compiler,if your on Linux you build for Linux,same for Windows.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  [SOLVED] problems with the If statement or is it the variables being used NickIgoe 2 54 Mar-22-2019, 06:34 AM
Last Post: NickIgoe
  Missing required dependencies when using pyinstaller Ghonim 14 469 Mar-08-2019, 09:54 AM
Last Post: dmag
  Problems parsing /proc folder anddontyoucomebacknomore 2 119 Mar-06-2019, 09:16 PM
Last Post: DeaD_EyE
  Problems with For Loops and Lists Sagramor72 2 115 Mar-04-2019, 01:26 PM
Last Post: Sagramor72
  problems with random number/string PrasadPython 3 104 Mar-01-2019, 06:00 PM
Last Post: ichabod801
  problems with writting a text file sunny 6 216 Feb-24-2019, 10:52 PM
Last Post: Larz60+
  Problems with IDLE Blaedel 5 187 Feb-13-2019, 06:32 AM
Last Post: Syntricon
  Pyinstaller can not execute script. negru555 0 163 Jan-27-2019, 05:15 PM
Last Post: negru555
  Python unittest - running multiple tests from CSV file asheru93 0 128 Jan-21-2019, 08:26 AM
Last Post: asheru93
  pyinstaller used 3.7 to build instead 2.7 jacklee26 4 197 Jan-17-2019, 10:35 AM
Last Post: snippsat

Forum Jump:


Users browsing this thread: 1 Guest(s)