Games icon indicating copy to clipboard operation
Games copied to clipboard

导包的相对路径一直报错,怎么解决呢

Open itkuanggong opened this issue 3 years ago • 2 comments

Traceback (most recent call last): File "D:/PythonWorkspace/games/Games/cpgames/core/games/bunnybadger/bunnybadger.py", line 16, in from ...utils import QuitGame ValueError: attempted relative import beyond top-level package

itkuanggong avatar Oct 11 '22 10:10 itkuanggong

尝试切到cpgames目录再运行,或者直接安装cpgames之后运行,使用文档: https://cpgames.readthedocs.io/en/latest/

CharlesPikachu avatar Oct 11 '22 10:10 CharlesPikachu

一直是导包的相对路径一直报错,按照解决方式,并没有解决问题

jinweideqqq avatar May 28 '23 14:05 jinweideqqq