Having to run install-pkg every time
BruceLi2

I took some code that renders images into graphs on desmos. The repl is written in Python, and sometimes when it starts it gives an error install pypotrace, one of the dependencies. The thing is, if I run $install-pkg python3-dev python3-pip build-essential libagg-dev libpotrace-dev pkg-config wheel in the shell, it installs fine. After a while, it would fail to install and I would have to re-run the install-pkg command. Does anyone know how to fix this?

(p.s. it shows internal server error because the app isn't supposed to be accessed directly from a web browser, and it has nothing to do with the problem. The problem prevents the script from starting.)

You are viewing a single comment. View All
Answered by Highwayman [earned 5 cycles]
View Answer
BruceLi2

I added a .replit file that contains
run = "cp -r ~/repl-name/.apt ~ && python3 main.py" and it works! thanks man :)@Highwayman