Replies: 2 comments 2 replies
-
When new requirements for an app are added in |
Beta Was this translation helpful? Give feedback.
2 replies
-
[edit] removed |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
The 'briefcase run' operation encountered an error:
File "G:\beeware-tutorial\bydkmipwd\build\bydkmipwd\windows\app\src\app\bydkmipwd\MacUtils.py", line 2, in
import wmi
File "G:\beeware-tutorial\bydkmipwd\build\bydkmipwd\windows\app\src\app_packages\wmi.py", line 105, in
from win32com.client import GetObject, Dispatch
File "G:\beeware-tutorial\bydkmipwd\build\bydkmipwd\windows\app\src\app_packages\win32com_init_.py", line 8, in
import pythoncom
File "G:\beeware-tutorial\bydkmipwd\build\bydkmipwd\windows\app\src\app_packages\pythoncom.py", line 2, in
import pywintypes
ModuleNotFoundError: No module named 'pywintypes'
Traceback (most recent call last):
File "\app\bydkmipwd_main_.py", line 1, in
from bydkmipwd.PwdUpdateToga import main
File "\app\bydkmipwd\PwdUpdateToga.py", line 6, in
from bydkmipwd import TimeUtils, MacUtils, KeyUtils
File "\app\bydkmipwd\MacUtils.py", line 2, in
import wmi
File "\app_packages\wmi.py", line 105, in
from win32com.client import GetObject, Dispatch
File "\app_packages\win32com_init_.py", line 8, in
import pythoncom
File "\app_packages\pythoncom.py", line 2, in
import pywintypes
ModuleNotFoundError: No module named 'pywintypes'
Steps to reproduce
MacUtils.py line 2: import wmi
I have performed 'pip install pywin32' and 'pip install wmi' operations.
And I have referenced 'pywin32' and 'wmi' in the pyproject.toml file.
Expected behavior
Now the 'run' operation reports the error mentioned above, but the 'dev' operation can start the project normally. I don't know where the problem lies, and I hope to get some clarification. Thank you.
Screenshots
No response
Environment
Date/Time: 2024-03-22 17:43:51
Command line: G:\beeware-tutorial\beeware-venv\Scripts\briefcase run
OS Release: Windows 10
OS Version: 10.0.19045
Architecture: AMD64
Platform: Windows-10-10.0.19045-SP0
Python exe: G:\beeware-tutorial\beeware-venv\Scripts\python.exe
Python version: 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)]
Virtual env: True
Conda env: False
Briefcase: 0.3.15
Target platform: windows
Target format: app
Logs
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions