The application was running perfectly fine before the summer, and runs fine locally. However, now it gets errors when running in the Streamlit Cloud.
In a bit more detail, the application installs python packages using pip and a requirement file.
The package sund
is used for simulating models, and the models must be compiled. When trying to compile the model files, there is a permission error. Below is a short excerpt of the log file.
Any ideas on what could be the issue? Has anything changed that would now give this issues that were not happening before the summer?
2023-09-05 09:19:19.748 Uncaught app exception
Traceback (most recent call last):
File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/sandbox.py", line 156, in save_modules
yield saved
File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/sandbox.py", line 194, in setup_context
with override_temp(temp_dir):
File "/usr/local/lib/python3.9/contextlib.py", line 119, in __enter__
return next(self.gen)
File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/sandbox.py", line 74, in override_temp
os.makedirs(replacement, exist_ok=True)
File "/usr/local/lib/python3.9/os.py", line 225, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/adminuser/venv/lib/python3.9/site-packages/sund/temp'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/adminuser/venv/lib/python3.9/site-packages/sund/tools.py", line 70, in _modelModuleFile
sandbox.run_setup(os.path.join(_sundFolder,'_setupModel_.py'), ['build_ext', '-b', os.path.dirname(_sundFolder), 'clean', cfile])
File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/sandbox.py", line 249, in run_setup
with setup_context(setup_dir):
File "/usr/local/lib/python3.9/contextlib.py", line 119, in __enter__
return next(self.gen)
File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/sandbox.py", line 198, in setup_context
yield
File "/usr/local/lib/python3.9/contextlib.py", line 137, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/sandbox.py", line 169, in save_modules
saved_exc.resume()
File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/sandbox.py", line 143, in resume
raise exc.with_traceback(self._tb)
File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/sandbox.py", line 156, in save_modules
yield saved
File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/sandbox.py", line 194, in setup_context
with override_temp(temp_dir):
File "/usr/local/lib/python3.9/contextlib.py", line 119, in __enter__
return next(self.gen)
File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/sandbox.py", line 74, in override_temp
os.makedirs(replacement, exist_ok=True)
File "/usr/local/lib/python3.9/os.py", line 225, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/adminuser/venv/lib/python3.9/site-packages/sund/temp'