PyInstaller Failed to Execute Script (pandas) - python

I've been using PyInstaller for a while now for work. Today I've been trying to compile a program for work using the same process I always do on the same program with some bug fixes - and the compile goes all the way through and builds. The final exe file gives me a weird error.
Same problem on my co-worker's computer. We also tried to use Py2Exe with no success.
What am I doing wrong? Any tips?
Screenshots - https://imgur.com/a/AEcS2

Related

Running pyinstaller on Ubuntu 20.04 creates file not able to run properly

I'm working on a VirtualBox Machine running Ubuntu 20.04 as the software. I'm using the virtual machine to create executable scripts using pyinstaller that will work across several platform types.
What Happens
Using the terminal, I run python3 -m PyInstaller --onefile "filename.py", which works as it should and creates a single file of the program. However, the name of the program is just that, the name. There is no file type associated with it and the end is just blank. For example, if the program name is program v.1.0.py, the executable's name is program v.1.0. Once I click on it, it will not run and nothing will show up. The log file I have set up shows the error CRITICAL: Program experienced unexpected error. Program terminated with EOF when reading a line. From my research, I understand this can happen when there is an input clause that is not fulfilled, which makes sense as the first line of the code begins with an input line.
What Should Happen
The executable should pop up a terminal dialogue as it does on my Debian and Windows devices, but instead, I get nothing, not even an indication of something going wrong. If anyone has experience with something similar and an idea of how to fix it, I would appreciate the help.

Python is searching in the wrong user folder

I am running a python script with Process.Start from c#. The program works correctly on my main PC however when I try to run it on another computer it comes up with this error:
No Python at 'C:\Users\[User name on main Pc ]\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe'
How could I solve this?
It seems that Python is not installed on the other PC. That's why your script is not working. You need to install Python first, so your PC is able to interpret your code.

Fatal error detected "Failed to execute script main".Works with pyinstaller, crash with HM NSIS

I tried to execute a try except command on the app to get log of the error but it still crash so I think it is a problem of PATH ? library ?
Why does it work with pyinstaller and not after I created an installer.nsi with HM NSIS edit ?
I'm sorry but I have no idea of how to debug it !
It is a "simple" project. tkinter app, excel creation, 1 thread...
I don't know from where it comes from (I'm not good in system and OS).
PS: even stranger, when I install the app with Install.exe, if I decide to launch the app directly it works !!!
But it never work a second time when I use the shortcut or the .exe in C:\Program Files (x86)\MYDIRECTORY.
This a permission problem, I tried to write on a protected file.
Solution to debug:
do not use --noconsole when you run pyinstaller, it will let you the console and with windows+G, you can keep track of the error even if the terminal stop immediatly after the crash of the programm.
(I tried to register the error in a .json in a try except but that the thing that made my program crash !)

Tensorflow - running python files in Spyder

to give a bit of background I'm trying to use TensorFlow object detection api. I have been following this tutorial https://www.youtube.com/watch?v=MoMjIwGSFVQ
15 minutes into it he uses Spyder, and runs the python files on it. I've never used Spyder before, and for some reason it's not running my files at all? When I press run nothing is returned on the console.
So can anyone suggest a different IDE that I could use that would allow me to do the same things as he does? Or would anyone be able to tell me why Spyder might not be running. (I installed it in Linux terminal, and simply imported the file as a project as he did, and so I'm a bit stumped as to whats going wrong).
Thanks!

"executable not specified" error when running python script

I moved a script I was working on to another computer with the same version of python. When I try running the script on the second computer, I get an error that reads
error running myscript: Executable is not specified
Tried looking it up, didnt' seem to find anything.
Is it possible this is because I installed python alone on the first computer, but anaconda on the second? I'm not really sure what could cause the error. As far as I can tell it has nothing to do with the code. Tested on the original computer and worked fine.
Ended up just creating an executable through py2exe rather than trying to figure out what was going on with the paths. Works perfectly.

Categories