-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android build error with module chess - Module not found #27
Comments
This is a known issue but unfortunately I don't have an Android device to debug this on and have only been using the renpy mobile emulator. I will circle back to this one if I can get my hands on an Android device. |
Briefly tested on a friend's phone. You will be able to import chess if you move the |
@Scintsz If you need a quick hacky way of making this work, try putting everything from |
@RuolinZheng08, sorry for the delay, thank you for your time, with your orientation, I removed any trace of the "00-chess-engine" folder, and adjusted the variables to the new location in /game, now the game open on the Android, but still there is a problem with Stockfish, the log is below. The file "stockfish-10-armv7" is in the equivelent folder on Linux, but perheaps I missed some step? [code] While running game code: -- Full Traceback ------------------------------------------------------------ Full traceback: [/code] |
When trying to build an Android version, there is a library error related to the chess module inside "00-chess-engine/python-packages/chess/". The build finishes and installs on Android but fails upon running with the following message:
"""
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/00-chess-engine/chess_displayable.rpy", line 213, in
ModuleNotFoundError: No module named 'chess'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "00-chess-engine/chess_displayable.rpyc", line 201, in script
File "renpy/ast.py", line 827, in execute
File "renpy/python.py", line 1178, in py_exec_bytecode
File "game/00-chess-engine/chess_displayable.rpy", line 213, in
ModuleNotFoundError: No module named 'chess'
"""
For some reason, the folder is read correctly. I already tried inserting "import chess" in the build.py and android.py, but it seems that this is not enough.
The mobile emulation on renpy launcher works fine.
The text was updated successfully, but these errors were encountered: