I am facing the same issue in deploying can someone help me out?
Typo:
assets/imgs/ArmyLogo.png
Because it is definitely a typo in ArmyCMS.py
Please go to the deployed website and visit all the webpages some are working and others are not where is the typo exactly I checked everything
can you please help me out repo is public as well
plss let me know
I made some changes int the env.yml file and it started working only the records page is not working can you help me?
Can you share the full error message that you see on that page (should be in the terminal on the right side of the page)? We can only view the truncated version of the error message
FileNotFoundError: [Errno 2] No such file or directory: ‘assets/imgs/Armylogo.png’
2023-08-11 14:01:03.994 label
got an empty value. This is discouraged for accessibility reasons and may be disallowed in the future by raising an exception. Please provide a non-empty label and hide it with label_visibility if needed.
2023-08-11 14:01:06.974 label
got an empty value. This is discouraged for accessibility reasons and may be disallowed in the future by raising an exception. Please provide a non-empty label and hide it with label_visibility if needed.
2023-08-11 14:01:13.080 Uncaught app exception
Traceback (most recent call last):
File “/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py”, line 552, in _run_script
exec(code, module.dict)
File “/mount/src/armycms/pages/Records.py”, line 26, in
add_logo(logo_url = ‘assets/imgs/Armylogo.png’)
File “/mount/src/armycms/Add_logo.py”, line 21, in add_logo
logo = f"url(data:image/png;base64,{base64.b64encode(Path(logo_url).read_bytes()).decode()})"
File “/usr/local/lib/python3.9/pathlib.py”, line 1259, in read_bytes
with self.open(mode=‘rb’) as f:
File “/usr/local/lib/python3.9/pathlib.py”, line 1252, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File “/usr/local/lib/python3.9/pathlib.py”, line 1120, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: ‘assets/imgs/Armylogo.png’
2023-08-11 14:15:07.504 Uncaught app exception
Traceback (most recent call last):
File “/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py”, line 552, in _run_script
exec(code, module.dict)
File “/mount/src/armycms/pages/Records.py”, line 26, in
add_logo(logo_url = ‘assets/imgs/Armylogo.png’)
File “/mount/src/armycms/Add_logo.py”, line 21, in add_logo
logo = f"url(data:image/png;base64,{base64.b64encode(Path(logo_url).read_bytes()).decode()})"
File “/usr/local/lib/python3.9/pathlib.py”, line 1259, in read_bytes
with self.open(mode=‘rb’) as f:
File “/usr/local/lib/python3.9/pathlib.py”, line 1252, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File “/usr/local/lib/python3.9/pathlib.py”, line 1120, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: ‘assets/imgs/Armylogo.png’
This looks like the same error message as before – in line 26 of Records.py
, you’re referencing “Armylogo.png”, but the file is actually named “ArmyLogo.png”
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.