I am seeing the following error on when trying to visit most gemini
sites with offpunk 2.4:
For example if I try to visit the Antenna capsule I get the following
error:
----
antenna (1 links) (last accessed on Wed Nov 27 17:53:02 2024)
2024-11-01 21:29:35.434293
ERROR while caching gemini://warmedal.se/~antenna/
*****
<class 'AttributeError'> = module 'datetime' has no attribute 'UTC'
*****
If you believe this error was temporary, type reload.
The ressource will be tentatively fetched during next sync.
----
I am getting this on my laptop with almost every site that I try to
visit. I suspect that it might have something
to do with my attempt to install one or more of the python dependancies
in ubuntu 22.04 - On my pinephone, it works fine. Unfortunately, I do
not have a lot of experience with Python and am not sure how to best
begin troubleshooting.
I would really appreciate some assistance with how to begin
troubleshooting this issue.
Thank you,
Nristen
After finding another reference to the same error on GitHub for another
project, it was mentioned that this was added to a more recent version
of Python. I am currently using Python 3.10.12. I will look into
possibly upgrading Python just for offpunk.
Le 24 nov 28 12:17, nristen a écrit :
>I am seeing the following error on when trying to visit most gemini>sites with offpunk 2.4:>>For example if I try to visit the Antenna capsule I get the following>error:>>>---->antenna (1 links) (last accessed on Wed Nov 27 17:53:02 2024)>2024-11-01 21:29:35.434293>ERROR while caching gemini://warmedal.se/~antenna/>>*****>><class 'AttributeError'> = module 'datetime' has no attribute 'UTC'>*****>>If you believe this error was temporary, type reload.>The ressource will be tentatively fetched during next sync.>---->>I am getting this on my laptop with almost every site that I try to>visit. I suspect that it might have something>to do with my attempt to install one or more of the python dependancies>in ubuntu 22.04 - On my pinephone, it works fine. Unfortunately, I do>not have a lot of experience with Python and am not sure how to best>begin troubleshooting.>
As you find out, this is because your Python version is too old.
But this particular function is only used once (in netcache.py, line
471) and we should be able to make it work with older python.
I’ve tried to make a change in HEAD. Could you please test the lateste
git version and see if it works for you ?