question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Requests can't find items or scenes

See original GitHub issue

Issue 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:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Elektordicommented, Jul 30, 2017

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.

1reaction
Elektordicommented, Jul 28, 2017

Third people to confirm new version is working, pushing update to PyPI. Thanks @markusbaker for testing.

@JohnnyBlaze420 can you confirm it resolved your issue?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found