import playsound and gTTS issues
Opened this issue · 1 comments
Hi I've been having some issues trying to import playsound and gTTS and I don't know what to do
I have already install playsound and gTTS
from playsound import playsound
from gtts import gTTS
pip install playsound
Requirement already satisfied: playsound in c:\users\angel\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (1.2.2)
pip install gTTS
Requirement already satisfied: gTTS in c:\users\angel\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (2.2.1)
Requirement already satisfied: click in c:\users\angel\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from gTTS) (7.1.2)
Requirement already satisfied: six in c:\users\angel\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from gTTS) (1.15.0)
Requirement already satisfied: requests in c:\users\angel\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from gTTS) (2.25.0)
Requirement already satisfied: chardet<4,>=3.0.2 in c:\users\angel\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from requests->gTTS) (3.0.4)
Requirement already satisfied: idna<3,>=2.5 in c:\users\angel\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from requests->gTTS) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\angel\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from requests->gTTS) (1.26.2)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\angel\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from requests->gTTS) (2020.12.5)
and also set up the venv environment and I why I still having issues trying to import them
it says
AttributeError: 'function' object has no attribute 'playsound'
and probably will say the same for gTTS
please help. I'm on windows 10
just try 'import playsound' instead of 'from playsound import playsound'