Re: 'command not found' error when trying to run built executable
This doesn't sound like a PyInstaller problem, it sounds like an
How are you executing your program? In Unix-like systems, the current
directory is not part of your PATH, so you have to reference the file
through a relative or absolute path. In most cases where your
executable is in your current directory, you just need to prepend your
call to the executable with "./", for example:
> I have a reasonably complex working python program.
> I am new to pyinstaller.
> I have managed to create my executable but when it runs all I get is MyProg: command not found.
> ls -la shows "x" set OK for all users.
> I build with --noupx --onefile --debug=all proj.spec
> proj.spec is the one auto generated with the addition of a folder of json files for my code.
> I understand I could have build issues.
> Can anyone set me on the road to finding the solution?
> Ross Duncan
> You received this message because you are subscribed to the Google Groups "PyInstaller" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> Visit this group at https://groups.google.com/group/pyinstaller.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/ffd477aa-c877-4327-87e9-1a780ee58897%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.