@maximsemin23

Почему ошибка (проблема не в коде)?

[Prime_Numbers] Installing dependencies...
Requirement already up-to-date: toga-winforms>=0.3.0.dev20 in c:\users\maxim\beeware\beeware-venv\lib\site-packages (0.3.0.dev23)
Requirement already satisfied, skipping upgrade: toga-core==0.3.0.dev23 in c:\users\maxim\beeware\beeware-venv\lib\site-packages (from toga-winforms>=0.3.0.dev20) (0.3.0.dev23)
Requirement already satisfied, skipping upgrade: pythonnet in c:\users\maxim\beeware\beeware-venv\lib\site-packages (from toga-winforms>=0.3.0.dev20) (2.5.1)
Requirement already satisfied, skipping upgrade: travertino>=0.1.3 in c:\users\maxim\beeware\beeware-venv\lib\site-packages (from toga-core==0.3.0.dev23->toga-winforms>=0.3.0.dev20) (0.1.3)
Requirement already satisfied, skipping upgrade: importlib-metadata; python_version < "3.8" in c:\users\maxim\beeware\beeware-venv\lib\site-packages (from toga-core==0.3.0.dev23->toga-winforms>=0.3.0.dev20) (1.7.0)
Requirement already satisfied, skipping upgrade: pycparser in c:\users\maxim\beeware\beeware-venv\lib\site-packages (from pythonnet->toga-winforms>=0.3.0.dev20) (2.20)
Requirement already satisfied, skipping upgrade: zipp>=0.5 in c:\users\maxim\beeware\beeware-venv\lib\site-packages (from importlib-metadata; python_version < "3.8"->toga-core==0.3.0.dev23->toga-winforms>=0.3.0.dev20) (3.1.0)
WARNING: You are using pip version 20.1.1; however, version 20.2.3 is available.
You should consider upgrading via the 'c:\users\maxim\beeware\beeware-venv\scripts\python.exe -m pip install --upgrade pip' command.

[Prime_Numbers] Starting in dev mode...
Traceback (most recent call last):
  File "C:\Users\Maxim\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\Maxim\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "c:\Users\Maxim\beeware\Prime_Numbers\src\Prime_Numbers\__main__.py", line 4, in <module>
    main().main_loop()
  File "c:\Users\Maxim\beeware\Prime_Numbers\src\Prime_Numbers\app.py", line 27, in main
    return PrimeNumbers()
  File "c:\users\maxim\beeware\beeware-venv\lib\site-packages\toga\app.py", line 208, in __init__
    self.factory = get_platform_factory(factory)
  File "c:\users\maxim\beeware\beeware-venv\lib\site-packages\toga\platform.py", line 53, in get_platform_factory
    from toga_winforms import factory
  File "c:\users\maxim\beeware\beeware-venv\lib\site-packages\toga_winforms\factory.py", line 1, in <module>
    from .app import App, MainWindow
  File "c:\users\maxim\beeware\beeware-venv\lib\site-packages\toga_winforms\app.py", line 9, in <module>
    from .keys import toga_to_winforms_key
  File "c:\users\maxim\beeware\beeware-venv\lib\site-packages\toga_winforms\keys.py", line 2, in <module>
    from .libs import WinForms
  File "c:\users\maxim\beeware\beeware-venv\lib\site-packages\toga_winforms\libs\__init__.py", line 1, in <module>
    from .fonts import (  # noqa: F401
  File "c:\users\maxim\beeware\beeware-venv\lib\site-packages\toga_winforms\libs\fonts.py", line 13, in <module>
    from .winforms import (
  File "c:\users\maxim\beeware\beeware-venv\lib\site-packages\toga_winforms\libs\winforms.py", line 3, in <module>
    import clr
ImportError: DLL load failed: %1 не является приложением Win32.

Unable to start application 'Prime_Numbers'

Пробовал запустить другое приложение, то же самое. Переустановил python и git. Не помогло
  • Вопрос задан
  • 277 просмотров
Пригласить эксперта
Ответы на вопрос 1
TupaBan
@TupaBan
Dev
Скорее всего у тебя сборка Python и PyQt под разные архитектуры, по умолчанию на сайте Python скачивается x86 сборка, а PyQt у вас наверное x86-64.
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы