Urlretrieve permission denied

 File "/usr/local/lib/python3.7/urllib/request.py", line 257, in urlretrieve
    tfp = open(filename, 'wb')
PermissionError: [Errno 13] Permission denied: 'best.pt'

ım getting this error while using urlretrieve how can i fixed? i can get another file but ı cannot get this file

Hi @isaacnewton35,

Thank you for sharing with the Streamlit community!

Do you have permission to access “best.pt”? Additionally, are you certain that the path provided to “best.pt” is correct?


Hi @isaacnewton35,

Have you since fixed the error? :slight_smile: Wasn’t able to reproduce on my end. I cloned your repo and successfully deployed the app on Streamlit Sharing. This is what I see:

You might run into other errors after you upload an image due to bugs in your code, but they are unrelated to your post. Let us know if you are still stuck on the PermissionError.

Happy Streamlit-ing! :balloon:

:)) I didn’t change anything but now it works

now there is again error

very interesting ı guess

That’s strange :thinking: I’ll defer to someone more knowledgeable to figure out what’s causing this error.

As the file size is only 14.3 MB, I would suggest including it in your Github repo rather than retrieving it over the network from Dropbox – until we find a better solution.

Best, :balloon:

okey, thank you so much for your answer ı will try it like that