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

sounddevice.PortAudioError: Error getting stream time #53

Closed
M0Rf30 opened this issue Dec 9, 2016 · 9 comments
Closed

sounddevice.PortAudioError: Error getting stream time #53

M0Rf30 opened this issue Dec 9, 2016 · 9 comments

Comments

@M0Rf30
Copy link
Contributor

M0Rf30 commented Dec 9, 2016

Using friture-git I've encountered this issue:

File "/usr/lib/python3.5/site-packages/sounddevice.py", line 1069, in time
  raise PortAudioError('Error getting stream time')
sounddevice.PortAudioError: Error getting stream time
@tlecomte
Copy link
Owner

Hello M0Rf30 ! Thanks for your report. Could you please tell me which platform you're using? Do you have the full stack trace (with the calls before the one that failed) ? Thanks !

@M0Rf30
Copy link
Contributor Author

M0Rf30 commented Dec 10, 2016

I'm using Arch Linux 64bit with latest version of required modules and friture git master branch.
Here the full stack trace

Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/friture/plotting/canvasWidget.py", line 67, in paintEvent
    self.drawData(painter)
  File "/usr/lib/python3.5/site-packages/friture/plotting/canvasWidget.py", line 98, in drawData
    item.draw(painter, self.horizontalScaleTransform, self.verticalScaleTransform, self.rect())
  File "/usr/lib/python3.5/site-packages/friture/imageplot.py", line 120, in draw
    time = self.audiobackend.get_stream_time()
  File "/usr/lib/python3.5/site-packages/friture/audiobackend.py", line 391, in get_stream_time
    return self.stream.time
  File "/usr/lib/python3.5/site-packages/sounddevice.py", line 1069, in time
    raise PortAudioError('Error getting stream time')
sounddevice.PortAudioError: Error getting stream time

@tlecomte
Copy link
Owner

Ok, thanks. This error was supposed to be fixed 6 days ago by commit 865488b. Could you please confirm that you have the latest git ?

@M0Rf30
Copy link
Contributor Author

M0Rf30 commented Dec 10, 2016

yes fixed. sorry my fault

@M0Rf30 M0Rf30 closed this as completed Dec 10, 2016
@M0Rf30
Copy link
Contributor Author

M0Rf30 commented Dec 10, 2016

I've also updated the PKGBUILD in AUR for Arch Linux

@M0Rf30 M0Rf30 reopened this Dec 10, 2016
@M0Rf30
Copy link
Contributor Author

M0Rf30 commented Dec 10, 2016

An update. Now friture doesn't show any stacktrace or error that denies its use, but a loop-printed line
Failed to read stream time Error getting stream time

@tlecomte
Copy link
Owner

Yes, you're right, that's not really nice. Could you please try again with latest git? It should only print the line once.

@M0Rf30
Copy link
Contributor Author

M0Rf30 commented Dec 12, 2016

Yes solved, only one line is printed

@M0Rf30 M0Rf30 closed this as completed Dec 13, 2016
@tlecomte
Copy link
Owner

Thanks for your test!

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

2 participants