Start a new topic

ModuleNotFoundError: No module named 'scrapy_zyte_smartproxy' while running in Zyte

File "/usr/local/lib/python3.8/site-packages/scrapy/middleware.py", line 34, in from_settings
    mwcls = load_object(clspath)
  File "/usr/local/lib/python3.8/site-packages/scrapy/utils/misc.py", line 50, in load_object
    mod = import_module(module)
  File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'scrapy_zyte_smartproxy'
1 Comment

Hi,


You would have to use the requirement.txt file to install the python dependencies. Please add the below line in the requirement.txt file so that the module will be installed on the Scrapy cloud.

scrapy-zyte-smartproxy==2.2.0

For more information, please refer to https://support.zyte.com/support/solutions/articles/22000200400

Login to post a comment