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

AttributeError: module 'scipy.signal' has no attribute 'hamming' #51

Open
DavidWang12345678 opened this issue Sep 28, 2024 · 2 comments
Labels
question Further information is requested

Comments

@DavidWang12345678
Copy link

When I try to import Nussl, I encounter an error. I’ve checked that my SciPy version is up to date (1.14.1). Has anyone else experienced this problem?

@DavidWang12345678 DavidWang12345678 added the question Further information is requested label Sep 28, 2024
@DrRichardDaystrom
Copy link

DrRichardDaystrom commented Jan 16, 2025

I just encountered the same problem. I am running scipy 1.15.1.

@DrRichardDaystrom
Copy link

DrRichardDaystrom commented Jan 17, 2025

I figured out how to get nussl to import on my MacOS 15.2 machine.

First, I had to install the Xcode command line tools (in order to satisfy the C++11 requirement for nussl to build soxbindings).

Next, I had to use Homebrew to install sox (also required for nussl to build soxbindings, sox provides sox.h).

Then, I used conda to build my python environment. In particular, I had to specify 'python=3.6' (because nussl uses the deprecated imp library), 'numpy<2' (because nussl uses the deprecated type np.float_), and 'scipy<1' (because nussl looks for hamming in scipy.signal, rather than scipy.signal.windows).

After my conda environment was built and activated, I need to use pip to install numba==0.48 (because nussl uses numba.decorators). Then, I use pip to install librosa but I am not sure if I needed to since nussl might install in in the next step. Finally, I used pip to install nussl (and then conda to install ipython).

Once that was all done, I could open an ipython session and import nussl without it throwing any errors. I haven't even played with it yet (given that it was such a journey to set up an environment for it). However, I wanted to document my progress somewhere in case it is helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants