Ask coding questions

← Back to all posts
exit status 1
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 <module>
from telegram.ext import Updater, MessageHandler, Filters
ModuleNotFoundError: No module named 'telegram.ext'
exit status 1

Thank you!

Jonathan Lok

Voters
RedwanMahamud
JonathanLok
Comments
hotnewtop
CodeLongAndPros

Open the gui and install telegram

SixBeeps

Try manually installing telegram through pip

JonathanLok

 python main.py
Traceback (most recent call last):
File "main.py", line 5, in <module>
from google.cloud import language
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/google/cloud/language.py", line
17, in <module>
from google.cloud.languagev1 import LanguageServiceClient
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/google/cloud/language_v1/__init

_.py", line 17, in <module>
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 <module>
from google.api import http_pb2
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/google/api/http_pb2.py", line 35
, in <module>
_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

SixBeeps

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

JonathanLok

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

JonathanLok

@JonathanLok
 python main.py
Traceback (most recent call last): File "main.py", line 5, in <module>
from google.cloud import language
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/google/cloud/language.py", line 17, in <module>
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 <module>
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 <module>
from google.api import http_pb2
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/google/api/http_pb2.py", line 35
, in <module>
_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. :(

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.