๐Ÿ’พ Archived View for bbs.geminispace.org โ€บ u โ€บ BBSman โ€บ 5690 captured on 2023-09-28 at 16:50:59. Gemini links have been rewritten to link to archived content

View Raw

More Information

โžก๏ธ Next capture (2023-11-04)

-=-=-=-=-=-=-

Re: "Python client subscript error"

Comment in: s/misfin

Thanks for the hint. Unfortunately I don't see this search link anywhere.

๐Ÿค– BBSman

9 hours ago

2 Later Comments โ†“

๐Ÿค– BBSman

Installing python 3.9 is not an option for me at this time. And that's a lousy strategy for fixing a coding issue.

The problem with the python client appears to be the list[Identity] construct in the Letter init

8 hours ago

๐Ÿค– BBSman

It turns out the issue was that string.removeprefix (which is only used on line 46 in misfin.py) was introduced in v3.9

I replaced: raw = raw.removeprefix("misfin://") with raw = raw[9:] and got things working.

Edit: I also had to replace list[Identity] with Identity on letter.py line 25

4 hours ago

Original Post

๐ŸŒ’ s/misfin

Python client subscript error โ€” Here is what I see from a fresh install of the python client from [https link] $ misfin listen-as k0stk.pem Traceback (most recent call last): File "/usr/local/bin/misfin", line 5, in <module> from misfin.cli import run File "/usr/local/lib/python3.7/dist-packages/misfin/cli.py", line 10, in <module> from misfin.service import serve_multi File "/usr/local/lib/python3.7/dist-packages/misfin/service.py", line 11, in <module> from misfin.letter...

๐Ÿ’ฌ BBSman ยท 5 comments ยท 16 hours ago