Python gTTS not found - python

I want to import gtts. I wrote "import gtts" But it shows me a failure because he didn't know gTTS. I've already installed gtts with "pip install gtts" but it still didn't work. Please help.
Thanks
error:
PS C:\Users\dealt> & C:/Users/dealt/AppData/Local/Programs/Python/Python311/python.exe
{file}
Traceback (most recent call last):
File "c:\Users\dealt\Desktop\Durchsage.py", line 1, in <module>
import gtts
ModuleNotFoundError: No module named 'gtts'
I am trying to import gTTS

Related

No module named 'face_recognition'

I installed cmake, dlib and face_recognition but when I run my project I get this error
Code:
import face_recognition
import cv2
Error:
Traceback (most recent call last):
File "...\face recognition\main.py", line 1, in <module>
import face_recognition
ModuleNotFoundError: No module named 'face_recognition'
Check if you've istalled dlif and etc under some virtual enviromant but trying to run your code under general one (or vise versa)

Culebra tester error: No module named culebratester_client.api.default_api

When I am running python gfxinfo2.py com.android.systemui from this link
I am getting the following message Traceback (most recent call last):
File "gfxinfo2.py", line 13, in from com.dtmilano.android.viewclient import ViewClient File "D:\Softwares\AndroidViewClient-master\AndroidViewClient-master\src\com\dtmilano\android\viewclient.py", line 25, in from culebratester_client import WindowHierarchyChild, WindowHierarchy File "D:\Softwares\AndroidViewClient-master\AndroidViewClient-master\src\com\dtmilano\android\culebratester_client__init__.py", line 18, in from culebratester_client.api.default_api import DefaultApi ImportError: No module named culebratester_client.api.default_api
I am a newbie and don't know much about android and how it works. I need to understand how this works. Kindly help me out. What am I doing wrong over here?
You have to install culebratester-client
pip install culebratester-client

Failed to import a module

I try to use ImageGrab (open-cv function)
OS: lubuntu
First, I did: sudo apt-get install python-opencv.
Installation went successfuly.
Then I tried to do: from PIL import ImageGrab. But at this point I got the following ImportError:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/user/lib/python2.7/dist-packages/PIL/ImageGrab.py", line 26, in <module> import _grabscreen
ImportError: No module named _grabscreen
Where am I wrong?
Unfortunately - ImageGrab only works with Windows
Alternative: pyscreenshot

ModuleNotFoundError: No module named 'CairoSVG'

I have this code:
import CairoSVG
but I get this:
"C:\Program Files\Python36\python.exe" D:/PyCharmProjects/Exyz/Bla.py
Traceback (most recent call last):
File "D:/PyCharmProjects/xyz/Bla.py", line 1, in <module>
import CairoSVG
ModuleNotFoundError: No module named 'CairoSVG'
Process finished with exit code 1
I followed this and the package CairoSVG is definitely installed. I also did:
Go to File > Invalidate caches/restart and click Invalidate and Restart to apply changes and restart PyCharm.
What else could be wrong?
Using
import cairosvg
instead of
import CairoSVG
should fix your problem.
Source : http://cairosvg.org/

After installed asprise_ocr_sdk_python_api on mac, got "No module named 'ocr'"

I ran both
sudo pip install asprise_ocr_sdk_python_api
pip install asprise_ocr_sdk_python_api
Got message
"Requirement already satisfied: asprise_ocr_sdk_python_api in /Users/myid/miniconda3/envs/competition/lib/python3.5/site-packages"
But when I ran asprise_ocr to test:
Got the following error:
Traceback (most recent call last):
File "/Users/myuser/miniconda3/envs/competition/bin/asprise_ocr", line 7, in <module>
from asprise_ocr_api.ocr_app import run_ocr_app
File "/Users/myuser/miniconda3/envs/competition/lib/python3.5/site-packages/asprise_ocr_api/__init__.py", line 1, in <module>
from ocr import *
ImportError: No module named 'ocr'
The asprise_ocr_api module doesn't do submodule imports correctly in Python 3.
For example init.py contains from ocr import *. For a sub-module in Python 3 that should be from .ocr import *. Idem for from ocr_app import OcrApp, run_ocr_app. That should be from .ocr_app import OcrApp, run_ocr_app.
After making these changes in all files it imports correctly.
i've tried:
import ocr
same error:
ModuleNotFoundError: No module named 'ocr'
i am using python 3

Categories

Resources