r/learnpython • u/Screaming_Candle • 3d 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:
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.
How do you import this part of the library to make the example code work properly
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
2
u/carcigenicate Carcigenicate 3d ago edited 3d ago
I don't know why the tutorial is mentioning that module without explaining anything. The
hexagonmodule was introduced in version4.0.0.dev4:But the latest release build is 3.3.3, so that's what you get if you run
pip install arcade. To download pre-release versions, you need:But, this is deliberately marked as a pre-release build, so it may have new bugs, so use at your own risk.