Comment by ~lettuce on ~lioploum/offpunk
You're right, it's lately quite slow and sometimes times out. Hmm, back to square 1.
Comment by ~lettuce on ~lioploum/offpunk
Oh!
Yes, there is gemipedia: gemini://gemi.dev/cgi-bin/wp.cgi
Ticket created by ~lettuce on ~lioploum/offpunk
ON> wen something ERROR4: <class 'RuntimeError'> : Host not found 'vault.transjovian.org' Traceback (most recent call last): File "/usr/lib/python3.12/cmd.py", line 214, in onecmd func = getattr(self, 'do_' + cmd) ^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'GeminiClient' object has no attribute 'do_wen'. Did you mean: 'do_open'? During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/netcache.py", line 801, in fetch path,newurl=_fetch_gemini(url,**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/netcache.py", line 731, in _fetch_gemini raise RuntimeError(meta) RuntimeError: Host not found 'vault.transjovian.org' vault.transjovian.org (1 links) (last accessed on Fri Dec 22 17:32:25 2023) 2023-12-22 17:32:25.044773 ERROR while caching gemini://vault.transjovian.org:1965/search/en/something ***** <class 'RuntimeError'> = Host not found 'vault.transjovian.org' ***** If you believe this error was temporary, type reload. The ressource will be tentatively fetched during next sync.
Comment by ~lettuce on ~lioploum/offpunk
Thank you, this solves it!
On 10/5/23 12:19, ~lioploum wrote:
On 23/10/05 04:04, ~lettuce wrote:
I see! When it fails, offpunk will no longer launch for me. Here's the output of apt-cache policy python3-bs4
python3-bs4: ?? Installed: 4.10.0-2 ?? Candidate: 4.10.0-2 ?? Version table: ??*** 4.10.0-2 500 I mistakenly assumed that the error was implemented in BS 4.9.1. It seems that it was in 4.11, introducing this crash for BS 4.10.
It should be fixed now and, in case it fails, should not crash offpunk anymore. Could you please test latest trunk and confirm that this bug can be closed?
Thank you, this solves it!
On 10/5/23 12:19, ~lioploum wrote:
On 23/10/05 04:04, ~lettuce wrote:
I see! When it fails, offpunk will no longer launch for me. Here's the output of apt-cache policy python3-bs4
python3-bs4: ?? Installed: 4.10.0-2 ?? Candidate: 4.10.0-2 ?? Version table: ??*** 4.10.0-2 500 I mistakenly assumed that the error was implemented in BS 4.9.1. It seems that it was in 4.11, introducing this crash for BS 4.10.
It should be fixed now and, in case it fails, should not crash offpunk anymore. Could you please test latest trunk and confirm that this bug can be closed?
On 23/10/05 04:04, ~lettuce wrote:
I see! When it fails, offpunk will no longer launch for me. Here's the output of apt-cache policy python3-bs4
python3-bs4: ?? Installed: 4.10.0-2 ?? Candidate: 4.10.0-2 ?? Version table: ??*** 4.10.0-2 500
I mistakenly assumed that the error was implemented in BS 4.9.1. It seems that it was in 4.11, introducing this crash for BS 4.10.
It should be fixed now and, in case it fails, should not crash offpunk anymore. Could you please test latest trunk and confirm that this bug can be closed?
Comment by ~lettuce on ~lioploum/offpunk
I see! When it fails, offpunk will no longer launch for me. Here's the output of apt-cache policy python3-bs4
python3-bs4: Installed: 4.10.0-2 Candidate: 4.10.0-2 Version table: *** 4.10.0-2 500 500 http://mirrors.digitalocean.com/ubuntu jammy/main amd64 Packages 100 /var/lib/dpkg/status
On 10/4/23 03:24, ~lioploum wrote:
apt-cache policy python3-bs4
On 23/10/04 04:13, ~lettuce wrote:
I git pulled and now can't run offpunk again. I am running Ubuntu 22.04 on a shared tilde (i don't have sudo privileges). not sure if this is related but i was happy with offpunk as it was before separating into different files, maybe i should just revert back.
Traceback (most recent call last): File "/home/lettuce/code/offpunk/offpunk.py", line 24, in <module> import netcache File "/home/lettuce/code/offpunk/netcache.py", line 16, in <module> import ansicat File "/home/lettuce/code/offpunk/ansicat.py", line 39, in <module> from bs4 import XMLParsedAsHTMLWarning ImportError: cannot import name 'XMLParsedAsHTMLWarning' from 'bs4' (/usr/lib/python3/dist-packages/bs4/__init__.py)
Hello,
This is not related to the refactoring but because of a change in python3-bs4. Some warnings are emited starting v.4.9.1 and I try to silent them.
Could you check which version of BS4 you are using with :
apt-cache policy python3-bs4
Anyway, I may put the warning import behind a try/except so it fails silently.
-- View on the web: https://todo.sr.ht/~lioploum/offpunk/24
-- Ploum - Lionel Dricot Blog: https://www.ploum.net Livres: https://ploum.net/livres.html
Ticket created by ~lettuce on ~lioploum/offpunk
I git pulled and now can't run offpunk again. I am running Ubuntu 22.04 on a shared tilde (i don't have sudo privileges). not sure if this is related but i was happy with offpunk as it was before separating into different files, maybe i should just revert back.
Traceback (most recent call last): File "/home/lettuce/code/offpunk/offpunk.py", line 24, in <module> import netcache File "/home/lettuce/code/offpunk/netcache.py", line 16, in <module> import ansicat File "/home/lettuce/code/offpunk/ansicat.py", line 39, in <module> from bs4 import XMLParsedAsHTMLWarning ImportError: cannot import name 'XMLParsedAsHTMLWarning' from 'bs4' (/usr/lib/python3/dist-packages/bs4/__init__.py)
On 23/09/06 03:43, ~lettuce wrote:
Thanks for looking into this. Unfortunately, i think it's the same error?
Traceback (most recent call last): File "/home/chip/software/offpunk/netcache.py", line 27, in <module> from cryptography import x509 ImportError: cannot import name 'x509' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "offpunk.py", line 24, in <module> import netcache File "/home/chip/software/offpunk/netcache.py", line 31, in <module> except(ModuleNotFoundError,ImportError): NameError: name 'ModuleNotFoundError' is not defined
Mmm, I think that ModuleNotFoundError was introduced with python 3.6. Which python version are you using?