l3v11 / SearchX

The Ultimate Telegram Bot for Google Drive
https://t.me/l3v11
GNU General Public License v3.0
195 stars 284 forks source link

error when running gen_token.py #21

Closed mohitjoshi155 closed 2 years ago

mohitjoshi155 commented 2 years ago

Traceback (most recent call last): File "/home/.local/lib/python3.7/site-packages/google/auth/transport/requests.py", line 26, in import requests File "/usr/lib/python3/dist-packages/requests/init.py", line 43, in import urllib3 File "/usr/lib/python3/dist-packages/urllib3/init.py", line 8, in from .connectionpool import ( File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 28, in from six.moves import queue File "/usr/lib/python3/dist-packages/six.py", line 92, in get result = self._resolve() File "/usr/lib/python3/dist-packages/six.py", line 115, in _resolve return _import_module(self.mod) File "/usr/lib/python3/dist-packages/six.py", line 82, in _import_module import(name) File "/usr/lib/python3.7/queue.py", line 3, in import threading File "/usr/lib/python3.7/threading.py", line 8, in from traceback import format_exc as _format_exc ImportError: cannot import name 'format_exc' from 'traceback' (/usr/lib/python3.7/traceback.py) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "gen_token.py", line 4, in from google.auth.transport.requests import Request File "/home/.local/lib/python3.7/site-packages/google/auth/init.py", line 17, in import logging File "/usr/lib/python3.7/logging/init.py", line 26, in import sys, os, time, io, traceback, warnings, weakref, collections.abc File "/usr/lib/python3.7/traceback.py", line 5, in import linecache File "/usr/lib/python3.7/linecache.py", line 11, in import tokenize File "/usr/lib/python3.7/tokenize.py", line 35, in from token import * File "/gen_token.py", line 4, in from google.auth.transport.requests import Request File "/home/.local/lib/python3.7/site-packages/google/auth/transport/requests.py", line 35, in caught_exc, File "", line 3, in raise_from ImportError: The requests library is not installed, please install the requests package to use the requests transport.

i already have requests installed with pip3 install requests

l3v11 commented 2 years ago

@mohitjoshi155 I've run the script on my system. It's working perfectly. Issue is from your system, check again.