When executing the codes, nothing is shown in the terminal RUN

已回答

When I execute any code, the program shows nothing, neither errors, nor graphics, in the terminal "RUN". it only puts me:

"Process finished with exit code -1073741819 (0xC0000005)"

And it does not show me anything else.

0

What would it show you if you run the same code in terminal?

0

Hi Eva, could you please describe your project, is it a Django one or a pure Python? Which interpreter do you use? There's a similar issue in our bug tracker: https://youtrack.jetbrains.com/issue/PY-30240

0
Avatar
Permanently deleted user

I'm starting with Python, to work with wav files. The program worked for me until I installed the librosa bookstore. The interpreter I use is Python 3.6, with anaconda.

When I run it in the terminal, it does not tell me anything.

I'm sorry if I do not write correctly.

0

I see, thank you! I wonder what packages do you have installed, could you please run

conda list

in the terminal and provide the output here? Is it possible for you to share the project with us?

0
Avatar
Permanently deleted user

Of course, no problem. The list is:

Also, I had to install ffmpeg (conda install -c conda-forge ffmpeg) to use librosa. I tried it to uninstall, but nothing.

The code I'm doing, for now, is very simple, I only play with recorded voices.

import numpy as np
import matplotlib.pyplot as plt
import scipy.io.wavfile
import pyworld as pw
import math
import soundfile as sf

fs, x = scipy.io.wavfile.read('p226_072.wav')
#print(fs)
#print(x)

#wrapper for world vocader
x, fs = sf.read('p226_072.wav')
#print(x)

"""
plt.subplot(2,1,1)
plt.plot(data)

plt.subplot(2,1,2)
plt.plot(x)
plt.show()
"""

print(fs)
f0,sp,ap = pw.wav2world(x.astype(float), fs)

plt.subplot(2,1,1)
plt.plot(f0)

plt.subplot(2,1,2)
plt.imshow(sp)
plt.show()

y = pw.synthesize(f0, sp, ap, fs)
scipy.io.wavfile.write('voz2s.wav', fs, y)
dato1, dato2 = scipy.io.wavfile.read('voz2s.wav', mmap=True)
plt.plot(dato2)
plt.show()
#y1, sr1 = librosa.load('Voces\p225\p225_001.wav')
#y2, sr2 = librosa.load('Voces\p225\p226_001.wav')

 

0
Avatar
Permanently deleted user

I've been testing other codes and I've seen that if I put the matplotlib.pyplot library the console does not show anything.

import scipy.io.wavfile
import pyworld as pw
import soundfile as sf
import pyworld as pw
import soundfile as sf

fs, x = scipy.io.wavfile.read('p226_001.wav')
print (x)
f0,sp,ap = pw.wav2world(x.astype(float), fs)
print('F0', f0)



import scipy.io.wavfile
import pyworld as pw
import soundfile as sf
import pyworld as pw
import soundfile as sf
import matplotlib.pyplot as plt


fs, x = scipy.io.wavfile.read('p226_001.wav')
print (x)
f0,sp,ap = pw.wav2world(x.astype(float), fs)
print('F0', f0)

I have uninstalled it, and installed it again, but nothing.

 

0

Thank you! Unfortunately, I can't reproduce the problem locally. Could you please run the script in the terminal outside of PyCharm? Does it work correctly?

0
Avatar
Permanently deleted user

When I run the program with the terminal, it tells me that librosa are not installed.
So I have unistaled anaconda and reinstalled it.
The program already works well with bookstores: librosa and dtw.

0

请先登录再写评论。