Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named pathlib #42

Open
kalligator opened this issue Mar 21, 2020 · 1 comment
Open

ImportError: No module named pathlib #42

kalligator opened this issue Mar 21, 2020 · 1 comment

Comments

@kalligator
Copy link

In Ubuntu 18.04
pip install archivenow
...
Successfully installed Jinja2-2.11.1 MarkupSafe-1.1.1 Werkzeug-1.0.0 archivenow-2019.7.27.2.35.46 certifi-2019.11.28 chardet-3.0.4 click-7.1.1 flask-1.1.1 idna-2.9 itsdangerous-1.1.0 requests-2.23.0 urllib3-1.25.8
I tried running a test with
archivenow --all https://nypost.com/
The response was:

Traceback (most recent call last):
  File "/home/myusername/.local/bin/archivenow", line 7, in <module>
    from archivenow.archivenow import args_parser
  File "/home/myusername/.local/lib/python2.7/site-packages/archivenow/archivenow.py", line 13, in <module>
    from pathlib import Path
ImportError: No module named pathlib
@machawk1
Copy link
Member

machawk1 commented Aug 7, 2020

@kalligator pathlib is built into Python 3 but is not present by default in Python 2. Your trace shows that you are using Python 2.7.

@maturban You may want to specify that archivenow requires Python 3 or adapt the code (e.g., using six) to account for those that are trying to use the tool with Python 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants