pygame-web / pygbag

python and pygame wasm for everyone ( packager + test server + simulator )
https://github.com/pygame-web
MIT License
295 stars 34 forks source link

Chess won't launch #136

Closed 3004006050 closed 7 months ago

3004006050 commented 8 months ago

Trying to launch a chess application, and the imports aren't being packaged. I packaged it with ume_block 0, and stockfish, tkinter, and other imports weren't recognized. from math import trunc from queue import Empty from tkinter import W from typing import Counter, Self from xml.sax.handler import feature_namespace_prefixes from chessassets.readconfig import read_config import pygame import os import sys import copy import time from stockfish import Stockfish import asyncio image black screen im having: image

pmp-p commented 8 months ago

hi, tkinter despite its popularity and its authors is not an integral part of python. It is a set of bindings around a GUI library toolkit implemented only for some operating systems and called Tcl/Tk .

Sadly it was not implemented yet for emscripten ( the OS pygbag currently uses ).

it is a porting matter, so your best chance is to open an issue for that in https://github.com/pygame-web/pkg-porting-wasm/issues

i did not check for stockfish but it could be the same problem

3004006050 commented 7 months ago

Alright, will do.