python_wizard icon indicating copy to clipboard operation
python_wizard copied to clipboard

Quick Guide

Open Yanvps01 opened this issue 1 year ago • 6 comments

Hi, can you make a quick guide on how to execute this files for noobs?

Edit: I downloaded thonny python and added the scipy package, then runned the file python_wizard_gui ( as said by christurnerchris in the issue #18). But still i can't convert the .wav files to LPC streams.

I got this error message in Thonny:

%Run python_wizard_gui 0 1.1538461538461537 Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\yanvp\AppData\Roaming\Python\Python310\site-packages\scipy_init_.py", line 150, in getattr return globals()[name] KeyError: 'array'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\yanvp\AppData\Local\Programs\Thonny\lib\tkinter_init_.py", line 1921, in call return self.func(*args) File "C:\Users\yanvp\AppData\Local\Programs\Thonny\lib\tkinter_init_.py", line 839, in callit func(*args) File "C:\Users\yanvp\Desktop\python_wizard-master\python_wizard_gui", line 304, in repeatedly b = Buffer.fromWave(self.filename) File "C:\Users\yanvp\Desktop\python_wizard-master\pywizard\Buffer.py", line 31, in fromWave d2 = sp.array(data, 'float') File "C:\Users\yanvp\AppData\Roaming\Python\Python310\site-packages\scipy_init.py", line 152, in getattr raise AttributeError( AttributeError: Module 'scipy' has no attribute 'array'

This is my UI:

image

This is the file I want to convert:

https://drive.google.com/drive/folders/1eITYrZ8G5vy2q2sdLpcDv9ZlD8DFJGni?usp=drive_link

Yanvps01 avatar May 17 '24 05:05 Yanvps01

Wav file should be MONO, 8000 Hz, 16-bit PCM. Use "Normalize" filter to enhance coding results.

sintech avatar May 17 '24 09:05 sintech

Wav file should be MONO, 8000 Hz, 16-bit PCM. Use "Normalize" filter to enhance coding results.

Yes, the .WAV file is exactly like that. But still can't get results. Can you make another file available so I can test it out?

Yanvps01 avatar May 17 '24 17:05 Yanvps01

The problem is that scipy in the latest version removed many deprecated methods. You need to install an older version of scipy to make the program work.

federicochiesa avatar May 23 '24 12:05 federicochiesa

I'll push an updated version for use with newer scipy versions.

ptwz avatar Jun 17 '24 19:06 ptwz

I have same problem, similar errors. How fo you get an old scipy?

christurnerchris avatar Oct 15 '24 17:10 christurnerchris

Should be fixed in add73eb

ptwz avatar Oct 21 '24 07:10 ptwz