TypeError json python3 requests unexpected keyword

Bug #1449211 reported by FancyFane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
requests (Ubuntu)
New
Undecided
Unassigned

Bug Description

The issue is with python3-requests having a type error when using json=json in a class definition.

System Information:

# lsb_release -rd
Description: Ubuntu 14.04.2 LTS
Release: 14.04

# apt-cache policy python3-requests
python3-requests:
  Installed: 2.2.1-1ubuntu0.2
  Candidate: 2.2.1-1ubuntu0.2
  Version table:
 *** 2.2.1-1ubuntu0.2 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2.2.1-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

The class that is calling it has the following configuration:

def api_post(endpoint, headers=None, json=None, timeout=5):
    response = requests.post(endpoint, headers=headers, json=json, timeout=5)
    if response.ok:
        return response
    else:
        error_handler(response)

The following error is reported when running my program:

  File "/usr/lib/python3/dist-packages/requests/api.py", line 44, in request
    return session.request(method=method, url=url, **kwargs)
TypeError: request() got an unexpected keyword argument 'json'

This is resolved by removing the ubuntu package, and installing the python3-requests module from github. I believe that if the code is updated from github for the ubuntu package this could be resolved.

=== Removing ===
# apt-get remove python3-requests
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libexpat1-dev libpython3-dev libpython3.4 libpython3.4-dev python3-chardet
  python3-colorama python3-dev python3-distlib python3-html5lib
  python3-pkg-resources python3-setuptools python3-six python3-urllib3
  python3-wheel python3.4-dev
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  python3-requests
0 upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
After this operation, 212 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 60331 files and directories currently installed.)
Removing python3-requests (2.2.1-1ubuntu0.2) ...

=== Installing from Source ===
# git clone https://github.com/kennethreitz/requests.git
Cloning into 'requests'...
remote: Counting objects: 15276, done.
remote: Compressing objects: 100% (63/63), done.
remote: Total 15276 (delta 36), reused 0 (delta 0), pack-reused 15213
Receiving objects: 100% (15276/15276), 6.33 MiB | 2.65 MiB/s, done.
Resolving deltas: 100% (8607/8607), done.
Checking connectivity... done.

# cd requests/

~/requests# python3 setup.py install

