Python Pipfile 's package/dependencies is not installed

Posted almost 4 years ago by Canh Toan Nguyen

Post a topic
Un Answered
C
Canh Toan Nguyen

Hello, 


I've been following this guide Deployment with Python pipenv, but keep getting this error, as the dependencies in my Pipfile weren't installed at Zyte Cloud.


Fyi: I can run it locally on my PC.


Error

    raise ConfigurationError('The "dnspython" module must be ' pymongo.errors.ConfigurationError: The "dnspython" module must be installed to use mongodb+srv:// URIs

 Scrapyinghub.yml

 

projects:
  default: 12345
requirements:
  file: Pipfile
stacks:
  default: scrapy:1.6-py3

 

Pipfile


 

[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
black = "*"
flake8 = "*"
flake8-blind-except = "*"
flake8-bugbear = "*"
flake8-builtins = "*"
flake8-debugger = "*"
flake8-print = "*"
flake8-quotes = "*"
flake8-variables-names = "*"
pep8-naming = "*"
shub = "*"

[packages]
scrapy = "*"
w3lib = "*"
pymongo = "*"
sendgrid = "*"
python-dotenv = "*"
fake-useragent = "*"
money-parser = "*"
scrapy-splash = "*"

[requires]
python_version = "3.7"

[scripts]
lint = "flake8 scraper"
format = "black scraper --line-length 120"

[pipenv]
allow_prereleases = true

 

0 Votes


0 Comments

Login to post a comment