-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making a plugin using Pygin, have problem importing pywinauto #42
Comments
Check that your %PATH% environment variable contains the same set of directories in both cases. |
Both the plugin and Far have "D:\Python\Python38-32\lib\site-packages\pywin32_system32" in the PATH I did a print of "sys.path" from the plugin and got this:
Seems correct, I get mostly the same using Python directly:
|
Are you using a Debug or Release version of Pygin? I found a very similar question - 13 years passed, but it looks like the win32api module still has ABI issues. Release works fine for me ( |
I'm using the build from here: https://ci.appveyor.com/project/alabuzhev/evil-programmers/branch/master/job/eeu7ileawj45xbp0/artifacts Is there another source for a build? |
There are no other sources, I'm using the same build. However, I was using Python 3.7. I debugged it and it looks like it cannot find pywintypes38.dll. Here people have the same problem. |
Did you run (as admin) "Python38-32\Scripts\pywin32_postinstall.py"? after that it works in normal Python for me but not via the plugin. I'll try copying the files and see I get it working, I'll try 3.7 also as I don't really need 3.8 but I didn't have a 32bit version installed when I started working on the plugin. Thanks for the support. Edit: |
As far as I can tell from looking at pywin32_postinstall.py, it copies those dlls to System32 (or SysWOW64) if possible, otherwise - to the Python root directory. If you see them in the latter - presumably, that script was executed as non-admin initially. Anyways, good to know that it works now. |
Hi, I'm trying to make my first plugin using Pygin on Far 3.0.0.5462 x86 and Python 3.8-32.
I'm trying to import pywinauto and getting this error:
My code works when not using Pygin but running in Far using Python 3.8-32 directly.
The Hello world example plugin works, so I assume I installed Pygin correctly.
The text was updated successfully, but these errors were encountered: