You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to use pygbag to run this pygame: https://github.com/portal-cornell/robotouille/tree/main. However, I cannot get past a black screen. I have imported all dependencies necessary and believe I have main.py set up correctly:
# /// script
# dependencies = [
# "numpy",
# "matplotlib",
# "pandas",
# "scipy",
# "pillow",
# "cycler",
# "kiwisolver",
# "dateutil",
# "six",
# "gym",
# ]
# ///
from robotouille import simulator
import argparse
import asyncio
async def main():
while True:
parser = argparse.ArgumentParser()
parser.add_argument("--environment_name", help="The name of the environment to create.", default="original")
parser.add_argument("--seed", help="The seed to use for the environment.", default=None)
parser.add_argument("--noisy_randomization", action="store_true", help="Whether to use 'noisy randomization' for procedural generation")
args = parser.parse_args()
simulator(args.environment_name, args.seed, args.noisy_randomization)
await asyncio.sleep(0)
asyncio.run(main())
When running in debug mode, I see two main errors:
No module named ‘gym’: I have installed ‘gym’ in my environment and have also added it to the dependencies list. I’ve also tried running pygbag with the -git flag as suggested for non-standard dependencies, but I still can’t resolve the issue
Additionally, I am also seeing a lot of preload errors such as “support/EMSCRIPTEN.c: preload [/data/data/org.python/assets/site-packages/pygame/threads/init.py] ERROR”
Any help debugging these errors would be much appreciated.
The text was updated successfully, but these errors were encountered:
Hi, I am trying to use pygbag to run this pygame: https://github.com/portal-cornell/robotouille/tree/main. However, I cannot get past a black screen. I have imported all dependencies necessary and believe I have main.py set up correctly:
When running in debug mode, I see two main errors:
pygbag
with the-git
flag as suggested for non-standard dependencies, but I still can’t resolve the issueAny help debugging these errors would be much appreciated.
The text was updated successfully, but these errors were encountered: