Requests can't find items or scenes
See original GitHub issueIssue type
- Bug
- Feature request
- Other
Description
While using Python and obs-websocket-py trying to use SetCurrentScene results in
<SetCurrentScene request({u"error" : u"requested scene does not exist"}) called: failed ({"scene-name" : u"s2"})>
or any other name results in “scene does not exist” error, even if the scene does exists and is read by using GetSceneList(). Same happens for setting source properties - the module always returns a “not found” error, even if scenes / sources can be found in the scene via obs-websocket.py.
Steps to reproduce
Make two scenes in OBS, “s1” and “s2”. Then:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import obswebsocket as obsw
import obswebsocket.requests as obsr
client = obsw.obsws("localhost", 4444, "password")
client.connect()
scenes = client.call(obsr.GetSceneList()).dataout["scenes"]
newScene = scenes[1]
res = client.call(obsr.SetCurrentScene(newScene["name"]))
print res
client.disconnect()
Technical information
- Operating System : Windows 7 Pro x64 SP1
- OBS Studio version : 19.0.3 x32
- Python version: 2.7.13 x32 Using obs-websocket version 4.0 and obs-websocket-py version 0.1.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Python requests isn't giving me the same HTML as my ...
request. Basically, I replaced: import requests session = requests.Session() r = session.get(URL). with ...
Read more >Ultimate Guide to Web Scraping with Python Part 1: Requests ...
Request and wrangling HTML using two of the most popular Python libraries for web scraping: requests and BeautifulSoup.
Read more >Python Requests get Method - W3Schools
Make a request to a web page, and return the status code: import requests ... The get() method sends a GET request to...
Read more >If Shared Albums aren't working - Apple Support
Open Photos and tap the Albums tab. Tap the name of the Shared Album. Check the comments on the photo or video.
Read more >YouTube Data API - Errors | Google Developers
quotaExceeded (403), quotaExceeded, The request cannot be completed because ... The video ID specified as a promoted item cannot be found.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks. I’m closing this issue.
For Py3 release, I created a new issue for this matter: #5 You can subscribe to it if you want.
Third people to confirm new version is working, pushing update to PyPI. Thanks @markusbaker for testing.
@JohnnyBlaze420 can you confirm it resolved your issue?