No module named statistics
built-in library can’t be imported
3.1 (3133)

Can you post the code that triggers the error?

ModuleNotFoundError: No module named ‘statistics’

This is the error message. What python code/script is triggering this?

Because I can import statistics without problems. Secondary question: which Python are you using in Glyphs > Preferences > Addons?

I use 3.8.2 (Glyphs)

any code that is run from macro panel

Like print() will trigger the error message?

Try uninstalling and reinstalling all modules in Plugin Manager. Then restart the app.

sorry, any code that import statistics

Cannot reproduce. If you’d be willing to paste sample code that does that, perhaps that could give us a clue.

I mean it’s just any code that imports this library, nothing special about it

It works for me. Cannot reproduce. Did you try uninstalling and reinstalling the Python module?