rajatomar788 / pywebcopy

Locally saves webpages to your hard disk with images, css, js & links as is.
https://rajatomar788.github.io/pywebcopy/
Other
531 stars 106 forks source link

Python 2 UserDict #25

Closed cbdwtv closed 4 years ago

cbdwtv commented 4 years ago

For python 2 UserDict is in its own module UserDict.UserDict so an error occurs. `

import pywebcopy Traceback (most recent call last): File "", line 1, in File "C:\Python-2.7.11_64\lib\site-packages\pywebcopy__init__.py", line 49, in from .configs import config, SESSION File "C:\Python-2.7.11_64\lib\site-packages\pywebcopy\configs.py", line 13, in from collections import UserDict ImportError: cannot import name UserDict `

Just wanted to give a heads up in case you wanted to restrict the lib to py3 or update for py2 support. Thanks!

rajatomar788 commented 4 years ago

Okay I didn't knew that. It will be fixed in next update.

On Wed, Jan 8, 2020, 5:22 AM cbdwtv notifications@github.com wrote:

For python 2 UserDict is in its own module UserDict.UserDict so an error occurs.

import pywebcopy Traceback (most recent call last): File "", line 1, in File "C:\Python-2.7.11_64\lib\site-packages\pywebcopy__init__.py", line 49, in

from .configs import config, SESSION File "C:\Python-2.7.11_64\lib\site-packages\pywebcopy\configs.py", line 13, in from collections import UserDict ImportError: cannot import name UserDict

Just wanted to give a heads up in case you wanted to restrict the lib to py3 or update for py2 support. Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rajatomar788/pywebcopy/issues/25?email_source=notifications&email_token=AIGSNTVBUSWMJ44DSVZSY6DQ4UIUBA5CNFSM4KEAVAO2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IET7NKA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIGSNTVB5E5OQO36CMLX3IDQ4UIUBANCNFSM4KEAVAOQ .

rajatomar788 commented 4 years ago

fixed in version 6.2.0! See issue #40 .