Search code examples
pythonmodulemodulenotfounderrorlivewires

Module error for 'beginners' in livewires MacOS - beginner


I am a beginner at python and is following a book named 'Python programmming for the absolute beginner' and has issues on importing livewires.

When I write from livewires import games it pops up with the error:

line 1, in <module>
from livewires import games
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/livewires/__init__.py", line 32, in <module>
from beginners import *
ModuleNotFoundError: No module named 'beginners'

I am not sure how to deal with this as i've researched this and I've not cam back with a solution.

The way I installed livewires (I have already installed pygame)

pip install livewires

and

pip install superwires

Solution

  • It seems that LiveWires only supports Python 2. You may use SuperWires instead of LiveWires:

    pip3 install superwires
    
    from superwires import games  # Just replace `livewires` with `superwires`
    
    References