Importing win32api (pywin32) in Briefcase Run
See original GitHub issueDescribe the bug
Importing win32api works during dev
but not run
. Note that pywin32
is added as a requirement and it is installed in site_packages.
To Reproduce Steps to reproduce the behavior:
- Create new briefcase project
- Add
pywin32
as a requirement inpyproject.toml
- Add
import win32api
toapp.py
- Run
briefcase run -u
Expected behavior Application runs
Environment:
- Operating System: Windows 10 64 Bit
- Python version: 3.10
- Software versions:
- Briefcase: 0.3.9
Additional context I tried the workaround as suggested in a very old closed issue by adding the paths manually but it didn’t help (#102).
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
windows7 import modules of installed app from app_packages
As a quick&dirty test I threw in: import sys print("pre_imports") for p in sys.path: print(p) app_pkg = "D:/outlook_mail_exporter/windows/ ...
Read more >import win32api error in Python 2.6 - pywin32 - Stack Overflow
Just had this problem on Python 2.7.14, running pip uninstall pywin32 followed by pip install pywin32 made it work, though I got a...
Read more >"DLL load failed: The specified procedure could not be found ...
This error is caused by a problem with how the "pywin32" package is ... procedure could not be found" when importing win32api or...
Read more >pywin32 · PyPI
Running as a Windows Service · Ensure Python is installed in a location where the user running the service has access to the...
Read more >Installed module but cant see it? - Esri Community
I typed pip install pypiwin32. The screen shot below shows that it's already installed. Now when I try to import pypiwin32 in ArcPro,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ahh…ok. I can replicate this as well now. Given the existence of this post install script for
pywin32
, it looks like this package will require some extra tweaking; the use-case here appears to fall outside of what they’re expecting. Although, I’ll have to defer to others on what exactly might need to be done.Closing as a duplicate of #381.