pyved-engine icon indicating copy to clipboard operation
pyved-engine copied to clipboard

requests error

Open wkta opened this issue 4 years ago • 3 comments

when katasdk is used "on thonny" it seems to raise an error related to the requests package

requests-err

wkta avatar Oct 05 '21 08:10 wkta

Thonny is an Python (Python 3.7 in this case) integrated development environment (IDE). See: https://thonny.org/ The error when exporting to webtest occurs after installing katasdk in Thonny plug-ins.

To make it work again, you have to reinstall katasdk with pip install katasdk --force-reinstall

Kyuchumimo avatar Oct 05 '21 18:10 Kyuchumimo

error reproduction: https://user-images.githubusercontent.com/74131798/136081208-8d7f2878-612f-42c7-9711-0fe15d24308e.mp4

Kyuchumimo avatar Oct 05 '21 18:10 Kyuchumimo

Thank you very much for pointing out the bug and letting me know about users who like to use the Thonny IDE.

I 'll analyze this again (after the very long wait) as a new version of the game engine will be released soon. Right now:

  • I am testing the tool along with Thonny 4.1.4.
  • installing the package (new name: pyved_engine) works fine
  • you can also initialize a new game by using the pyv-cli init myBundle command, after clicking Tools -> Open system shell in the IDE
  • if one opens launch_game.py and Execute that launcher script, everything works as intended, the game runs properly

But a new variant of the problem apeears when trying to share the web version of your game… (Example below) image

We will fix that bug very soon.

wkta avatar Mar 20 '24 23:03 wkta

Works fine in version 24.9a1 ! 👍

When installing pyved-engine (the old katasdk library is superseded by the standalone engine)

To test all features within Thonny:

  • first install the modern package using Tools>Manage packages
  • use Tools > Open System shell
  • use the pyv-cli tool as explained in tutorials

Within Thonny you can open the launch_game.py file and other files in cartridge/*.py and run the main file (launch_game.py) if you wish to analyze the code by yourself

wkta avatar Oct 09 '24 15:10 wkta