niklas2902 / py4godot

Python scripting for Godot. This GDExtension plugin allows you to use Python like GDScript, accessing the Godot engine's features and benefiting from Python's vast ecosystem.
MIT License
65 stars 7 forks source link

Manual install - generate.py cannot find extension_api.json #85

Open JakeTurnick opened 6 days ago

JakeTurnick commented 6 days ago
Executing generate_classes.py...
Error executing generate_classes.py: Traceback (most recent call last):
  File "E:\Projects\Virtual-Stream-Studio\addons\py4godot-master\generation_files\generate_classes.py", line 1857, in <module>
    with open('py4godot/gdextension-api/extension_api.json', 'r', encoding="utf-8") as myfile:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'py4godot/gdextension-api/extension_api.json'

Checking folder confirms the gdextension-api folder is empty

niklas2902 commented 6 days ago

Hey, that's unfortunate to hear. Did

$ git submodule init
$ git submodule update

run correctly? This should be creating the gdextension-api folder with the extension-api.json

JakeTurnick commented 6 days ago

I did run the following git commands, they appeared to do nothing in terminal. The gdextension-api folder was created but no .json file is located within

niklas2902 commented 6 days ago

I'm sorry. I don't know how this could happen. You could work around this by just downloading the files from here: gdextension and copying them into your gdextension-api folder. That's the only thing, these commands do. I hope, this helps