hodgesmr / mastodon_digest

A Python script that aggregates recent popular posts from your Mastodon timeline
BSD 3-Clause "New" or "Revised" License
439 stars 58 forks source link

Version check failed (Need version 2.4.3) #14

Closed dcowan-london closed 1 year ago

dcowan-london commented 1 year ago

Running python3 run.py I get the following output:

Building digest from the past 12 hours...
Traceback (most recent call last):
  File "/home/[...]/mastodon_digest/run.py", line 159, in <module>
    run(
  File "/home/[...]/mastodon_digest/run.py", line 53, in run
    posts, boosts = fetch_posts_and_boosts(hours, mst, mastodon_username, timeline)
  File "/home/[...]/mastodon_digest/api.py", line 20, in fetch_posts_and_boosts
    filters = mastodon_client.filters()
  File "/home/linuxbrew/.linuxbrew/Cellar/python@3.10/3.10.8/lib/python3.10/site-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
  File "/home/linuxbrew/.linuxbrew/Cellar/python@3.10/3.10.8/lib/python3.10/site-packages/mastodon/utility.py", line 42, in wrapper
    raise MastodonVersionError("Version check failed (Need version " + version + ")")
mastodon.errors.MastodonVersionError: Version check failed (Need version 2.4.3)

My instance is running v4.0.2.

Note: [...] is modified by me

hodgesmr commented 1 year ago

See #2 - make sure you have your MASTODON_BASE_URL environment variable set properly.

dcowan-london commented 1 year ago

MASTODON_BASE_URL is set correctly.

I've also tried both with and without a trailing /.

hodgesmr commented 1 year ago

Would you be able to provide the values you're using for MASTODON_BASE_URL and MASTODON_USERNAME? Any other information you can provide would increase the likelihood that I can help.

hodgesmr commented 1 year ago

Closing for now. Please see updated instructions in README for setting environment variables. If you're still having issues with the lasted release, feel free to open a new issue.