miskibin / py-draughts

A checkers library with modern web GUI, Supprots multiple variants of game.
https://michalskibinski109.github.io/py-draughts/
GNU General Public License v3.0
8 stars 2 forks source link

ModuleNotFoundError: No module named 'draughts.boards' #9

Closed sugizo closed 1 year ago

sugizo commented 1 year ago

environment google colab

step pip install py-draughts

when execute from draughts.server import Server or from draughts.engine import AlphaBetaEngine

have the same result

ModuleNotFoundError                       Traceback (most recent call last)
[<ipython-input-5-86b1b05d8c33>](https://localhost:8080/#) in <cell line: 1>()
----> 1 from draughts.server import Server

[/usr/local/lib/python3.10/dist-packages/draughts/__init__.py](https://localhost:8080/#) in <module>
     26 
     27 # create board type
---> 28 from draughts.boards.base import BaseBoard
     29 from draughts.boards.standard import Board as StandardBoard
     30 from draughts.boards.american import Board as AmericanBoard

ModuleNotFoundError: No module named 'draughts.boards'

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.

best regards

miskibin commented 1 year ago

Hello I believe problem is solved now . Thanks for submitting issue