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

AttributeError: module 'httpcore' has no attribute 'NetworkBackend' #50

Closed
sandippshah opened this issue Jul 30, 2023 · 3 comments
Closed

Comments

@sandippshah
Copy link

Instance allocated in nomad
Instance is starting
Instance is unhealthy
Traceback (most recent call last):
File "/workspace/bot.py", line 6, in
from database.ia_filterdb import Media
File "/workspace/database/ia_filterdb.py", line 6, in
from pymongo.errors import DuplicateKeyError
File "/app/.heroku/python/lib/python3.10/site-packages/pymongo/init.py", line 116, in
from pymongo.mongo_client import MongoClient
File "/app/.heroku/python/lib/python3.10/site-packages/pymongo/mongo_client.py", line 46, in
from pymongo import (common,
File "/app/.heroku/python/lib/python3.10/site-packages/pymongo/uri_parser.py", line 32, in
from pymongo.srv_resolver import _HAVE_DNSPYTHON, _SrvResolver
File "/app/.heroku/python/lib/python3.10/site-packages/pymongo/srv_resolver.py", line 18, in
from dns import resolver
File "/app/.heroku/python/lib/python3.10/site-packages/dns/resolver.py", line 30, in
import dns._ddr
File "/app/.heroku/python/lib/python3.10/site-packages/dns/_ddr.py", line 12, in
import dns.nameserver
File "/app/.heroku/python/lib/python3.10/site-packages/dns/nameserver.py", line 5, in
import dns.asyncquery
File "/app/.heroku/python/lib/python3.10/site-packages/dns/asyncquery.py", line 38, in
from dns.query import (
File "/app/.heroku/python/lib/python3.10/site-packages/dns/query.py", line 67, in
_CoreNetworkBackend = httpcore.NetworkBackend
AttributeError: module 'httpcore' has no attribute 'NetworkBackend'
Instance is unhealthy
Instance is unhealthy
Instance is unhealthy
Traceback (most recent call last):
File "/workspace/bot.py", line 6, in
from database.ia_filterdb import Media
File "/workspace/database/ia_filterdb.py", line 6, in
from pymongo.errors import DuplicateKeyError
File "/app/.heroku/python/lib/python3.10/site-packages/pymongo/init.py", line 116, in
from pymongo.mongo_client import MongoClient
File "/app/.heroku/python/lib/python3.10/site-packages/pymongo/mongo_client.py", line 46, in
from pymongo import (common,
File "/app/.heroku/python/lib/python3.10/site-packages/pymongo/uri_parser.py", line 32, in
from pymongo.srv_resolver import _HAVE_DNSPYTHON, _SrvResolver
File "/app/.heroku/python/lib/python3.10/site-packages/pymongo/srv_resolver.py", line 18, in
from dns import resolver
File "/app/.heroku/python/lib/python3.10/site-packages/dns/resolver.py", line 30, in
import dns._ddr
File "/app/.heroku/python/lib/python3.10/site-packages/dns/_ddr.py", line 12, in
import dns.nameserver
File "/app/.heroku/python/lib/python3.10/site-packages/dns/nameserver.py", line 5, in
import dns.asyncquery
File "/app/.heroku/python/lib/python3.10/site-packages/dns/asyncquery.py", line 38, in
from dns.query import (
File "/app/.heroku/python/lib/python3.10/site-packages/dns/query.py", line 67, in
_CoreNetworkBackend = httpcore.NetworkBackend
AttributeError: module 'httpcore' has no attribute 'NetworkBackend'
Instance terminated in nomad
Instance allocated in nomad
Instance is starting

@Mrblackgodd
Copy link

How to solve this??

@sandippshah
Copy link
Author

dnspython==2.3.0

Add thiis in requirements.txt
Solved problem 😁

@MrMKN
Copy link
Owner

MrMKN commented Aug 12, 2023

Fixed

@MrMKN MrMKN closed this as completed Aug 12, 2023
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