Skip to content
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

[Fix Windows Compatibility]-The PermissionError in slconfig.py #21

Open
DeemoZen opened this issue Apr 9, 2023 · 2 comments
Open

[Fix Windows Compatibility]-The PermissionError in slconfig.py #21

DeemoZen opened this issue Apr 9, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@DeemoZen
Copy link

DeemoZen commented Apr 9, 2023

Very easy to fix compatibility issues, modify temp_config_file in slconfig.py = tempfile.NamedTemporaryFile(dir=temp_config_dir, suffix=".py") to (dir=temp_config_dir, suffix=".py",delete=False), and add a line: temp_config_file.close().
The reason seems to be that Windows does not allow reading unclosed cache files, so as long as you don't delete the file and close it once, you can move it normally.

@SlongLiu SlongLiu added the enhancement New feature or request label Apr 9, 2023
@rentainhe
Copy link
Collaborator

Thanks a lot for correcting this error!

@XixuHu
Copy link

XixuHu commented Apr 9, 2023

Thanks for this correction! Finally solved the strange "Permission Denies" issues on Win...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants