python3-requests installed, import requests fails anyway

Bug #1391554 reported by ellie
2
Affects Status Importance Assigned to Milestone
requests (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

It appears the requests package for python3 has some sort of issue:

root@blubber:/home/jennabot/jennabot# apt-get install python3
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3 is already the newest version.
python3 set to manually installed.
The following packages were automatically installed and are no longer required:
  libnss3-1d linux-headers-3.13.0-36 linux-headers-3.13.0-36-generic
  linux-headers-3.13.0-37 linux-headers-3.13.0-37-generic
  linux-image-3.13.0-36-generic linux-image-3.13.0-37-generic
  linux-image-extra-3.13.0-36-generic linux-image-extra-3.13.0-37-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
root@blubber:/home/jennabot/jennabot# python3 -c "import requests"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named 'requests'
root@blubber:/home/jennabot/jennabot#

The python2 variant works fine:

root@blubber:/home/jennabot/jennabot# python2.7 -c "import requests"
root@blubber:/home/jennabot/jennabot#

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: python3-requests 2.2.1-1ubuntu0.1
ProcVersionSignature: Ubuntu 3.13.0-35.62-generic 3.13.11.6
Uname: Linux 3.13.0-35-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.5
Architecture: amd64
Date: Tue Nov 11 16:31:00 2014
InstallationDate: Installed on 2012-04-11 (944 days ago)
InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Beta amd64 (20120327)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: requests
UpgradeStatus: Upgraded to trusty on 2014-08-29 (73 days ago)

Revision history for this message
ellie (et1234567) wrote :
Revision history for this message
Daniele Tricoli (eriol.v) wrote :

Hello Jonas,
thanks for the report.
Can you please provide more info?

Can you provide the output of these commands?

   - aptitude show python3-requests | grep State
   - dpkg -L python3-requests

Many thanks!

Revision history for this message
ellie (et1234567) wrote :

root@blubber:/home/jennabot/jennabot# aptitude show python3-requests | grep State
State: installed
root@blubber:/home/jennabot/jennabot# dpkg -L python3-requests
/.
/usr
/usr/lib
/usr/lib/python3
/usr/lib/python3/dist-packages
/usr/lib/python3/dist-packages/requests-2.2.1.egg-info
/usr/lib/python3/dist-packages/requests
/usr/lib/python3/dist-packages/requests/models.py
/usr/lib/python3/dist-packages/requests/exceptions.py
/usr/lib/python3/dist-packages/requests/sessions.py
/usr/lib/python3/dist-packages/requests/auth.py
/usr/lib/python3/dist-packages/requests/hooks.py
/usr/lib/python3/dist-packages/requests/certs.py
/usr/lib/python3/dist-packages/requests/api.py
/usr/lib/python3/dist-packages/requests/status_codes.py
/usr/lib/python3/dist-packages/requests/utils.py
/usr/lib/python3/dist-packages/requests/adapters.py
/usr/lib/python3/dist-packages/requests/cookies.py
/usr/lib/python3/dist-packages/requests/__init__.py
/usr/lib/python3/dist-packages/requests/structures.py
/usr/lib/python3/dist-packages/requests/compat.py
/usr/share
/usr/share/doc
/usr/share/doc/python3-requests
/usr/share/doc/python3-requests/copyright
/usr/share/doc/python3-requests/changelog.Debian.gz
root@blubber:/home/jennabot/jennabot#

Revision history for this message
ellie (et1234567) wrote :

Ugh I had a manually installed python3.4 in /usr/local/bin which I forgot about... sorry!

Revision history for this message
Daniele Tricoli (eriol.v) wrote :

Hello Jonas, don't worry! :)
I'm glad you solved your issue!
Since this was not a bug on the packaged version can you close this? I'm not so familiar with the Ubuntu Policies, so I don't know if closing with status invalid is the right thing to do.

Cheers!

Barry Warsaw (barry)
Changed in requests (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.