-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New project creation fails on Windows due to PermissionError when deleting the temporary common files directory #748
Comments
Dear @e2jk, thank you very much for all if your detailed issues and troubleshooting. Unfortunately, we don't have Windows machines so it will be a challenge to solve all of these. Nevertheless, we already had it completely working on Windows as tested by @adlanto . The number of issues that you found is staggering and I am wondering (except for the unicode issue) whether some of these origin from your usage of Windows 10 Enterprise? Thanks! |
Adding as a separate post, I forgot to indicate (although I mentioned it here) that I got around this issue by commenting out the call to
|
Dear @Zethson, my pleasure. I thought it might be useful to get some details on a first-time user's experience on Windows. I'm not sure if it's linked to the fact that it's Enterprise, but anyway, that's what I have from the job. Maybe the shortest/most pragmatic way would be to handle for the exception, if the call to When I installed the cookietemple package, I did not have the registry key changed. As I had decided to use [*] I'm not affiliated at all with |
Big +1. Very useful and we appreciate it!
Yes, please. Maybe we silently ignore it on Windows, but print out a warning if the OS was Linux/MacOS?
All right, cool. Good to know. We also have this in the installation instructions.
Guess I'll have to look into it :) Just also trying to figure out which additional variables we have to troubleshoot (W10 Enterprise + pipx etc) so that we don't troubleshoot things that are errors of the tools. But of course I still want cookietemple to work with those in any case! Merci beaucoup. |
I just noticed your Twitter post, glad that you feel like that ;)
Already 2 of the issues/merged, PAT validations being discussed (not really Windows-related) and prompting to remove the dependency on autopep8 and update the docs on the changelog: I'd say we're in good way to get them ALL fixed ;) Anyway... That's the issue with all these fun toys: I was actually planning to use |
Yeah. Feels good to clean up some old issues.
Haha, I know that all too well :) |
Associated Template/Command/Core
C:\Users\<username>\Documents\devel>cookietemple --verbose create
(on Windows 10)
When creating a new project (first time using cookietemple, which I installed using
pipx
), a Traceback is triggered when trying to delete a folder in windows equivalent of /tmp. Namely:PermissionError: [WinError 32] Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus: 'C:\\Users\\<username>\\AppData\\Local\\Temp\\tmp3i9rs9e7'
The error message in French could be translated to "The process cannot access the file because this file is used by another process:"
A new folder is created in the directory from where I ran the command, it seems to contain all the files, but the rest of the process (uploading to GitHub etc.) doesn't execute.
To Reproduce
Steps to reproduce the behavior:
create
Full `--verbose` output of the command (Click to expand)
Expected behavior
I would have expected the program to finish without throwing an Exception, and upload the project to GitHub, register on PyPI (or whatever cookietemple is expected to do - as mentioned, this is first time I'm using it)
System:
pipx
)pipx
Additional context
Please ask if any other detail would be needed. In the meantime I'll start with the files creted in the folder, and will handle the project creation manually on GitHub.
The text was updated successfully, but these errors were encountered: