<p dir="auto">Summary.</p>
<p dir="auto">Since off the grid I manually installed IDNA 2.8 as a dependant.  When installing requests via the .whl file v2.20.1 version.  It manually tried to download the IDNA 2.7 version.  I manually installed IDNA 2.7 and the install completed correctly.</p>
<p dir="auto">What you expected.</p>
<p dir="auto">To install correctly with IDNA 2.8</p>
<p dir="auto">What happened instead.</p>
<p dir="auto">When installing Requests version IDNA 2.7 will be downloaded.</p>
<h2 dir="auto">System Information</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -m requests.help"><pre class="notranslate"><code class="notranslate">$ python -m requests.help
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
  &quot;chardet&quot;: {
    &quot;version&quot;: &quot;3.0.4&quot;
  },
  &quot;cryptography&quot;: {
    &quot;version&quot;: &quot;&quot;
  },
  &quot;idna&quot;: {
    &quot;version&quot;: &quot;2.7&quot;
  },
  &quot;implementation&quot;: {
    &quot;name&quot;: &quot;CPython&quot;,
    &quot;version&quot;: &quot;3.7.1&quot;
  },
  &quot;platform&quot;: {
    &quot;release&quot;: &quot;2008ServerR2&quot;,
    &quot;system&quot;: &quot;Windows&quot;
  },
  &quot;pyOpenSSL&quot;: {
    &quot;openssl_version&quot;: &quot;&quot;,
    &quot;version&quot;: null
  },
  &quot;requests&quot;: {
    &quot;version&quot;: &quot;2.20.1&quot;
  },
  &quot;system_ssl&quot;: {
    &quot;version&quot;: &quot;1010009f&quot;
  },
  &quot;urllib3&quot;: {
    &quot;version&quot;: &quot;1.24.1&quot;
  },
  &quot;using_pyopenssl&quot;: false
}"><pre class="notranslate"><code class="notranslate">{
  "chardet": {
    "version": "3.0.4"
  },
  "cryptography": {
    "version": ""
  },
  "idna": {
    "version": "2.7"
  },
  "implementation": {
    "name": "CPython",
    "version": "3.7.1"
  },
  "platform": {
    "release": "2008ServerR2",
    "system": "Windows"
  },
  "pyOpenSSL": {
    "openssl_version": "",
    "version": null
  },
  "requests": {
    "version": "2.20.1"
  },
  "system_ssl": {
    "version": "1010009f"
  },
  "urllib3": {
    "version": "1.24.1"
  },
  "using_pyopenssl": false
}
</code></pre></div>
<p dir="auto">This command is only available on Requests v2.16.4 and greater. Otherwise,<br>
please provide some basic information about your system (Python version,<br>
operating system, &amp;c).</p>
<p dir="auto">This error appears since last version (my code works with 2.11, 2.9 etc...)</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" File &quot;C:\Users\vqmg0203\Desktop\app\core\models\database.py&quot;, line 211, in update_infos
   r = self.request_get(self.user_url)
 File &quot;C:\Users\vqmg0203\Desktop\app\core\handlers\http.py&quot;, line 30, in wrapped
   return f(self, *args, **kwargs)
 File &quot;C:\Users\vqmg0203\Desktop\app\core\handlers\http.py&quot;, line 130, in request_get
   allow_redirects=False)
 File &quot;C:\Python27\lib\site-packages\requests\sessions.py&quot;, line 501, in get
   return self.request('GET', url, **kwargs)
 File &quot;C:\Python27\lib\site-packages\requests\sessions.py&quot;, line 474, in request
   prep = self.prepare_request(req)
 File &quot;C:\Python27\lib\site-packages\requests\sessions.py&quot;, line 407, in prepare_request
   hooks=merge_hooks(request.hooks, self.hooks),
 File &quot;C:\Python27\lib\site-packages\requests\models.py&quot;, line 306, in prepare
   self.prepare_auth(auth, url)
 File &quot;C:\Python27\lib\site-packages\requests\models.py&quot;, line 527, in prepare_auth
   r = auth(self)
 File &quot;C:\Python27\lib\site-packages\requests\auth.py&quot;, line 68, in __call__
   r.headers['Authorization'] = _basic_auth_str(self.username, self.password)
 File &quot;C:\Python27\lib\site-packages\requests\auth.py&quot;, line 38, in _basic_auth_str
   b64encode(b':'.join((username, password))).strip()
TypeError: sequence item 1: expected string, NoneType found"><pre class="notranslate"> <span class="pl-v">File</span> <span class="pl-s">"C:\Users<span class="pl-cce">\v</span>qmg0203\Desktop<span class="pl-cce">\a</span>pp\core\models\database.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">211</span>, <span class="pl-s1">in</span> <span class="pl-s1">update_infos</span>
   <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">request_get</span>(<span class="pl-s1">self</span>.<span class="pl-s1">user_url</span>)
 <span class="pl-v">File</span> <span class="pl-s">"C:\Users<span class="pl-cce">\v</span>qmg0203\Desktop<span class="pl-cce">\a</span>pp\core\handlers\http.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">30</span>, <span class="pl-s1">in</span> <span class="pl-s1">wrapped</span>
   <span class="pl-k">return</span> <span class="pl-en">f</span>(<span class="pl-s1">self</span>, <span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>)
 <span class="pl-v">File</span> <span class="pl-s">"C:\Users<span class="pl-cce">\v</span>qmg0203\Desktop<span class="pl-cce">\a</span>pp\core\handlers\http.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">130</span>, <span class="pl-s1">in</span> <span class="pl-s1">request_get</span>
   <span class="pl-s1">allow_redirects</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
 <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests\sessions.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">501</span>, <span class="pl-s1">in</span> <span class="pl-s1">get</span>
   <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-en">request</span>(<span class="pl-s">'GET'</span>, <span class="pl-s1">url</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>)
 <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests\sessions.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">474</span>, <span class="pl-s1">in</span> <span class="pl-s1">request</span>
   <span class="pl-s1">prep</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">prepare_request</span>(<span class="pl-s1">req</span>)
 <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests\sessions.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">407</span>, <span class="pl-s1">in</span> <span class="pl-s1">prepare_request</span>
   <span class="pl-s1">hooks</span><span class="pl-c1">=</span><span class="pl-en">merge_hooks</span>(<span class="pl-s1">request</span>.<span class="pl-s1">hooks</span>, <span class="pl-s1">self</span>.<span class="pl-s1">hooks</span>),
 <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests\models.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">306</span>, <span class="pl-s1">in</span> <span class="pl-s1">prepare</span>
   <span class="pl-s1">self</span>.<span class="pl-en">prepare_auth</span>(<span class="pl-s1">auth</span>, <span class="pl-s1">url</span>)
 <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests\models.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">527</span>, <span class="pl-s1">in</span> <span class="pl-s1">prepare_auth</span>
   <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-en">auth</span>(<span class="pl-s1">self</span>)
 <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests<span class="pl-cce">\a</span>uth.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">68</span>, <span class="pl-s1">in</span> <span class="pl-s1">__call__</span>
   <span class="pl-s1">r</span>.<span class="pl-s1">headers</span>[<span class="pl-s">'Authorization'</span>] <span class="pl-c1">=</span> <span class="pl-en">_basic_auth_str</span>(<span class="pl-s1">self</span>.<span class="pl-s1">username</span>, <span class="pl-s1">self</span>.<span class="pl-s1">password</span>)
 <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests<span class="pl-cce">\a</span>uth.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">38</span>, <span class="pl-s1">in</span> <span class="pl-s1">_basic_auth_str</span>
   <span class="pl-en">b64encode</span>(<span class="pl-s">b':'</span>.<span class="pl-en">join</span>((<span class="pl-s1">username</span>, <span class="pl-s1">password</span>))).<span class="pl-en">strip</span>()
<span class="pl-v">TypeError</span>: <span class="pl-s1">sequence</span> <span class="pl-s1">item</span> <span class="pl-c1">1</span>: <span class="pl-s1">expected</span> <span class="pl-s1">string</span>, <span class="pl-v">NoneType</span> <span class="pl-s1">found</span></pre></div>