reset password
Author Message
rabbott
Posts: 1649
Posted 22:28 Jan 28, 2020 |

The example at the end of the pairs.py file has been clarified and extended a bit. See if you can understand what's going on.

LHS
Posts: 26
Posted 20:54 Jan 30, 2020 |

Is the pairs.py a python file I can run independently?  I am mostly getting this error when I try running it on the command prompt on windows.

C:\...\PyLogo-master\core>py pairs.py
Traceback (most recent call last):
  File "pairs.py", line 10, in <module>
    import core.gui as gui
ModuleNotFoundError: No module named 'core'

 

I understand it is having issues with finding the module, just not sure if this is typical or not when trying to run the python file directly.

rabbott
Posts: 1649
Posted 21:29 Jan 30, 2020 |

Here's a stripped-down version that has no import problems. It should run stand-alone.

An alternative solution is to download the entire PyLogo repo. Then the files it wants to import are available. 

This is not a problem related to running a file directly.

Last edited by rabbott at 09:59 Jan 31, 2020.