Skip to content
Sign upLog in
← Back to Community

exit status 1

Profile icon
JonathanLok

Hi everyone!
I am getting this message. Just wondering how can i solve it. All help is appreciated.

 python main.py
Traceback (most recent call last):
File "main.py", line 4, in
from telegram.ext import Updater, MessageHandler, Filters
ModuleNotFoundError: No module named 'telegram.ext'
exit status 1

Thank you!

Jonathan Lok

Voters
Profile icon
DbomDev
Profile icon
RedwanMahamud
Profile icon
JonathanLok
Comments
hotnewtop
Profile icon
CodeLongAndPros

Open the gui and install telegram

Profile icon
SixBeeps

Try manually installing telegram through pip

Profile icon
JonathanLok

 python main.py
Traceback (most recent call last):
File "main.py", line 5, in
from google.cloud import language
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/google/cloud/language.py", line
17, in
from google.cloud.language_v1 import LanguageServiceClient
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/google/cloud/language_v1/_init
_.py", line 17, in
from google.cloud.language_v1 import types
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/google/cloud/language_v1/types.p
y", line 18, in
from google.api import http_pb2
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/google/api/http_pb2.py", line 35
, in
_descriptor.FieldDescriptor(
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/google/protobuf/descriptor.py",
line 530, in new
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors should not be created directly, but only retrieved from their parent.
exit status 1
The error has changed :(


@SixBeeps

Profile icon
SixBeeps

@JonathanLok
That looks like a bug on Google's side. Maybe try upgrading/downgrading the package?

Profile icon
JonathanLok

i have done that :( no changes to the error [email protected]

Profile icon
JonathanLok

@JonathanLok

 python main.py
Traceback (most recent call last): File "main.py", line 5, in
from google.cloud import language
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/google/cloud/language.py", line 17, in
from google.cloud.language_v1 import LanguageServiceClient
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/google/cloud/language_v1/init.py", line 17, in
from google.cloud.language_v1 import types
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/google/cloud/language_v1/types.p
y", line 18, in
from google.api import http_pb2
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/google/api/http_pb2.py", line 35
, in
_descriptor.FieldDescriptor(
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/google/protobuf/descriptor.py",
line 530, in new
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors should not be created directly, but only retrieved from their parent.
exit status 1
same error. :(

Profile icon
SixBeeps

@JonathanLok
Yeah, it's an error with the package. I don't know enough about whatever the heck you're using, so I can't really say much about the error except it's coming from there.