Hi, I am trying to run the PyTorch example. However, I seem to be running into an issue with the template manifest file. Providing more details below:
Error:
root@xyz:~/examples/pytorch# make
gramine-manifest \
-Dlog_level=error \
-Darch_libdir=/lib/x86_64-linux-gnu \
-Dentrypoint=/usr/bin/python3.8 \
pytorch.manifest.template > pytorch.manifest
Traceback (most recent call last):
File "/usr/local/bin/gramine-manifest", line 33, in <module>
main() # pylint: disable=no-value-for-parameter
File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/bin/gramine-manifest", line 29, in main
manifest = Manifest.from_template(template, define)
File "/usr/local/lib/python3.8/dist-packages/graminelibos/manifest.py", line 142, in from_template
return cls(_env.from_string(template).render(**(variables or {})))
File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 25, in <module>
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'get_sys_path'
make: *** [Makefile:20: pytorch.manifest] Error 1
Environment
I am running all the code in a Docker container. I built the Docker container by using code from the Intel Confidential Computing Zoo dockerfile, using part of their dockerfile that builds Gramine from source on top of a base Ubuntu image, and then installing PyTorch using the README in examples/pytorch. The docker file is copy-paste below:
Hi, I am trying to run the PyTorch example. However, I seem to be running into an issue with the template manifest file. Providing more details below:
Error:
Environment I am running all the code in a Docker container. I built the Docker container by using code from the Intel Confidential Computing Zoo dockerfile, using part of their dockerfile that builds Gramine from source on top of a base Ubuntu image, and then installing PyTorch using the README in examples/pytorch. The docker file is copy-paste below:
I'm not sure how to fix this issue, when I run the standard
python3 pytorchexample.py
command it works fine. But runningmake
does not work.