Итак, я пытаюсь сгенерировать классы models.py с помощью django. Я пытаюсь сделать это с помощью gends_run_gen_django.py. Я наблюдал за этим на этом вопросе: Создание кода Python Class и SQLAlchemy из XSD для хранения XML на Postgres
Я пытаюсь выполнить эту команду.
gends_run_gen_django.py -f -p C:\Users\test\AppData\Local\Programs\Python\Python38-32\Scripts\generateDS.py C:\Users\test\Documents\Files\XMLSchemaPersonAdress.xsd
Но яполучаю эту ошибку:
Traceback (most recent call last):
File "C:\Users\test\AppData\Local\Programs\Python\Python38-32\Scripts\gends_run_gen_django.py",
line 201, in <module>
main()
File "C:\Users\test\AppData\Local\Programs\Python\Python38-32\Scripts\gends_run_gen_django.py", line 195, in main
generate(options, schema_name)
File "C:\Users\test\AppData\Local\Programs\Python\Python38-32\Scripts\gends_run_gen_django.py", line 91, in generate
if not run_cmd(options, args):
File "C:\Users\test\AppData\Local\Programs\Python\Python38-32\Scripts\gends_run_gen_django.py", line 118, in run_cmd
process = Popen(args, stderr=PIPE, stdout=PIPE)
File "c:\users\test\appdata\local\programs\python\python38-32\lib\subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "c:\users\test\appdata\local\programs\python\python38-32\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
OSError: [WinError 193] %1 is not a valid Win32 application
Что мне нужно сделать?