running install
Checking .pth file support in /usr/local/lib/python3.4/dist-packages/
/usr/bin/python3 -E -c pass
TEST PASSED: /usr/local/lib/python3.4/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
creating requests.egg-info
writing top-level names to requests.egg-info/top_level.txt
writing requirements to requests.egg-info/requires.txt
writing requests.egg-info/PKG-INFO
writing dependency_links to requests.egg-info/dependency_links.txt
writing manifest file 'requests.egg-info/SOURCES.txt'
reading manifest file 'requests.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'requests.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/requests
copying requests/__init__.py -> build/lib/requests
copying requests/structures.py -> build/lib/requests
copying requests/sessions.py -> build/lib/requests
copying requests/exceptions.py -> build/lib/requests
copying requests/adapters.py -> build/lib/requests
copying requests/hooks.py -> build/lib/requests
copying requests/models.py -> build/lib/requests
copying requests/certs.py -> build/lib/requests
copying requests/status_codes.py -> build/lib/requests
copying requests/auth.py -> build/lib/requests
copying requests/api.py -> build/lib/requests
copying requests/utils.py -> build/lib/requests
copying requests/cookies.py -> build/lib/requests
copying requests/compat.py -> build/lib/requests
creating build/lib/requests/packages
copying requests/packages/__init__.py -> build/lib/requests/packages
creating build/lib/requests/packages/chardet
copying requests/packages/chardet/__init__.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/mbcssm.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/euctwfreq.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/langcyrillicmodel.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/hebrewprober.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/mbcharsetprober.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/langbulgarianmodel.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/langgreekmodel.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/big5freq.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/sjisprober.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/latin1prober.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/charsetgroupprober.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/big5prober.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/escsm.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/universaldetector.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/charsetprober.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/jpcntx.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/mbcsgroupprober.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/chardistribution.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/constants.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/chardetect.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/cp949prober.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/sbcharsetprober.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/langthaimodel.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/langhebrewmodel.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/utf8prober.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/gb2312freq.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/jisfreq.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/euckrfreq.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/eucjpprober.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/euctwprober.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/gb2312prober.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/euckrprober.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/sbcsgroupprober.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/escprober.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/codingstatemachine.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/compat.py -> build/lib/requests/packages/chardet
copying requests/packages/chardet/langhungarianmodel.py -> build/lib/requests/packages/chardet
creating build/lib/requests/packages/urllib3
copying requests/packages/urllib3/filepost.py -> build/lib/requests/packages/urllib3
copying requests/packages/urllib3/__init__.py -> build/lib/requests/packages/urllib3
copying requests/packages/urllib3/exceptions.py -> build/lib/requests/packages/urllib3
copying requests/packages/urllib3/connection.py -> build/lib/requests/packages/urllib3
copying requests/packages/urllib3/_collections.py -> build/lib/requests/packages/urllib3
copying requests/packages/urllib3/poolmanager.py -> build/lib/requests/packages/urllib3
copying requests/packages/urllib3/request.py -> build/lib/requests/packages/urllib3
copying requests/packages/urllib3/response.py -> build/lib/requests/packages/urllib3
copying requests/packages/urllib3/connectionpool.py -> build/lib/requests/packages/urllib3
copying requests/packages/urllib3/fields.py -> build/lib/requests/packages/urllib3
creating build/lib/requests/packages/urllib3/packages
copying requests/packages/urllib3/packages/ordered_dict.py -> build/lib/requests/packages/urllib3/packages
copying requests/packages/urllib3/packages/__init__.py -> build/lib/requests/packages/urllib3/packages
copying requests/packages/urllib3/packages/six.py -> build/lib/requests/packages/urllib3/packages
creating build/lib/requests/packages/urllib3/contrib
copying requests/packages/urllib3/contrib/__init__.py -> build/lib/requests/packages/urllib3/contrib
copying requests/packages/urllib3/contrib/ntlmpool.py -> build/lib/requests/packages/urllib3/contrib
copying requests/packages/urllib3/contrib/pyopenssl.py -> build/lib/requests/packages/urllib3/contrib
creating build/lib/requests/packages/urllib3/util
copying requests/packages/urllib3/util/retry.py -> build/lib/requests/packages/urllib3/util
copying requests/packages/urllib3/util/url.py -> build/lib/requests/packages/urllib3/util
copying requests/packages/urllib3/util/__init__.py -> build/lib/requests/packages/urllib3/util
copying requests/packages/urllib3/util/connection.py -> build/lib/requests/packages/urllib3/util
copying requests/packages/urllib3/util/ssl_.py -> build/lib/requests/packages/urllib3/util
copying requests/packages/urllib3/util/request.py -> build/lib/requests/packages/urllib3/util
copying requests/packages/urllib3/util/timeout.py -> build/lib/requests/packages/urllib3/util
copying requests/packages/urllib3/util/response.py -> build/lib/requests/packages/urllib3/util
creating build/lib/requests/packages/urllib3/packages/ssl_match_hostname
copying requests/packages/urllib3/packages/ssl_match_hostname/__init__.py -> build/lib/requests/packages/urllib3/packages/ssl_match_hostname
copying requests/packages/urllib3/packages/ssl_match_hostname/_implementation.py -> build/lib/requests/packages/urllib3/packages/ssl_match_hostname
copying requests/cacert.pem -> build/lib/requests
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/requests
copying build/lib/requests/__init__.py -> build/bdist.linux-x86_64/egg/requests
copying build/lib/requests/structures.py -> build/bdist.linux-x86_64/egg/requests
copying build/lib/requests/sessions.py -> build/bdist.linux-x86_64/egg/requests
copying build/lib/requests/exceptions.py -> build/bdist.linux-x86_64/egg/requests
copying build/lib/requests/adapters.py -> build/bdist.linux-x86_64/egg/requests
copying build/lib/requests/hooks.py -> build/bdist.linux-x86_64/egg/requests
creating build/bdist.linux-x86_64/egg/requests/packages
copying build/lib/requests/packages/__init__.py -> build/bdist.linux-x86_64/egg/requests/packages
creating build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/__init__.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/mbcssm.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/euctwfreq.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/langcyrillicmodel.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/hebrewprober.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/mbcharsetprober.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/langbulgarianmodel.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/langgreekmodel.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/big5freq.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/sjisprober.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/latin1prober.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/charsetgroupprober.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/big5prober.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/escsm.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/universaldetector.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/charsetprober.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/jpcntx.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/mbcsgroupprober.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/chardistribution.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/constants.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/chardetect.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/cp949prober.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/sbcharsetprober.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/langthaimodel.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/langhebrewmodel.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/utf8prober.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/gb2312freq.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/jisfreq.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/euckrfreq.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/eucjpprober.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/euctwprober.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/gb2312prober.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/euckrprober.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/sbcsgroupprober.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/escprober.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/codingstatemachine.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/compat.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
copying build/lib/requests/packages/chardet/langhungarianmodel.py -> build/bdist.linux-x86_64/egg/requests/packages/chardet
creating build/bdist.linux-x86_64/egg/requests/packages/urllib3
copying build/lib/requests/packages/urllib3/filepost.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3
copying build/lib/requests/packages/urllib3/__init__.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3
copying build/lib/requests/packages/urllib3/exceptions.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3
copying build/lib/requests/packages/urllib3/connection.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3
copying build/lib/requests/packages/urllib3/_collections.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3
creating build/bdist.linux-x86_64/egg/requests/packages/urllib3/contrib
copying build/lib/requests/packages/urllib3/contrib/__init__.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3/contrib
copying build/lib/requests/packages/urllib3/contrib/ntlmpool.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3/contrib
copying build/lib/requests/packages/urllib3/contrib/pyopenssl.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3/contrib
copying build/lib/requests/packages/urllib3/poolmanager.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3
copying build/lib/requests/packages/urllib3/request.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3
creating build/bdist.linux-x86_64/egg/requests/packages/urllib3/packages
copying build/lib/requests/packages/urllib3/packages/ordered_dict.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3/packages
copying build/lib/requests/packages/urllib3/packages/__init__.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3/packages
creating build/bdist.linux-x86_64/egg/requests/packages/urllib3/packages/ssl_match_hostname
copying build/lib/requests/packages/urllib3/packages/ssl_match_hostname/__init__.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3/packages/ssl_match_hostname
copying build/lib/requests/packages/urllib3/packages/ssl_match_hostname/_implementation.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3/packages/ssl_match_hostname
copying build/lib/requests/packages/urllib3/packages/six.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3/packages
creating build/bdist.linux-x86_64/egg/requests/packages/urllib3/util
copying build/lib/requests/packages/urllib3/util/retry.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3/util
copying build/lib/requests/packages/urllib3/util/url.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3/util
copying build/lib/requests/packages/urllib3/util/__init__.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3/util
copying build/lib/requests/packages/urllib3/util/connection.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3/util
copying build/lib/requests/packages/urllib3/util/ssl_.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3/util
copying build/lib/requests/packages/urllib3/util/request.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3/util
copying build/lib/requests/packages/urllib3/util/timeout.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3/util
copying build/lib/requests/packages/urllib3/util/response.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3/util
copying build/lib/requests/packages/urllib3/response.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3
copying build/lib/requests/packages/urllib3/connectionpool.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3
copying build/lib/requests/packages/urllib3/fields.py -> build/bdist.linux-x86_64/egg/requests/packages/urllib3
copying build/lib/requests/models.py -> build/bdist.linux-x86_64/egg/requests
copying build/lib/requests/certs.py -> build/bdist.linux-x86_64/egg/requests
copying build/lib/requests/status_codes.py -> build/bdist.linux-x86_64/egg/requests
copying build/lib/requests/auth.py -> build/bdist.linux-x86_64/egg/requests
copying build/lib/requests/api.py -> build/bdist.linux-x86_64/egg/requests
copying build/lib/requests/cacert.pem -> build/bdist.linux-x86_64/egg/requests
copying build/lib/requests/utils.py -> build/bdist.linux-x86_64/egg/requests
copying build/lib/requests/cookies.py -> build/bdist.linux-x86_64/egg/requests
copying build/lib/requests/compat.py -> build/bdist.linux-x86_64/egg/requests
byte-compiling build/bdist.linux-x86_64/egg/requests/__init__.py to __init__.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/structures.py to structures.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/sessions.py to sessions.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/exceptions.py to exceptions.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/adapters.py to adapters.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/hooks.py to hooks.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/__init__.py to __init__.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/__init__.py to __init__.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/mbcssm.py to mbcssm.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/euctwfreq.py to euctwfreq.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/langcyrillicmodel.py to langcyrillicmodel.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/hebrewprober.py to hebrewprober.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/mbcharsetprober.py to mbcharsetprober.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/langbulgarianmodel.py to langbulgarianmodel.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/langgreekmodel.py to langgreekmodel.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/big5freq.py to big5freq.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/sjisprober.py to sjisprober.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/latin1prober.py to latin1prober.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/charsetgroupprober.py to charsetgroupprober.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/big5prober.py to big5prober.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/escsm.py to escsm.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/universaldetector.py to universaldetector.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/charsetprober.py to charsetprober.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/jpcntx.py to jpcntx.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/mbcsgroupprober.py to mbcsgroupprober.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/chardistribution.py to chardistribution.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/constants.py to constants.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/chardetect.py to chardetect.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/cp949prober.py to cp949prober.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/sbcharsetprober.py to sbcharsetprober.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/langthaimodel.py to langthaimodel.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/langhebrewmodel.py to langhebrewmodel.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/utf8prober.py to utf8prober.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/gb2312freq.py to gb2312freq.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/jisfreq.py to jisfreq.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/euckrfreq.py to euckrfreq.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/eucjpprober.py to eucjpprober.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/euctwprober.py to euctwprober.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/gb2312prober.py to gb2312prober.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/euckrprober.py to euckrprober.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/sbcsgroupprober.py to sbcsgroupprober.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/escprober.py to escprober.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/codingstatemachine.py to codingstatemachine.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/compat.py to compat.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/chardet/langhungarianmodel.py to langhungarianmodel.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/filepost.py to filepost.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/__init__.py to __init__.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/exceptions.py to exceptions.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/connection.py to connection.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/_collections.py to _collections.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/contrib/__init__.py to __init__.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/contrib/ntlmpool.py to ntlmpool.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/contrib/pyopenssl.py to pyopenssl.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/poolmanager.py to poolmanager.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/request.py to request.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/packages/ordered_dict.py to ordered_dict.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/packages/__init__.py to __init__.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/packages/ssl_match_hostname/__init__.py to __init__.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/packages/ssl_match_hostname/_implementation.py to _implementation.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/packages/six.py to six.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/util/retry.py to retry.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/util/url.py to url.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/util/__init__.py to __init__.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/util/connection.py to connection.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/util/ssl_.py to ssl_.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/util/request.py to request.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/util/timeout.py to timeout.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/util/response.py to response.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/response.py to response.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/connectionpool.py to connectionpool.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/packages/urllib3/fields.py to fields.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/models.py to models.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/certs.py to certs.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/status_codes.py to status_codes.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/auth.py to auth.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/api.py to api.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/utils.py to utils.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/cookies.py to cookies.cpython-34.pyc
byte-compiling build/bdist.linux-x86_64/egg/requests/compat.py to compat.cpython-34.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying requests.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying requests.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying requests.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying requests.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying requests.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying requests.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
creating dist
creating 'dist/requests-2.6.2-py3.4.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing requests-2.6.2-py3.4.egg
creating /usr/local/lib/python3.4/dist-packages/requests-2.6.2-py3.4.egg
Extracting requests-2.6.2-py3.4.egg to /usr/local/lib/python3.4/dist-packages
Adding requests 2.6.2 to easy-install.pth file

Installed /usr/local/lib/python3.4/dist-packages/requests-2.6.2-py3.4.egg
Processing dependencies for requests==2.6.2
Finished processing dependencies for requests==2.6.2

Now that this is complete my program can run (ignoring the security issues) showing the username input.

==== Running the Program ===

# my-program
/usr/local/lib/python3.4/dist-packages/requests-2.6.2-py3.4.egg/requests/packages/urllib3/connection.py:251: SecurityWarning: Certificate has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)
  SecurityWarning
Username: ^C
Aborted!

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.