2

After converting my Python code to an executable, I am getting the following fatal errors when trying to run the program:

1. Failed to run pyiboot01_bootstrap script

2. Error: "NoneType" object has no attribute "write"

3. Error described in the figure: pic3.jpg Error 3

Note: The program works perfectly when running on VS Code. The program is basically an interface that extracts data from a text file. I attached the program below and the screens with the code that generated my .exe file

Screen Auto py to exe

Screen output Auto Py to exe

Any suggestions?

Dima Chubarov
  • 16,199
  • 6
  • 40
  • 76
Kelevra
  • 23
  • 3
  • have you tried "one dir" rather than "one file"? I sometimes find "one dir" to have better compatibility – Aaron Mar 08 '21 at 01:17
  • yes, i tried unfortunately ...... but as suggested, i will try to run directly through Python – Kelevra Mar 08 '21 at 10:16

1 Answers1

0

The problem may be with pyinstaller itself..

Reinstall pyinstaller and auto-py-to-exe and try again..

  • the program works correctly when I run it directly from cmd -> python "Import_DBAR.py" If you are interested, follow the link: https://www.dropbox.com/sh/bf04juewmwlaqm2/AADU9aUmKwcI63j-KzeiueCGa?dl=0 – Kelevra Mar 08 '21 at 10:23
  • after carefully looking at the error messages.. You must reinstall pyinstaller and auto-py-to-exe – Whirlpool-Programmer Mar 08 '21 at 10:29