Error - "Permission denied" when trying to compile diffvg

#1
by yaelvinker - opened

Hi, I need to compile diffvg (https://github.com/BachiLi/diffvg) for my demo.
The best way would be to work with my docker image :
https://hub.docker.com/repository/docker/yaelvinker/clipasso_docker
However, I see there is not such an option so I have to run the installation commands from "app.py".

These are the commands I need to run:

I tried to run it from "app.py" with os.system, and I get the next error when doing "python setup.py install":

/[Errno 13] Permission denied: '/usr/local/lib/python3.8/site-packages/test-easy-install-264.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was: /usr/local/lib/python3.8/site-packages/

Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

  • Also note that this approach slows things down. If there is an easy way to pull the docker image once, that would be ideal. Otherwise, the users will have to wait for all the installations every time.

I would greatly appreciate your help! Thanks!(:
@akhaliq @osanseviero

Sign up or log in to comment