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 < jtsmith9...@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+unsubscr...@googlegroups.com][pyinstaller_unsubscribe_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].
>


[pyinstaller_unsubscribe_googlegroups.com]: 
mailto:pyinstaller+unsubscr...@googlegroups.com
[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/txc1uc4aynvo1ZVjHdnqRpC5LJgkw9b2Q5QEvo69ucS29Tn2BHXShBltNPfnlbmH5LfOLdAq2j__ZMOurb5M8qGUS9L1Br_5xVzVl-yHWPA%3D%40protonmail.com.

Attachment: publickey - EmailAddress(s=legorooj@protonmail.com) - 0x164CF234.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to