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

TypeError from ext.transform (numpy > 1.24.4) #494

Open
paul-reiners opened this issue Aug 14, 2024 · 4 comments
Open

TypeError from ext.transform (numpy > 1.24.4) #494

paul-reiners opened this issue Aug 14, 2024 · 4 comments

Comments

@paul-reiners
Copy link

I am running this example. Here is the code:

import warnings
warnings.filterwarnings("ignore", message="numpy.dtype size changed")
warnings.filterwarnings("ignore", message="numpy.ufunc size changed")

from pliers.extractors import RMSExtractor
import os.path

# Create an instance of this extractor
ext = RMSExtractor()

data_dir_paranoia = '/home/miran045/reine097/Volumes/Engram/Data/Paranoia/'
paranoia_audio = os.path.join(data_dir_paranoia, 'stimuli', 'stimuli_story1_audio.wav')
# Extract features from the audio stimulus
rms_result = ext.transform(paranoia_audio)

I am getting this error on the last line:

TypeError: arrays to stack must be passed as a "sequence" type such as list or tuple.

I am running the source code from the main branch. Let me know if you have any other questions about my environment.

@adelavega
Copy link
Member

Hi! Sorry for not replying earlier, I missed this.

Was this issue ever resolved? If not I can take a look soon

@paul-reiners
Copy link
Author

paul-reiners commented Sep 23, 2024 via email

@marlyr
Copy link

marlyr commented Nov 14, 2024

I had the same issue but was able to resolve it by downgrading to numpy version 1.24.4.

@adelavega
Copy link
Member

Thank you @marlyr.

Renaming this issue to reflect numpy incompatabiilty. Probably not too hard to fix.

@adelavega adelavega changed the title TypeError from ext.transform TypeError from ext.transform (numpy > 1.24.4) Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants