Coder Social home page Coder Social logo

Comments (9)

raspberyl08 avatar raspberyl08 commented on June 8, 2024

I've the same issue. It says "ModuleNotFoundError: No module named 'pywinctl'"

from obs-zoom-and-follow.

gabe-over avatar gabe-over commented on June 8, 2024

Looks like you didn't install pywinctl module.

pip install pywinctl

from obs-zoom-and-follow.

raspberyl08 avatar raspberyl08 commented on June 8, 2024

Looks like you didn't install pywinctl module.

pip install pywinctl

Ah! correct. It is my first time using github. Did not know about "Dependencies" section.

from obs-zoom-and-follow.

micky3knuckles avatar micky3knuckles commented on June 8, 2024

I did install it, which I referenced above. Here is what I get now when I type in the command:

C:\Users\myuck>pip install pywinctl
Requirement already satisfied: pywinctl in c:\users\myuck\appdata\local\programs\python\python310\lib\site-packages (0.0.36)
Requirement already satisfied: PyRect~=0.1 in c:\users\myuck\appdata\local\programs\python\python310\lib\site-packages (from pywinctl) (0.2.0)
Requirement already satisfied: pywin32>=302 in c:\users\myuck\appdata\local\programs\python\python310\lib\site-packages (from pywinctl) (304)

I also tried to install the whl file seperately, which was successful

from obs-zoom-and-follow.

TheRealSlander avatar TheRealSlander commented on June 8, 2024

I have the exact same problem as OP, but I'm using the snap version of OBS under Manjaro linux.
When I try to add the script to OBS, I have the following message:

error: [Python: zoom_and_follow_mouse.py] Traceback (most recent call last):
error: [Python: zoom_and_follow_mouse.py]   File "/home/slander/OBS Streaming/Scripts/zoom_and_follow_mouse.py", line 2, in <module>
error: [Python: zoom_and_follow_mouse.py]     import pywinctl as pwc # version >=0.0.30
error: [Python: zoom_and_follow_mouse.py] ModuleNotFoundError: No module named 'pywinctl'

I have installed pywinctl using the following command (also tried without the sudo):

sudo python -m pip pywinctl

I tried to get an answer on stackoverflow, but they directed me here.
The stackoverflow question is here: https://stackoverflow.com/questions/71954531/obs-python-script-cannot-find-module-error-obs-snap-linux-edition
I link the question as there is more infos on the environment there.

from obs-zoom-and-follow.

CatxOfficial avatar CatxOfficial commented on June 8, 2024

I've the same issue. It says "ModuleNotFoundError: No module named 'pywinctl'"

I have the same issue, I tried fixing it using the pip install method but now it just says the following:

import win32api
[zoom_and_follow_mouse.py] ModuleNotFoundError: No module named 'win32api'

Then, I tried installing win32api using pip install pypiwin32 but it doesn't seem to recognize it

Edit:
Solved it, I just had to relaunch obs

from obs-zoom-and-follow.

tryptech avatar tryptech commented on June 8, 2024

@micky3knuckles Could you make sure that the Python Settings tab is pointing to an installation of Python 3.6.8 or lower? And make sure that you install PyWinCtl under that version of Python. It is possible to install PyWinCtl under a different version of Python, thus OBS will not see it.

@TheRealSlander I'm not sure if your issue is the same as the previous, but I would make sure OBS is using the right version of Python. I'm not sure if it's using a self-contained version of python but it definitely isn't using the 3.10 version that has PyWinCtl installed.

from obs-zoom-and-follow.

tryptech avatar tryptech commented on June 8, 2024

If the issue isn't resolved by making sure your Python versions are correct, please let me know and I will reopen the issue.

from obs-zoom-and-follow.

Scrxtchy avatar Scrxtchy commented on June 8, 2024

I had some issues in the past when helping people setup this script with python36, and it always came from pywinctl not being able to load the win32api module. However with version 28 of obs allowing us to use python3.10 (obsproject/obs-studio@ab21c7e) this package problem hasn't been an issue with new installs

from obs-zoom-and-follow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.