mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-25 11:45:49 +03:00
[GH-ISSUE #184] Can't access file #168
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 @toivocat on GitHub (Jul 26, 2021).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/184
It gives me this error at the bottom:
win32ctypes.pywin32.pywintypes.error: (1920, 'LoadLibraryEx', 'The file cannot be accessed by the system')
Project output will not be moved to output folder
Complete.
But it was working a few weeks ago.
@brentvollebregt commented on GitHub (Jul 27, 2021):
Have you read the help post that is linked at the bottom of the UI after each build (and many other places)? I discuss this issue in it.
Also, #166, #141 already discuss this.
@toivocat commented on GitHub (Jul 27, 2021):
And yes I looked at it.
@brentvollebregt commented on GitHub (Jul 27, 2021):
Are you using Python from the Windows Store?
@toivocat commented on GitHub (Jul 27, 2021):
no
@brentvollebregt commented on GitHub (Jul 27, 2021):
Are you using Windows? If so, could you execute "where python" in cmd and pass the output here.
Also, how are you running auto-py-to-exe? I didn't see this in the issue description.
@toivocat commented on GitHub (Jul 27, 2021):
it says it's here: C:\Users\Diana\AppData\Local\Microsoft\WindowsApps\python.exe
@toivocat commented on GitHub (Jul 27, 2021):
My name isn't Diana this was my gramas computer that she gave to me
@brentvollebregt commented on GitHub (Jul 27, 2021):
That output shows that whenever you execute "python", it is using Python from the Windows store.
How are you running auto-py-to-exe? If you are running it using
auto-py-to-exefrom cmd, can you pass the result ofwhere auto-py-to-exe.@toivocat commented on GitHub (Jul 27, 2021):
I downloaded it from pip and I have a shortcut on my desktop
@toivocat commented on GitHub (Jul 27, 2021):
because the cmd commands don't work.
@toivocat commented on GitHub (Jul 27, 2021):
Could you just send me the code? Then I could copy then past it in a .py file because I know it was made with tkinter.
@brentvollebregt commented on GitHub (Jul 27, 2021):
Cool, that hints to me that it will be using the default Python distribution which is most likely Python from the Windows Store.
Unless you can show me different, that it's not using Python from the Windows Store, then I say this is your issue (as outlined in the other issues and the help post).
@brentvollebregt commented on GitHub (Jul 27, 2021):
This is a git repo, all the code is right here for you??
@toivocat commented on GitHub (Jul 27, 2021):
I downloaded python from python.org/downloads/
@toivocat commented on GitHub (Jul 27, 2021):
It downloads two .py files nether of them work.
@brentvollebregt commented on GitHub (Jul 28, 2021):
Please follow the README on how to install and run the application - of course downloading the two individual Python scripts will not work, you do not have all the dependent files.
From the information you have provided above, I do not believe you are running the tool with a Python distribution that is not from the Windows Store. You may have installed another distribution from python.org but potentially have not configured your environment correctly to use this distribution.
@toivocat commented on GitHub (Jul 28, 2021):
I can't because those commands are for linux I think but they don't work in cmd.
@brentvollebregt commented on GitHub (Jul 28, 2021):
@toivocat can you please point out the commands that "are for linux".
As far as I'm aware, they will work on Windows regarding you have Python installed (and git if you are installing via GitHub).
@toivocat commented on GitHub (Jul 28, 2021):
$ pip install auto-py-to-exe
$ auto-py-to-exe
$ git clone https://github.com/brentvollebregt/auto-py-to-exe.git
$ cd auto-py-to-exe
$ python setup.py install
$ auto-py-to-exe
cmd gives me this error:
'$' is not recognized as an internal or external command,
operable program or batch file.
@brentvollebregt commented on GitHub (Jul 29, 2021):
You don't need to execute
$@toivocat commented on GitHub (Jul 29, 2021):
ok but if I just type in auto-py-to-exe it says:
'auto-py-to-exe' is not recognized as an internal or external command,
operable program or batch file.
@brentvollebregt commented on GitHub (Jul 29, 2021):
Have you installed auto-py-to-exe?
@toivocat commented on GitHub (Jul 29, 2021):
yes
@brentvollebregt commented on GitHub (Jul 30, 2021):
If you installed auto-py-to-exe, there should be a binary file in the "Scripts" folder in the root of your Python distribution (something like
C:\Python37- will depend on where you put it when you installed it) namedauto-py-to-exe.exe- does this exist? If not, then it has not been installed.@toivocat commented on GitHub (Jul 30, 2021):
it says it's here:
C:\Users\Diana\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts
also at the bottom it sayes:
WARNING: The scripts auto-py-to-exe.exe and autopytoexe.exe are installed in 'C:\Users\Diana\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
do you know how I can fix that
@brentvollebregt commented on GitHub (Jul 30, 2021):
You said you were not using Python from the Windows Store, but right there it shows you still are. How do I know? Read this.
Python from the Windows Store is not supported when not using a virtual environment.
Also, these GitHub issues are for issues about the tool auto-py-to-exe - however every question except your first one seems to be about your own environment setup.
@toivocat commented on GitHub (Jul 30, 2021):
You idiot how many times did I say I got it from python.org/downloads/? I also don't get stuff from the windows store on by computer because one the windows store has slow downloads and two my computer is really slow witch would take it like a day to download python!
@toivocat commented on GitHub (Nov 13, 2021):
Sorry about all this. I finally figured it out! It has nothing to do with this it is my stupid anti-virus software which keeps putting the executable in quarantine!
EDIT:
I also wasn't using python from the windows store.