mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-26 04:05:49 +03:00
[GH-ISSUE #268] Permission Denied When Exporting Files #239
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (May 2, 2022).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/268
I am making a very dumb and stupid application, and I decided to turn it into a .exe file. It exports completely fine and runs fine up until one point. For some background, I am making an application that takes an image and turns it into a pet the X or a pet pet. Everything works fine up to the point where it's turned into a .exe and I run it as a .exe. Everything works fine and then I export the petpet file and it says that permission is denied. Any fixes? I am running on Windows 10, and the code works absolutely fine when it's just in python and not an executable. I do not believe it's my code that's the problem more like how PyInstaller and auto-py-to-exe works. I hope I can get this working soon as I have a pretty big project that uses file system stuff too that would be ruined if I couldn't turn it into an exe. Here's my code. The modules that are being used are tkinter, os, pathlib, and I was going to remove sv_ttk. Oh and don't forget the beautiful petpet module. I am using the latest version of python. filedirectory is the file to convert. btw downloaddir is replaced with a file dialog with tkinter but I don't have access to that code right now. There's still no reason why it shouldn't work to begin with though.
@brentvollebregt commented on GitHub (May 3, 2022):
Can you please provide the whole exception and stack trace
@Abhijeetbyte commented on GitHub (May 3, 2022):
@DINOTICK-Dev , You can try this method
@ghost commented on GitHub (May 4, 2022):
It compiles fine, but I get an error saying permission denied after selecting an image to export into a gif file.
@ghost commented on GitHub (May 4, 2022):
wdym by that?
@Abhijeetbyte commented on GitHub (May 5, 2022):
You should try Pyinstaller manually, going through all individual commands.
Cause u said
@ghost commented on GitHub (May 5, 2022):
Oh ok then. I'll see if that works... Which I honestly doubt that it will. I'll keep you informed if it does and possibly a PR if I find why this is happening and I manage to fix it. (I love pull requests lol)
@Abhijeetbyte commented on GitHub (May 7, 2022):
@DINOTICK-Dev May be it's an Admin permission problem
Run as administrator. If does work thentry
--uac-admincommand with pyinstaller@ghost commented on GitHub (May 9, 2022):
@Abhijeetbyte I have already tried that. I also tried building with just PyInstaller, with administrator, and set the directory to my downloads.
@github-actions[bot] commented on GitHub (Jun 19, 2022):
This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment on this issue or it will be closed in 5 days.
@github-actions[bot] commented on GitHub (Jul 21, 2022):
This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment on this issue or it will be closed in 5 days.
@github-actions[bot] commented on GitHub (Aug 22, 2022):
This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment on this issue or it will be closed in 5 days.
@github-actions[bot] commented on GitHub (Aug 27, 2022):
Closing issue due to no activity in more than 60 days.