MirceaDumitrescu / Text-Adventure-Game

A group project
2 stars 2 forks source link

Circular import error #14

Closed ronanhansel closed 3 years ago

ronanhansel commented 3 years ago
Traceback (most recent call last):
  File "d:\Development\Github-Clones\textadventure\main.py", line 1, in <module>
    from screens.welcome import welcome
  File "d:\Development\Github-Clones\textadventure\screens\welcome.py", line 3, in <module>
    from character import myPlayer
  File "d:\Development\Github-Clones\textadventure\character.py", line 5, in <module>
    import map as m  File "d:\Development\Github-Clones\textadventure\map.py", line 1, in <module>    from character import myPlayer, get_inventory, set_inventory, get_job
ImportError: cannot import name 'myPlayer' from partially initialized module 'character' (most likely due to a circular import) (d:\Development\Github-Clones\textadventure\character.py)
MirceaDumitrescu commented 3 years ago

Fixed