No such directory "~/.cache/cybercampus.cookies"
I installed cybercampus release 0.2 and created a config file. Upon running cybercampus --list-courses
, after the entering the password for my Digicampus-account, i get the following error message:
Traceback (most recent call last): File "/home/e-----/.local/lib/python3.8/site-packages/cybercampus-0.2-py3.8.egg/cybercampus/init.py", line 124, in load_cookies self.session.cookies.load(ignore_discard=True) File "/usr/lib/python3.8/http/cookiejar.py", line 1798, in load with open(filename) as f: FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/cybercampus.cookies'
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/home/e----/.local/lib/python3.8/site-packages/cybercampus-0.2-py3.8.egg/cybercampus/init.py", line 109, in auto_login self.load_cookies() File "/home/e----/.local/lib/python3.8/site-packages/cybercampus-0.2-py3.8.egg/cybercampus/init.py", line 126, in load_cookies raise CookieLoginFailed("Cookie file not found: {e}") from e cybercampus.CookieLoginFailed: Cookie file not found: {e}
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/e----/.local/bin/cybercampus", line 11, in load_entry_point('cybercampus==0.2', 'console_scripts', 'cybercampus')() File "/home/e-----/.local/lib/python3.8/site-packages/cybercampus-0.2-py3.8.egg/cybercampus/scripts/init.py", line 33, in main mod.main() File "/home/e----/.local/lib/python3.8/site-packages/cybercampus-0.2-py3.8.egg/cybercampus/scripts/list_courses.py", line 24, in main dc.auto_login() File "/home/e------/.local/lib/python3.8/site-packages/cybercampus-0.2-py3.8.egg/cybercampus/init.py", line 111, in auto_login self.login() File "/home/e------/.local/lib/python3.8/site-packages/cybercampus-0.2-py3.8.egg/cybercampus/init.py", line 99, in login landing_url = soup.find_all(text=re.compile('weitergeleitet'))[0].parent.a['href'] IndexError: list index out of range