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

issue: FileSystemCache.Set fails on windows with OSError #12

Merged
merged 1 commit into from
May 16, 2020
Merged

issue: FileSystemCache.Set fails on windows with OSError #12

merged 1 commit into from
May 16, 2020

Conversation

snjypl
Copy link
Contributor

@snjypl snjypl commented May 15, 2020

FileSystemCache.Set fails on windows with OSError

line 158, in set os.rename(tmp, filename) FileExistsError: [WinError 183] Cannot create a file when that file already exists: on windows os.rename raises OSError if the dst file already exist.
it is because of os.rename. on windows it throws OSError if the dst exists.

it is suggested to use os.replace if we intend to overwrite the destination file

on windows os.rename raises OSError if the dst file already exist. 

it is suggested to use os.replace if we intend to overwrite the destination file 
`If you want cross-platform overwriting of the destination, use replace().`
@lepture lepture merged commit ea98b2d into pallets-eco:master May 16, 2020
@Adityashaw
Copy link

Adityashaw commented May 26, 2020

When will this be released on pip?

Alternatively, how can I use it now?

@snjypl
Copy link
Contributor Author

snjypl commented May 29, 2020

@Adityashaw not sure when it is going to be available on pip.
in the mean while maybe you could try installing from git.
pip install git+https://github.com/pallets/cachelib.git@master

@villebro
Copy link

@davidism @lepture Are there any plans on releasing a new versions on PyPI? Not being able to use on Windows seems like a pretty big problem that merits a 0.1.1 release IMO.

@lepture
Copy link
Contributor

lepture commented Jun 20, 2020

0.1.1 was released.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

7 participants