question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Importing win32api (pywin32) in Briefcase Run

See original GitHub issue

Describe 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:

  1. Create new briefcase project
  2. Add pywin32 as a requirement in pyproject.toml
  3. Add import win32api to app.py
  4. 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:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rmartin16commented, Aug 20, 2022

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.

0reactions
freakboy3742commented, Sep 30, 2022

Closing as a duplicate of #381.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found