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

"numpy" is not accessed pylance #6282

Closed
jagan007G opened this issue Aug 21, 2024 · 1 comment
Closed

"numpy" is not accessed pylance #6282

jagan007G opened this issue Aug 21, 2024 · 1 comment
Assignees
Labels
by design needs repro Issue has not been reproduced yet

Comments

@jagan007G
Copy link

import numpy
import scipy.io.wavfile
from scipy.fftpack import dct

sample_rate, signal = scipy.io.wavfile.read('harvard.wav') # File assumed to be in the same directory
signal = signal[0:int(3.5 * sample_rate)] # Keep the first 3.5 seconds

I executed above code in python virtual environment. then numpy is not work. its show the error of
( WavFileWarning: Chunk (non-data) not understood, skipping it.
sample_rate, signal = scipy.io.wavfile.read('harvard.wav') # File assumed to be in the same directory )

And, In the code section, the numpy modulus are in transparent word. I point that it shows numpy is not accessed in pylance

@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Aug 21, 2024
@rchiodo
Copy link
Contributor

rchiodo commented Aug 21, 2024

Thanks for the issue but this is by design. That code is not directly using numpy. That's what the error message means. It would run the same with or without the import numpy statement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
by design needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

3 participants