Articles in this section

Site Import fails with ModuleNotFoundError: No module named 'urllib2'

kb: bug Migration Migration

Symptoms

  • Site Import fails with ModuleNotFoundError: No module named 'urllib2'

    CONFIG_TEXT: command: su jdoe --shell /bin/sh -c '/usr/local/psa/admin/plib/modules/site-import/backend/lib/python/parallels/core/extras/web-stream-downloader/web-stream-downloader --config-file -'
    exit code: 1
    stdout:
    stderr: Traceback (most recent call last):
    File "/usr/local/psa/admin/plib/modules/site-import/backend/lib/python/parallels/core/extras/web-stream-downloader/web-stream-downloader", line 3, in [module]
    from web_stream_downloader.main import main
    File "/opt/psa/admin/plib/modules/site-import/backend/lib/python/parallels/core/extras/web-stream-downloader/web_stream_downloader/main.py", line 4, in [module]
    import urllib2
    ModuleNotFoundError: No module named 'urllib2'

Cause

Site Import extension bug: #EXTPLESK-5726

Resolution

Until the bug is resolved, avoid using this beta feature during the Site Import session setup:

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.