[GH-ISSUE #111] ImportError: No module named 'requests' #78

Closed
opened 2026-03-01 14:40:26 +03:00 by kerem · 1 comment
Owner

Originally created by @sbrl on GitHub (Oct 31, 2018).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/111

I've just downloaded Bookmark Archiver to take a look, but I'm getting a strange error:

Traceback (most recent call last):
  File "./archive", line 12, in <module>
    from parse import parse_links
  File "/mnt/elfstone/srv/bookmark-archiver/archiver/parse.py", line 26, in <module>
    from util import (
  File "/mnt/elfstone/srv/bookmark-archiver/archiver/util.py", line 6, in <module>
    import requests
ImportError: No module named 'requests'

Strange. If I try to install requests via pip (sudo pip install requests), I get this:

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: requests in /usr/lib/python2.7/dist-packages (2.12.4)
Originally created by @sbrl on GitHub (Oct 31, 2018). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/111 I've just downloaded _Bookmark Archiver_ to take a look, but I'm getting a strange error: ``` Traceback (most recent call last): File "./archive", line 12, in <module> from parse import parse_links File "/mnt/elfstone/srv/bookmark-archiver/archiver/parse.py", line 26, in <module> from util import ( File "/mnt/elfstone/srv/bookmark-archiver/archiver/util.py", line 6, in <module> import requests ImportError: No module named 'requests' ``` Strange. If I try to install `requests` via pip (`sudo pip install requests`), I get this: ``` Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: requests in /usr/lib/python2.7/dist-packages (2.12.4) ````
kerem closed this issue 2026-03-01 14:40:26 +03:00
Author
Owner

@sbrl commented on GitHub (Oct 31, 2018):

Upon further investigation, I found a solution!

sudo apt install python3-pip
sudo pip3 install requests

It looks like pip for python 3 and pip for python 2 are 2 different things.

Really. By now you should have thought that the Raspberry Pi would default to Python 3.........

<!-- gh-comment-id:434840274 --> @sbrl commented on GitHub (Oct 31, 2018): Upon further investigation, I found a solution! ``` sudo apt install python3-pip sudo pip3 install requests ``` It looks like `pip` for python 3 and pip for python 2 are 2 different things. Really. By now you should have thought that the Raspberry Pi would default to Python 3.........
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#78
No description provided.