Articles in this section

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

kb: bug kb: fixed Plesk Migrator

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

Product issue:

  • #PMT-5363 "Site import no longer fails with the “No module named /’urllib2/’” error."
    Fixed in:

Resolution

Please consider updating your server:

Workaround

If update is not possible for some reason you may try the following

workaround

Update Plesk to the latest release.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.