Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange interactive behaviour #6

Open
mortlind opened this issue Aug 15, 2016 · 0 comments
Open

Strange interactive behaviour #6

mortlind opened this issue Aug 15, 2016 · 0 comments

Comments

@mortlind
Copy link

When trying to go through the code lines in examples/cloud.py line by line in an interactive interpreter, an exception occurs when trying to create a depth stream:

>>> device = cyni.getAnyDevice()
>>> device.open()
>>> depthStream = device.createStream(b"depth", fps=30)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "cyni.pyx", line 117, in cyni.Device.createStream (cyni.cpp:4232)
  File "cyni.pyx", line 35, in cyni.error (cyni.cpp:2748)
cyni.OpenNIException: Must open() the device before creating any streams.
>>> 

This can be remedied by executing the two lines where the device is gotten and the one where it is opened in one. (The USB events thread priority warning have no impact at the moment, and I tolerate it for the time being. The important fact is that I get a usable VideoStream object (depthStream)):

>>> device = cyni.getAnyDevice(); device.open()
Warning: USB events thread - failed to set priority. This might cause loss of data...
>>> depthStream = device.createStream(b"depth", fps=30)
>>> 

Can someone please explain what this is about?

P.S.: Running Python 3.5.2 on Debian GNU/Linux. The particular fork I use currently is mortlind/cyni.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant