Why PyInstaller doesn't detect request module?
<p>I use PyInstaller to make an .exe file from my python 3 project.</p>

<p>The problem is this error from .exe file </p>

<pre><code>  Traceback (most recent call last):
  File "src\parser\bla.py", line 25, in get_b
  File "src\parser\blabla.py", line 32, in __init__
  File "src\parser\blablabla.py", line 9, in get_b_a
AttributeError: module 'requests' has no attribute 'get'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "&lt;string&gt;", line 147, in &lt;module&gt;
  File "&lt;string&gt;", line 141, in main
  File "&lt;string&gt;", line 57, in saving_a
  File "src\parser\bla.py", line 26, in get_a
AttributeError: module 'requests' has no attribute 'exceptions'
main returned -1
</code></pre>

<p>My spec looks like this</p>

<pre><code>block_cipher = None

a = Analysis(['main.py'],
             pathex=['F:\\Dropbox\\web development\\prjct', 'C:\\Users\\uzr\\AppData\\Local\\Programs\\Python\\Python35-32\\Lib\\site-packages'],
             binaries=None,
             datas=[ ('F:\\Dropbox\\web development\\prjct\\public\\thingies.txt', 'DATA') ],
             hiddenimports=["requests"],
             hookspath=[],
             runtime_hooks=[],
             excludes=[],
             win_no_prefer_redirects=False,
             win_private_assemblies=False,
             cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
             cipher=block_cipher)
exe = EXE(pyz,
          a.scripts,
          a.binaries,
          a.zipfiles,
          a.datas,
          name='main',
          debug=False,
          strip=False,
          upx=True,
          console=True )
</code></pre>

<p>Why doesnt PyInstaller detect requests module correctly?
The request packege is 2.9.1
PyInstaller 3.1</p>