HENDRIX-ZT2 / pyaudiorestoration

A set of tools to restore audio quality from a variety of old analog sources, such as tape, cassettes, acetates and vinyl.
GNU General Public License v2.0
82 stars 7 forks source link

Can't get pyaudiorestoration to function properly #10

Closed TheTikiGod closed 1 year ago

TheTikiGod commented 5 years ago

Hello, I am pretty new to using Python (or programming languages in general) so apologies if my questions come off as "noobish", but I've been having trouble getting the various programs in the pyaudiorestoration suite to function and was hoping you could help.

To preface I'm using Windows 8.1 and Python 3.7.

I followed the instructions as best I could on the ReadMe, and did as follows:

Installed Python via custom install options to create an environmental variable for Python during install Opened the Windows Command Prompt and changed directory from default to the folder Python was installed in (in my case it's C:\Users\REALNAME1_000\AppData\Local\Programs\Python\Python37-32), and then installed the various pip dependencies noted in the ReadMe, currently with the exception of pyFFTW. All installations (other than pyFFTW' I think it's still having problems with Python 3.7 like 3.6 but I have not tested it) were successful. I then unzipped the latest version of pyaudiorestoration and left the folder in the place it was unzipped to (C:\Users\REALNAME1_000\Documents\pyaudiorestoration-master)

However, I have not been successful in actually getting any of the programs to function properly For pyrespeeder I tend to get this:

C:\Users\REALNAME1_000\Documents\pyaudiorestoration-master\pyaudiorestoration-master>python pyrespeeder_gui.py
Warning: pyfftw is not installed. Run 'pip install pyfftw' to speed up spectrogram generation.
file has changed!
Reading E:/Music/Train #58 Test.wav
storing new fft 2048
Reading speed data
Reading regression data
Fallback to numpy fftpack!
Retrieving FFT from processing thread
INFO: Program has unset variables: {'texture2D_LUT'}
C:\Users\REALNAME1_000\Documents\pyaudiorestoration-master\pyaudiorestoration-master\util\widgets.py:441: RuntimeWarning: divide by zero encountered in log2
  h = round(12*np.log2(freq/C0))
C:\Users\REALNAME1_000\Documents\pyaudiorestoration-master\pyaudiorestoration-master\util\widgets.py:442: RuntimeWarning: invalid value encountered in double_scalars
  octave = int(h // 12)

For humspeed it crashes, however looking at cmd right before it does I get:

C:\Users\REALNAME1_000\Documents\pyaudiorestoration-master\pyaudiorestoration-master>python humspeed_gui.py
Traceback (most recent call last):
  File “humspeed_gui.py”, line 12, in <module>
   from matplotlab.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
ModuleNotFoundError: No module named ‘matplotlib’

For dropouts it also crashes but again looking at the cmd right before it does I get:

C:\Users\REALNAME1_000\Documents\pyaudiorestoration-master\pyaudiorestoration-master>python dropouts_gui.py
Traceback (most recent call last):
  File “dropouts_gui.py”, line 5, in <module>
   Import librosa
ModuleNotFoundError: No module named ‘librosa’

For difeq I get much the same as I did for humspeed, but here it is regardless:

C:\Users\REALNAME1_000\Documents\pyaudiorestoration-master\pyaudiorestoration-master>python difeq_gui.py
Traceback (most recent call last):
  File “difeq_gui.py”, line 7, in <module>
   from matplotlab.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
ModuleNotFoundError: No module named ‘matplotlib’

I am at a complete loss as to how I should proceed from here. Can you provide any assistance?

Thanks

HENDRIX-ZT2 commented 5 years ago

Hi!

The pyrespeeder issue is interesting - could you just try downloading it again because I have recently added a lot of changes to the code and it was temporarily unstable. I suppose you got it when something was broken... If it persists I'll have to look into it!

The other two are straightforward; you will have to run in a windows command prompt with admin privileges: pip install matplotlib, librosa That should do, perhaps more ModuleNotFound errors will pop up, just repeat the procedure for those - the list on the main page is not complete.

TheTikiGod commented 4 years ago

Hi,

Sorry I couldn’t respond sooner. The good news is that installing those missing dependencies worked for most of the programs (dropout, EQ, etc.) which is a relief!

The bad is that pyrespeeder is still running into those same issues as before. I tried using a newer version of the suite and nothing has changed on that front. In addition while I’m not in front of my audio PC at the moment I recall that one of the programs (Hum respeed I think) kept crashing. Hope this helps.

Thanks!

HENDRIX-ZT2 commented 4 years ago

Cool! Same console error report still for pyrespeeder? Strange...

DouglAsshat commented 4 years ago

I am currently getting that issue with pyrepseeder

andrewhalladay commented 4 years ago

Same here. Program has unset variables: {'texture2D_LUT'} Any progress on this?

andrewhalladay commented 4 years ago

Hey all. I downgraded vispy to 0.5.3 and the spectrogram is working!

DouglAsshat commented 4 years ago

Thanks Andrew Halladay, that worked for me as well! ZT, I'd suggest putting that in the install instructions.

basmolly commented 4 years ago

Dear HENDRIX-ZT2. I am proud to say that I managed to install Python and all the required components. PyReSpeeder is now operational. I wonder if you could help give me a little more insight how to cure wow caused by an eccentric record. I did my best to read your instructions carefully, but I need just a little more help. Is there a video on youtube how to do it? Thank you so much for a little bit more help. Best wishes, Bas

HENDRIX-ZT2 commented 1 year ago

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.