Closed dimakuv closed 1 year ago
pytorch/pytorch.manifest.template
line 45 at r1 (raw file):
"file:/usr/{{ arch_libdir }}/", "file:{{ python.stdlib }}/", "file:{{ python.distlib }}/",
A query here, Can we also remove python.distlib and replace it with python.get_sys_path(entrypoint) % becauase some distros does not have distlib
pytorch/pytorch.manifest.template
line 25 at r2 (raw file):
{ path = "{{ path }}", uri = "file:{{ path }}" }, {% endfor %} { path = "{{ pillow_path }}", uri = "file:{{ pillow_path }}" },
pillow_path and torchvision_path will be present as python.get_sys_path. These are duplicate entries
@anjalirai-intel Ping. Could you verify?
Sure
Sure
Verified on Ubuntu 22.04, it passed
OLD TEXT: PyTorch README describes local (non-root) installation. However, the manifest template worked only with system-wide (root) installation. This was because Gramine couldn't find wheretorchvision
was installed.This PR has several fixes:
loader.insecure__use_host_env
,loader.pal_internal_mem_size
,python.get_sys_path()
to list Python system paths,torchvision
local path: this fixes non-root installation.Local installation on my random Ubuntu 22.04 machine is like this:
The system-wide installation on the same machine is like this:
For context, see also:
This change is![Reviewable](https://reviewable.io/review_button.svg)