My 11-year-old son is trying to follow Carol Vorderman's "Python Games for Kids" book, but is hitting a fundamental problem installing then using Actors module (p.52-onwards of book), on Windows 10. No instructions are provided for installing or importing this. We installed 'actors' (0.5.1b1) using pip:
pip install actors
The install "works" happily, no error is reported, and a (basic) actors installation appears. (We also tried python -m pip install actors
, with exactly the same result).
However, any attempt to import actors; e.g.,
from actors import Actor
fails with:
ModuleNotFoundError: no module name 'actors.internal'
of line 29 of actors\__init__.py
. Which is fair enough, because it does try to import messages
from actors.internal
, which does not seem to exist.
Things I checked following the import:
- the downloaded .tar.gz file includes a load of subdirectories, including
internal
; but this doesn't make it into the disc. So it looks like pip isn't handling the .tar.gz file correctly? But it seems hard to believe that such a basic failure has gone undetected. - the disc has 116G free, so it's not running outta space.
- I checked other answers (python pip install not working on windows, pip install on a shared directory (windows)), but they do not seem to apply here.