Project Eleven - Post-Quantum Cryptography background cover

Project Eleven - Post-Quantum Cryptography

Test classical and quantum cryptographic solutions to factoring problems.

Project Eleven

Hosted by

Project Eleven

Daniel Tolenaar
DanielTolenaar

2

Posted

Submission Issue

Hello, my submissions are failing during the setup phase with a PermissionError from the pytket library. This appears to be an issue with the grading environment's file permissions, as pytket is trying to write to the non-writable /root/.config directory.
This crash happens when the platform's own use_case library is imported, before any of my own code is executed. It seems the Docker container for the grader needs to have a writable home directory or have the XDG_CONFIG_HOME environment variable pointed to a writable location like /tmp.
Here is the full traceback from my latest submission:
Failed to setup the pipeline: Traceback (most recent call last):
File "/usr/lib/python3.11/pathlib.py", line 1117, in mkdir
os.mkdir(self, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/root/.config/pytket'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/.tmp6V2BWc/venv/lib/python3.11/site-packages/use_case/init.py", line 1, in <module>
from .use_case import Input, Output
File "/tmp/.tmp6V2BWc/venv/lib/python3.11/site-packages/use_case/use_case.py", line 4, in <module>
from use_case.quantum import QuantumChallenge
File "/tmp/.tmp6V2BWc/venv/lib/python3.11/site-packages/use_case/quantum.py", line 4, in <module>
from pytket import Circuit
File "/tmp/.tmp6V2BWc/venv/lib/python3.11/site-packages/pytket/init.py", line 36, in <module>
config.write_file(pytket_config_file)
File "/tmp/.tmp6V2BWc/venv/lib/python3.11/site-packages/pytket/config/pytket_config.py", line 69, in write_file
config_file_path.parent.mkdir(parents=True, exist_ok=True)
File "/usr/lib/python3.11/pathlib.py", line 1121, in mkdir
self.parent.mkdir(parents=True, exist_ok=True)
File "/usr/lib/python3.11/pathlib.py", line 1117, in mkdir
os.mkdir(self, mode)
PermissionError: [Errno 13] Permission denied: '/root/.config'

Order by:


Want to join this discussion?

Join our community today and start discussing with our members by participating in exciting events, competitions, and challenges. Sign up now to engage with quantum experts!