Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ERROR Parser.__init__() got an unexpected keyword argument 'img_with_alt'" - mf2py.Parser no longer supports img_with_alt #6

Open
soypunk opened this issue Oct 3, 2024 · 0 comments

Comments

@soypunk
Copy link

soypunk commented Oct 3, 2024

I installed silorider from github rather than pypy (so I realize I'm playing with fire.) When trying to populate the local database either entries from my site I'm getting this error on the console/terminal. I believe this is related to the mf2py parser and possibly changes they made and a later commit that removed the option completely.

Traceback from verbose mode:

Traceback (most recent call last):
  File "/Users/smedero/.pyenv/versions/3.12.6/bin/silorider", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/smedero/.pyenv/versions/3.12.6/lib/python3.12/site-packages/silorider/main.py", line 236, in main
    res = _unsafe_main()
          ^^^^^^^^^^^^^^
  File "/Users/smedero/.pyenv/versions/3.12.6/lib/python3.12/site-packages/silorider/main.py", line 224, in _unsafe_main
    res = args.func(ctx)
          ^^^^^^^^^^^^^^
  File "/Users/smedero/.pyenv/versions/3.12.6/lib/python3.12/site-packages/silorider/main.py", line 76, in _run
    populate_cache(ctx)
  File "/Users/smedero/.pyenv/versions/3.12.6/lib/python3.12/site-packages/silorider/commands/utils.py", line 47, in populate_cache
    _populate_cache_for_url(name, url, ctx, until_dt=until_dt)
  File "/Users/smedero/.pyenv/versions/3.12.6/lib/python3.12/site-packages/silorider/commands/utils.py", line 53, in _populate_cache_for_url
    feed = parse_url(url, name, ctx.config)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/smedero/.pyenv/versions/3.12.6/lib/python3.12/site-packages/silorider/parse.py", line 25, in parse_url
    mf_obj = parse_mf2(url_or_path, name, config)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/smedero/.pyenv/versions/3.12.6/lib/python3.12/site-packages/silorider/parse.py", line 69, in parse_mf2
    return mf2py.Parser(
           ^^^^^^^^^^^^^
TypeError: Parser.__init__() got an unexpected keyword argument 'img_with_alt'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant