Git Product home page Git Product logo

Comments (29)

YannickJadoul avatar YannickJadoul commented on July 17, 2024 4

@Svito-zar I believe you might have pip installed 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.

YannickJadoul avatar YannickJadoul commented on July 17, 2024 2

@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.

YannickJadoul avatar YannickJadoul commented on July 17, 2024 1

@jyothika12 Is it the same problem? Have you pip installed 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.

Fallarcomigo avatar Fallarcomigo commented on July 17, 2024 1

thank you so much.that was the problem, it works well now.

from parselmouth.

Svito-zar avatar Svito-zar commented on July 17, 2024

Yes, that indeed was an issue

from parselmouth.

YannickJadoul avatar YannickJadoul commented on July 17, 2024

OK, I'll close this issue, then, if it is indeed resolved.

from parselmouth.

jyothika12 avatar jyothika12 commented on July 17, 2024

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.

jyothika12 avatar jyothika12 commented on July 17, 2024

from parselmouth.

jyothika12 avatar jyothika12 commented on July 17, 2024

from parselmouth.

jyothika12 avatar jyothika12 commented on July 17, 2024

from parselmouth.

jyothika12 avatar jyothika12 commented on July 17, 2024

from parselmouth.

YannickJadoul avatar YannickJadoul commented on July 17, 2024

@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 and where 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 and C:\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.

jyothika12 avatar jyothika12 commented on July 17, 2024

from parselmouth.

jyothika12 avatar jyothika12 commented on July 17, 2024

from parselmouth.

YannickJadoul avatar YannickJadoul commented on July 17, 2024

@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.

YannickJadoul avatar YannickJadoul commented on July 17, 2024

(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.

jyothika12 avatar jyothika12 commented on July 17, 2024

from parselmouth.

YannickJadoul avatar YannickJadoul commented on July 17, 2024

@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.

jyothika12 avatar jyothika12 commented on July 17, 2024

from parselmouth.

YannickJadoul avatar YannickJadoul commented on July 17, 2024

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.

jyothika12 avatar jyothika12 commented on July 17, 2024

from parselmouth.

jyothika12 avatar jyothika12 commented on July 17, 2024

from parselmouth.

jyothika12 avatar jyothika12 commented on July 17, 2024

from parselmouth.

YannickJadoul avatar YannickJadoul commented on July 17, 2024

@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.

jyothika12 avatar jyothika12 commented on July 17, 2024

from parselmouth.

YannickJadoul avatar YannickJadoul commented on July 17, 2024

Let's continue the discussion in the new #18 issue?

from parselmouth.

Fallarcomigo avatar Fallarcomigo commented on July 17, 2024

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.

YannickJadoul avatar YannickJadoul commented on July 17, 2024

@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.

YannickJadoul avatar YannickJadoul commented on July 17, 2024

Great! Thanks for letting me know, @Fallarcomigo :)

from parselmouth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.