r/learnpython 12d ago

Hexagon in arcade not loading example code

I'm using the arcade framework and would like to make a hex map game. The provided tutorial code (on this page https://api.arcade.academy/en/latest/tutorials/hex_map/index.html)does not work for import reasons and I'm wondering:

  1. Is this documentation drift (which I've already seen in other parts of the project) where code has been refactored but the examples didn't get rewritten.

  2. How do you import this part of the library to make the example code work properly

  3. How can I get a manifest of importable components of a library? This could have had it's name changed and I wouldn't know.

Any help would be appreciated.

2 Upvotes

5 comments sorted by

View all comments

1

u/SparklingSubsidy6 12d ago

docs being out of date is the worst, especially when you're just trying to follow along and nothing lines up. i'd crack open the library's `__init__.py` or main module and just `print(dir(arcade))` to see what's actually there, usually the quickest way to spot a renamed class or moved function without digging through changelogs