Comments (29)
@Svito-zar I believe you might have pip install
ed the parselmouth
package, instead of praat-parselmouth
? Unfortunately the previous name was already taken on the Python Package Index, so the package name vs. project name is slightly confusing. Apologies for that, but nothing I can do anything about, as far as know :-(
Can you confirm whether this is the case, or whether something else is wrong?
from parselmouth.
@jyothika12 Hmmm, weird. Two things:
- Can you run
pip uninstall parselmouth
and see what happens? - If that doesn't help: could you copy-paste the full traceback of the error you're getting, instead of just the last line? Then we see where the error originates.
from parselmouth.
@jyothika12 Is it the same problem? Have you pip install
ed parselmouth
instead of praat-parselmouth
? (cfr. https://parselmouth.readthedocs.io/en/stable/installation.html)
Then the same solution from above should also work, I hope?
EDIT: Sorry, I had not read that you did install praat-parselmouth
, afterwards. Have you ran pip uninstall parselmouth
, then, as well, to remove the other project?
from parselmouth.
thank you so much.that was the problem, it works well now.
from parselmouth.
Yes, that indeed was an issue
from parselmouth.
OK, I'll close this issue, then, if it is indeed resolved.
from parselmouth.
hi i am also having the same issue .. i have pip installed praat parselmouth only but still.
ImportError: cannot import name 'quote' from 'urllib' (C:\Users\Jyotika Patwardhan\AppData\Local\Programs\Python\Python37-32\lib\urllib_init_.py)
from parselmouth.
from parselmouth.
from parselmouth.
from parselmouth.
from parselmouth.
@jyothika12 We're already making progress, then, if it doesn't have the other issue anymore :-)
I think this problem occurs because of multiple versions of Python you have installed, where one is 32-bit and the other is 64-bit. I checked the versions of Parselmouth, and as far as I can see, these are correctly 32 and 64-bit. So my current guess is that your pip
somehow installs a 32-bit version of Parselmouth into the directory that contains libraries for your 64-bit version.
Relevant StackOverflow answers, I found:
https://stackoverflow.com/questions/19019720/importerror-dll-load-failed-1-is-not-a-valid-win32-application-but-the-dlls
https://stackoverflow.com/questions/43434028/how-to-pip-install-64-bit-packages-while-having-both-64-bit-and-32-bit-versions
Could you, please:
- Report the output of running
pip --version
andwhere python
in the terminal? - Report the output you get when starting Python, both in the terminal as well as in PyCharm? I mean the lines that look something like this, and tell me whether it's 32-bit or 64-bit:
Python 3.6.8 (default, Jan 14 2019, 11:02:34) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux Type "help", "copyright", "credits" or "license" for more information.
- Report the output of running
python -m site
andC:\Users\Jyotika Patwardhan\PycharmProjects\Demo_1\venv\Scripts\python.exe -m sit
in your terminal.
Sorry for all these questions and that I don't have an answer yet, but I need to get this info to see what's going wrong. I hope that once I have this information about the different Python versions on your computer, I can confirm that nothing's wrong with Parselmouth, and give you the command to get the installation fixed :-)
from parselmouth.
from parselmouth.
from parselmouth.
@jyothika12 Right, so there are indeed (at least) two Python versions, one saying '64 bit (AMD64)', while the other says '32 bit (Intel)' :-) Thank you very much for confirming that!
I would suggest uninstalling Parselmouth one last time. Then go into the Python interpreter shell where you want to use Parselmouth, and run:
>>> import subprocess, sys
>>> subprocess.call([sys.executable, "-m", "pip", "install", "-U", "--force-reinstall", "praat-parselmouth"])
...
(You can also see https://parselmouth.readthedocs.io/en/stable/installation.html#multiple-python-versions for more details, or other ways of fixing multiple installed Python versions :-) )
from parselmouth.
(If this doesn't work, do let me know; but I think this should do the trick, using sys.executable
to get the right version of Python and pip)
from parselmouth.
from parselmouth.
@jyothika12 Are you running this in the "Python Console" of PyCharm, and not in the "Terminal"?
The lines I sent must be executed inside of Python.
from parselmouth.
from parselmouth.
I am running this inside pycharm terminal
@jyothika12 Then either run in the in the PyCharm Python console, or run python
first inside the PyCharm Terminal
from parselmouth.
from parselmouth.
from parselmouth.
from parselmouth.
@jyothika12 So it has not worked? :-(
Sorry; I will try this out on a Windows machine I have access to, now, and see if I can get the same error :-/
from parselmouth.
from parselmouth.
Let's continue the discussion in the new #18 issue?
from parselmouth.
Hi there,
I'm new to praat, however, initiated the installation of parselmouth in anaconda3 python. And found out that module Praat doesnt exist in the parselmouth package to use the call function. can someone help please.
im getting an era below when i perform (from parselmouth.Praat import call)
ModuleNotFoundError: No module named 'parselmouth.Praat'; 'parselmouth' is not a package
from parselmouth.
@Fallarcomigo This seems like another issue than the original issue, so it is maybe better to start another thread (or quickly ask on Gitter).
I think the problem is the capital in what you write. It's from parselmouth.praat import call
, not Praat
.
If you did that correctly, then can you say whether you can import parselmouth
and print(parselmouth.Sound)
. Does that give errors, and which ones?
from parselmouth.
Great! Thanks for letting me know, @Fallarcomigo :)
from parselmouth.
Related Issues (20)
- How to change advanced pitch settings? HOT 3
- Library Installation HOT 3
- pip: praat-parselmouth-0.3.2.post2.tar.gz has inconsistent version: filename has '0.3.2.post2', but metadata has '0.3.2' HOT 4
- API for change_gender? HOT 1
- How to match time steps? HOT 4
- parselmouth.praat.call stuck in "Change gender" HOT 15
- Suds-jurko error while installing HOT 1
- Segmentation fault (core dumped) on ppc64le HOT 3
- Installation Failing when using Visual Studio 2022 and Windows 11 HOT 15
- External documentation for praat.call()? HOT 3
- Is it possible to extract pitch using Parselmouth with only mel-spectrograms provided? HOT 5
- Formant calculation not as accurate as in the Praat software HOT 3
- Ltas class in parselmouth? HOT 2
- How to extract pitch value of all syllables in a audio file ? HOT 3
- Missing import praat HOT 6
- Load Sound from memory? HOT 3
- Building wheel hangs on ppc64le HOT 10
- How to get values for timestamps for pitch strength, MFCCs? HOT 4
- Windows install should updated to "py -m pip install praat-parselmouth" HOT 1
- parselmouth.PraatError: Not an audio file. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parselmouth.