Closed mushxoxo closed 1 year ago
Hi!
Please, try this:
python3 -m pip install pywinctl==0.0.38 --force-reinstall
and let me know if it works.
Same problem. Also, python3 in cmd doesn't work, but python does I have python 310 installed:
Python310>python -m pip install pywinctl==0.0.38 --force-reinstall
Collecting pywinctl==0.0.38
Downloading PyWinCtl-0.0.38-py3-none-any.whl (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.0/62.0 kB ? eta 0:00:00
Collecting PyRect~=0.1 (from pywinctl==0.0.38)
Using cached PyRect-0.2.0-py2.py3-none-any.whl
Collecting pywin32>=302 (from pywinctl==0.0.38)
Using cached pywin32-306-cp310-cp310-win_amd64.whl (9.2 MB)
Installing collected packages: pywin32, PyRect, pywinctl
Attempting uninstall: pywin32
Found existing installation: pywin32 306
Uninstalling pywin32-306:
Successfully uninstalled pywin32-306
Attempting uninstall: PyRect
Found existing installation: PyRect 0.2.0
Uninstalling PyRect-0.2.0:
Successfully uninstalled PyRect-0.2.0
Attempting uninstall: pywinctl
Found existing installation: PyWinCtl 0.0.43
Uninstalling PyWinCtl-0.0.43:
Successfully uninstalled PyWinCtl-0.0.43
Successfully installed PyRect-0.2.0 pywin32-306 pywinctl-0.0.38
The most common and cross-platform way of invoking Python 3 is python3
command, but specially in windows, it depends on how Python was installed (from MS-Store or with a installer), if it has been added to the system PATH, if there are one or more python versions installed, etc. In windows, it's also common to invoke it as py
or py -3
. Take a look at this, as an example to diagnose and solve your issue.
So even though we choose a python installation directory in OBS, it still needs to be in windows environment variables in order to run properly?
Sorry, but I'm not an OBS expert. Just guessing, perhaps the Python path in OBS is wrong?
I found this in reddit, which may be useful (see Cuboidiots' answer on OBS/Python versions and OBS paths).
none of aobve worked for me . using windows 11 with python 3.6.8
Same issue in Python 3.11
[zoom_and_follow_mouse.py] Traceback (most recent call last): [zoom_and_follow_mouse.py] File "C:\Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\zoom_and_follow_mouse.py", line 17, in <module> [zoom_and_follow_mouse.py] import pywinctl as pwc [zoom_and_follow_mouse.py] File "C:\Users\danie\AppData\Local\Programs\Python\Python311\Lib\site-packages\pywinctl\__init__.py", line 797, in <module> [zoom_and_follow_mouse.py] from ._pywinctl_win import (Win32Window as Window, checkPermissions, getActiveWindow, getActiveWindowTitle, [zoom_and_follow_mouse.py] File "C:\Users\danie\AppData\Local\Programs\Python\Python311\Lib\site-packages\pywinctl\_pywinctl_win.py", line 26, in <module> [zoom_and_follow_mouse.py] import win32api [zoom_and_follow_mouse.py] ModuleNotFoundError: No module named 'win32api'
I've been thought all ideas in all places around internet and nothing solved it
Closing as python installation errors are out of scope for support.
I am running Windows 10, python 3.10.10 and have installed pwc