Comments (7)
Same issues with me on Linux. I got past that by adding a quick and dirty path append before the import:
...
from sys import path
from os.path import dirname
path.append(dirname(__file__))
from generate_classes import generate_classes
...
I'm sure there's a better/more elegant way of doing this; I was just trying to force my way through the install with pip
.
There are still problems further down the line though. In ~/obswebsocket/core.py
, it tries to do from . import events
, but there is no ~/obswebsocket/events.py
to import. Is there a file missing from this repo, or should events
be imported from somewhere else?
I suppose that should probably be its own issue. If it's more than just a missing file from the repo, I'll open a new one.
from obs-websocket-py.
I took events.py from version 0.2, and got another error, seems something might be messed up. 0.2 still installs fine though.
from obs-websocket-py.
Looks like the events.py
from version 0.2 works, it just needed some names updated. I have successfully installed obs-websocket-py with pip using these changes, and have put in a pull request. For anyone wanting to try installing it, download and extract the repo (or clone it using git
), then run pip
pointing to the directory. For example,
pip install ~/Downloads/obs-websocket-py/
from obs-websocket-py.
Same problem on windows:
C:\Users\Ark\Downloads\obscontrol>pip install obs-websocket-py
Collecting obs-websocket-py
Using cached https://files.pythonhosted.org/packages/2c/82/125306f049d7517f6cbae078fe0dc4cb82df08d5a2b1018b7bbd753eadc8/obs-websocket-py-0.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\ark\appdata\local\temp\pip-build-wisnkj\obs-websocket-py\setup.py", line 9, in <module>
from generate_classes import generate_classes
ImportError: No module named generate_classes
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\ark\appdata\local\temp\pip-build-wisnkj\obs-websocket-py\
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
from obs-websocket-py.
Same issue on raspbian, python 2.7:
pip install obs-websocket-py
Collecting obs-websocket-py
Downloading https://files.pythonhosted.org/packages/2c/82/125306f049d7517f6cbae078fe0dc4cb82df08d5a2b1018b7bbd753eadc8/obs-websocket-py-0.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-f35XrB/obs-websocket-py/setup.py", line 9, in <module>
from generate_classes import generate_classes
ImportError: No module named generate_classes
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-f35XrB/obs-websocket-py/
I then tried pip install websocket-client
and copied the obswebsocket directory into the root of my python project, as per manual install instructions on https://github.com/Elektordi/obs-websocket-py. Thereafter I had to manually put https://raw.githubusercontent.com/WolfgangAxel/obs-websocket-py/master/obswebsocket/events.py and https://raw.githubusercontent.com/WolfgangAxel/obs-websocket-py/master/obswebsocket/requests.py in the obswebsocket folder. Now all works fine.
from obs-websocket-py.
Hello,
(Sorry for the delay... :/ )
Just released version 0.4, it fixes a bug in the setup process, could you try again?
Best regards,
from obs-websocket-py.
No news is good news... Fell free to open it again if the problem is still here!
(I haven't got a Mac, so I cannot test myself...)
from obs-websocket-py.
Related Issues (20)
- MessageTimeout HOT 3
- No support for calling Virtual Camera on and off? HOT 1
- Refresh browers source, Control media audio mute and unmute, control filter visible, hide or show HOT 1
- Not able to connect to the websocket HOT 2
- Request: ExecuteBatch
- Handling error when OBS closes before script HOT 4
- Not working with OBS 28.0.0 (obs-websocket v5) HOT 2
- How to add image source in scene? HOT 2
- Do merge and update to websocket 5.0 HOT 2
- Remote Python2 compatiblity
- Getting KeyError: 'status' while trying to connect to OBS studio HOT 2
- Switch Scene v4 Sample HOT 5
- KeyError: 'status' with OBS 29 and obs-websocket-py 0.5.3 HOT 4
- SetSourceSettings expects one argument but 3 were given HOT 4
- Error not understood on scene change. HOT 4
- ConnectionRefusedError: Unable to make OBS and obs-websocket-py cooperate HOT 1
- requests.SetRecordDirectory takes 1 positional argument but 2 were given HOT 6
- How I can get the value of an call request? HOT 3
- Adding timeout to obsws_python.EventClient() causes timeout even when connection is ok HOT 2
- GetStreamStatus Inputdata and outputdata mix up
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obs-websocket-py.