Error running actor FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.
I'm trying to run my actor & it's giving this log:
13 Replies
Someone will reply to you shortly. In the meantime, this might help:
-# This post was marked as solved by 🟢mido🟢. View answer.
frozen-sapphireOP•3mo ago
I built this actor & could run it earlier successfully, but I got this after the last build.
Here's my Dockerfile:
I tried changing this line in dockefile as apify AI suggested:
with:
But same error. I don't understand where the real error originates & how to resolve it?
@🟢mido🟢 just advanced to level 1! Thanks for your contributions! 🎉
optimistic-gold•3mo ago
i met same issue
@axly just advanced to level 2! Thanks for your contributions! 🎉
optimistic-gold•3mo ago
@🟢mido🟢
add this line in your Dockfile , after pip install command
optimistic-gold•3mo ago
frozen-sapphireOP•3mo ago
@axly Hi
Please where've you put download_browserforge_files.py ? I added it to my src/ but can't find it when building:
I'm running the file after copying all files & directories so it should work:
optimistic-gold•3mo ago
Just copy it to src folder in your project
frozen-sapphireOP•3mo ago
I swear it's there 😦
anyway thank you for help I'll check it out later

frozen-sapphireOP•2mo ago
Good news: there was a typo extra 's' in this command, filename is download_browserforge_file
Bad news: still getting the same permission error after building & running:
if anyone with same issue please help
optimistic-gold•2mo ago
you should switch to root when run the python code. and switch back to normal user at end of the dockfile
frozen-sapphireOP•2mo ago
Thank you so much finally it worked!
for any one facing same issue I just had to copy files again after running
download_browserforge_file.py
like that in Dockerfile: