Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Import Error using Streamlit

24 views
Skip to first unread message

William Hobbs

unread,
Mar 2, 2024, 9:38:43 PM3/2/24
to Parselmouth
Hi Yannick! Thank you for creating this incredibly useful software! I am working on a project using Streamlit that will display formant values in quasi-real time (analyzing successive recordings of .10 seconds in length) and am having trouble importing Parselmouth into the script. I get the following error message:

ImportError:cannot import "quote" from 'urllib'

and the last error message references: 

parselmouth/adapters/dft/interface.py, line 17 in <module>
from urllib import quote

Can you help? I am completely reliant on Parselmouth to make this project work and I am not sure how to fix this particular error. Thanks! William

yannick...@gmail.com

unread,
Mar 3, 2024, 6:23:41 PM3/3/24
to Parselmouth
Hi William!

Seems you installed the old, unrelated `parselmouth` package (https://pypi.org/project/parselmouth/) from PyPI, rather than `praat-parselmouth` (https://pypi.org/project/praat-parselmouth/)?
Unfortunate situation, but yeah, `pip uninstall parselmouth` and `pip install praat-parselmouth` should fix it.

Kind regards
Yannick

William Hobbs

unread,
Mar 4, 2024, 10:46:56 PM3/4/24
to yannick...@gmail.com, Parselmouth
Thank you so much for the prompt response and for your help! That was exactly the problem and it is now fixed. What a relief! Thank you again for creating Parselmouth!!! William

--
You received this message because you are subscribed to a topic in the Google Groups "Parselmouth" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/parselmouth/uJ7RRFJSzKk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to parselmouth...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/parselmouth/40646428-0cc6-4e71-8eea-946828471ea4n%40googlegroups.com.


--
William Hobbs
Music Director, Chamber Music Etcetera
Reply all
Reply to author
Forward
0 new messages