Does anyone know the reason why
do u know flask?
No sorry
Does the file still exist?
have you run my code
Why would I do that?
no, that was not mean, i just wanan say how to rectify
I don't think I can help you without enough context. I needed to know what else the output said besides the error you quoted.
i have made the project, who take the news_link and scape it . and display important info
The logfile already exists and according to my previous shots, os.unlink cannot remove the file
Can you do it through a command shell instead of Python? I'm curious.
Deleting it using os.system() ok ..
What platform are you on?
It's linux. And it's the Sololearn python editor not my system
So it's some type of sandbox?
What's that , am not much familiar with unix, linux etc
It's sounds like you're running this on a learning platform, which has given you a sandbox container just to try out stuff. That would mean it's probably just emulating the system calls.
But strangely i can do os.unlink() on ther files. For example there is a runner.sh file too, but i can remove it
Обсуждают сегодня