Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error #1

Open
sajeeshab opened this issue Jul 27, 2022 · 3 comments
Open

error #1

sajeeshab opened this issue Jul 27, 2022 · 3 comments

Comments

@sajeeshab
Copy link

File "/home/sajeesh/collector/collector.py", line 13, in
import requests
File "/home/sajeesh/.local/lib/python3.10/site-packages/requests/init.py", line 58, in
from . import utils
File "/home/sajeesh/.local/lib/python3.10/site-packages/requests/utils.py", line 26, in
from .compat import parse_http_list as _parse_list_header
File "/home/sajeesh/.local/lib/python3.10/site-packages/requests/compat.py", line 7, in
from .packages import chardet
File "/home/sajeesh/.local/lib/python3.10/site-packages/requests/packages/init.py", line 3, in
from . import urllib3
File "/home/sajeesh/.local/lib/python3.10/site-packages/requests/packages/urllib3/init.py", line 10, in
from .connectionpool import (
File "/home/sajeesh/.local/lib/python3.10/site-packages/requests/packages/urllib3/connectionpool.py", line 38, in
from .response import HTTPResponse
File "/home/sajeesh/.local/lib/python3.10/site-packages/requests/packages/urllib3/response.py", line 9, in
from ._collections import HTTPHeaderDict
File "/home/sajeesh/.local/lib/python3.10/site-packages/requests/packages/urllib3/_collections.py", line 1, in
from collections import Mapping, MutableMapping
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/init.py)

@sajeeshab
Copy link
Author

└─$ pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: requests in /home/sajeesh/.local/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (2.7.0)
ERROR: Could not find a version that satisfies the requirement warnings (from versions: none)
ERROR: No matching distribution found for warnings

@fenexomega
Copy link

You don't need to install any requirements as those libraries are all builtin. Pip won't find then and never will.

Also, inside the plugins folder, create a empty file named __init__.py.

@Jmehta10
Copy link

no bro not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants