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

No Waveforms in Gui - Windows 10 - Run from pycharm after issues installing from cmd #24

Open
MrShinyBoots opened this issue Apr 28, 2022 · 7 comments

Comments

@MrShinyBoots
Copy link

hi there i have installed all requirements and have got setup.py to finally work after using Pycharm virtual env as a work around (another issue to do with windows/appdata acess levels not allowing changes..

but i still have no waveforms appearing in the gui?

I am reading this set of errors when I run which i assume is something to do with the lack of waveforms? - but I am unsure how to fix them? - i am a bit of a programming noob i'm afraid and required help just to get to this step

WARNING: Traceback (most recent call last):
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\pyaudiorestoration\pyrespeeder_gui.py", line 265, in
widgets.startup(MainWindow)
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\pyaudiorestoration\util\widgets.py", line 31, in startup
win.show()
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\app\backends_qt.py", line 567, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\app\backends_qt.py", line 567, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\app\backends_qt.py", line 903, in paintGL
self._vispy_canvas.events.draw(region=None)
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\util\event.py", line 453, in call
self._invoke_callback(cb, event)
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\util\event.py", line 471, in _invoke_callback
_handle_exception(self.ignore_callback_errors,
<< caught exception here: >>
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\util\event.py", line 469, in _invoke_callback
cb(event)
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\scene\canvas.py", line 218, in on_draw
self._draw_scene()
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\scene\canvas.py", line 277, in _draw_scene
self.draw_visual(self.scene)
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\scene\canvas.py", line 315, in draw_visual
node.draw()
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\scene\visuals.py", line 103, in draw
self._visual_superclass.draw(self)
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\visuals\visual.py", line 605, in draw
v.draw()
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\visuals\visual.py", line 600, in draw
if self._prepare_draw(view=self) is False:
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\visuals\axis.py", line 257, in _prepare_draw
self._axis_label_vis.rotation = self._rotation_angle
AttributeError: 'ExtAxisVisual' object has no attribute '_axis_label_vis'
ERROR: Invoking <bound method SceneCanvas.on_draw of <Canvas (PyQt5) at 0x2ad412e0e50>> for DrawEvent
ERROR: Invoking <bound method SceneCanvas.on_draw of <Canvas (PyQt5) at 0x2ad412e0e50>> repeat 2
ERROR: Invoking <bound method SceneCanvas.on_draw of <Canvas (PyQt5) at 0x2ad412e0e50>> repeat 4

any help would be useful - many thanks

@fcfalmeida
Copy link

I'm getting the exact same error on MacOS Monterey 12.0.1 using Python 3.6. I've installed all required dependencies. No waveforms appear on GUI. Any help would be appreciated.

@HENDRIX-ZT2
Copy link
Owner

This sounds like you have the current version of vispy installed. You'll likely need an older version as specified in setup.py

@fcfalmeida
Copy link

fcfalmeida commented May 13, 2022

This sounds like you have the current version of vispy installed. You'll likely need an older version as specified in setup.py

Completely forgot to check setup.py. Installed vispy 0.6.4 instead and it appears to be working now. Thank you so much!

Edit: I forgot to mention that I also tried with python 3.7 in the meantime, but apparently scikit-learn gives me a runtime error telling me it requires python 3.8:

RuntimeError: Scikit-learn requires Python 3.8 or later. The current Python version is 3.7.13 installed in /Users/chico/opt/miniconda3/envs/pyaudiorestoration/bin/python.

So I think the python 3.6 requirement specified on the README isn't correct.

@damian238
Copy link

Same problem on windows 10. Tried and failed to install vispy 0.6.4
Python: 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)]
Numpy: 1.22.2
Vispy: 0.12.1

@damian238
Copy link

I'm kind of desperate to get this working. I'd made some tapes of my guitar playing 40 years ago and not one of them is without extreme wow and flutter. I can not remake them so it's all that's left of my tears of playing. Before now there was nothing I could afford to fix them. What can I do?

@damian238
Copy link

I can't help but think that the negative value referenced in bold at the end here might be a clue as to how things have gone wrong here...
Reading C:/guitar music/Track01.wav
storing new fft ('C:/guitar music/Track01.wav', 2048, 0, 512)
Reading speed data
Reading regression data
Retrieving FFT from processing thread
ERROR: Invoking <bound method SceneCanvas.on_draw of <Canvas (PyQt5) at 0x2bdbe8e10a0>> repeat 128
WARNING: Traceback (most recent call last):WARNING: Traceback (most recent call last):
File "C:\Damian\flutterFix\pyaudiorestoration-master\pyaudiorestoration\pyrespeeder_gui.py", line 265, in
widgets.startup(MainWindow)
File "C:\Damian\flutterFix\pyaudiorestoration-master\pyaudiorestoration\util\widgets.py", line 32, in startup
appQt.exec_()
File "C:\Users\Damian\AppData\Local\Programs\Python\Python39\lib\site-packages\vispy\app\backends_qt.py", line 567, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "C:\Users\Damian\AppData\Local\Programs\Python\Python39\lib\site-packages\vispy\app\backends_qt.py", line 512, in mouseReleaseEvent
self._vispy_mouse_release(
File "C:\Users\Damian\AppData\Local\Programs\Python\Python39\lib\site-packages\vispy\app\base.py", line 224, in _vispy_mouse_release
ev = self._vispy_canvas.events.mouse_release(**kwargs)
File "C:\Users\Damian\AppData\Local\Programs\Python\Python39\lib\site-packages\vispy\util\event.py", line 453, in call
self._invoke_callback(cb, event)
File "C:\Users\Damian\AppData\Local\Programs\Python\Python39\lib\site-packages\vispy\util\event.py", line 471, in _invoke_callback
_handle_exception(self.ignore_callback_errors,
<< caught exception here: >>
File "C:\Users\Damian\AppData\Local\Programs\Python\Python39\lib\site-packages\vispy\util\event.py", line 469, in _invoke_callback
cb(event)
File "C:\Damian\flutterFix\pyaudiorestoration-master\pyaudiorestoration\pyrespeeder_gui.py", line 233, in on_mouse_release
track = wow_detection.Track(
File "C:\Damian\flutterFix\pyaudiorestoration-master\pyaudiorestoration\util\wow_detection.py", line 43, in init
self.sample_trail(trail)
File "C:\Damian\flutterFix\pyaudiorestoration-master\pyaudiorestoration\util\wow_detection.py", line 75, in sample_trail
self.times = np.linspace(self.frame_0self.hop/self.sr, self.frame_1self.hop/self.sr, self.frame_1-self.frame_0)
File "<array_function internals>", line 180, in linspace
File "C:\Users\Damian\AppData\Local\Programs\Python\Python39\lib\site-packages\numpy\core\function_base.py", line 122, in linspace
raise ValueError("Number of samples, %s, must be non-negative." % num)
ValueError: Number of samples, -10692, must be non-negative.
ERROR: Invoking <bound method Canvas.on_mouse_release of <Canvas (PyQt5) at 0x2bdbe8e10a0>> for MouseEvent

This occurred when I tried to select in the spectral window (despite nothing being visible).

@HENDRIX-ZT2
Copy link
Owner

HENDRIX-ZT2 commented Apr 21, 2023

I have improved the installation instructions to be more up to date and removed my code's requirements for specific older dependencies' versions. So please test the installation again with the current code and instructions.

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

No branches or pull requests

4 participants