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

[BUG]: rU is renamed in python3.11 onwards #99

Open
1 task done
caitlin91 opened this issue Apr 2, 2024 · 1 comment
Open
1 task done

[BUG]: rU is renamed in python3.11 onwards #99

caitlin91 opened this issue Apr 2, 2024 · 1 comment
Labels
bug Something broke

Comments

@caitlin91
Copy link

Did you search for similar bugs?

  • I have searched the existing issues

What happened?

getting an error "valueerror invalid mode 'rU'"

Expectations?

running extractFormants.py to produce vowel extraction

Steps To Reproduce

python 3.12
Windows 11 Pro

fave installed via "python3 -m pip install fave"
run from Windows command line fave-extract AudioFileName.wav TextGridFileName.TextGrid OutputFileName

riffing off this answer https://stackoverflow.com/questions/74715990/node-gyp-err-invalid-mode-ru-while-trying-to-load-binding-gyp replacing 'rU' with 'r' in both extractFormants.py and praat.py seems to fix the problem.

@caitlin91 caitlin91 added the bug Something broke label Apr 2, 2024
@caitlin91 caitlin91 changed the title [BUG]: [BUG]: rU is renamed in python3.11 onwards Apr 2, 2024
@robertlennon50
Copy link

robertlennon50 commented May 15, 2024

Hi @caitlin91 I had the same issue (Windows 11 Home, Python 3.12.3), and your suggested bug fix worked for me too, thanks :) Note: after making this change I then also got the error "AttributeError: module 'fave.extract.plotnik' has no attribute 'plt_ipa'". To fix this I just commented out the line "plotnik.plt_ipa(vm.cd),", which appears twice, on lines 1434 and 1535 of extractFormants.py. To ensure the output file has the correct number of columns, I then also removed the term " 'plt_vclass', " in two locations. This means you won't get the vowel classification in the output, but everything else should now work - perhaps this can be addressed in a future release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something broke
Projects
None yet
Development

No branches or pull requests

2 participants