Hey Jasper, I am running it from the dist folder. I've discovered that my windows defender has been blocking this file. I just worked with my organizations IT team to get it unblocked and it seems to be working now!
Thanks! On Friday, February 10, 2023 at 12:19:40 PM UTC-5 Jasper Harrison wrote: > Justin > > The notanexecutable extension is something pyinstaller does internally to > combat overly aggressive antivirus during the build process. And is > irrelevant to the actual process of how the file contents is created. This > isn't explained on most forums because it is a recent change. > > Are you running the executable from the dist folder or the build folder? > > > Jasper Harrison, aka Legorooj > Core Developer on PyInstaller > https://legorooj.net > > > > -------- Original Message -------- > On 10 Feb 2023, 15:34, Justin Smith < jtsmi...@gmail.com> wrote: > > > I'm trying to covert a python tkinder gui into an executable for my > collogues with pyinstaller. The console output states that it always runs > successfully however when I try to open the .exe I get an error message > saying > > Windows cannot access the specified device, path, or file. You may not > have the appropriate permissions to access them. > > I can't find anything online that has been helpful and I'm hoping someone > might be able to give me a useful hint here. > > My initial run is with "pyinstaller my_script.py --onefile --windowed" and > after the spec is created I'll update the datas array to include > a .json file that is needed for the script in the form > of "datas=[('my_json.json', '.')]," (it lives in the same folder as the > python script). After all this I'll rerun pyinstaller as "pyinstaller > my_script.spec". But still no luck. > > I've notice that in other forums when people post their console output > there's a line that states: 3780 INFO: Updating manifest in > "C:\Users\PATH_TO_THEIR_SCRIPT\dist\their_script.exe" > > Where as mine states: 3780 INFO: Updating manifest in > "C:\Users\PATH_TO_MY_SCRIPT\dist\my_script.exe.notanexecutable" > > Why does mine have the "notanexecutable" appended? > > -- > 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 pyinstaller...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pyinstaller/9de73dd7-cdc5-41c4-984e-16390ad7a59cn%40googlegroups.com > > <https://groups.google.com/d/msgid/pyinstaller/9de73dd7-cdc5-41c4-984e-16390ad7a59cn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- 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 pyinstaller+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/8ea252f9-5d7a-4e4b-ad00-c1af42277563n%40googlegroups.com.