Error loading Python dll: python35.dll(error code 193) when i launch exe
<p>I'm trying to turn my python script into an exe file using pyinstaller but it keeps throwing errors when compiling like:</p>

<pre><code>C:\Users\Afro\Desktop\getSERIES&gt;pyinstaller --onedir --onefile --windowed get.py
615 INFO: PyInstaller: 3.2
615 INFO: Python: 3.5.1
630 INFO: Platform: Windows-10-10.0.10586-SP0
630 INFO: wrote C:\Users\Afro\Desktop\getSERIES\get.spec
762 INFO: UPX is available.
762 INFO: Extending PYTHONPATH with paths
['C:\\Users\\Afro\\Desktop\\getSERIES', 'C:\\Users\\Afro\\Desktop\\getSERIES']
781 INFO: checking Analysis
783 INFO: Building Analysis because out00-Analysis.toc is non existent
783 INFO: Initializing module dependency graph...
783 INFO: Initializing module graph hooks...
798 INFO: Analyzing base_library.zip ...
16731 INFO: running Analysis out00-Analysis.toc
17399 WARNING: Can not get binary dependencies for file: C:\WINDOWS\system32\api-ms-win-crt-math-l1-1-0.dll
Traceback (most recent call last):
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 695, in getImports
return _getImports_pe(pth)
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 122, in _getImports_pe
 dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
17546 WARNING: Can not get binary dependencies for file: C:\WINDOWS\system32\api-ms-win-crt-runtime-l1-1-0.dll
Traceback (most recent call last):
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 695, in getImports
return _getImports_pe(pth)
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 122, in _getImports_pe
dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
17662 WARNING: Can not get binary dependencies for file: C:\WINDOWS\system32\api-ms-win-crt-heap-l1-1-0.dll
Traceback (most recent call last):
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 695, in getImports
return _getImports_pe(pth)
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 122, in _getImports_pe
dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
17715 WARNING: Can not get binary dependencies for file: C:\WINDOWS\system32\api-ms-win-crt-locale-l1-1-0.dll
Traceback (most recent call last):
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 695, in getImports
return _getImports_pe(pth)
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 122, in _getImports_pe
dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
19912 WARNING: Can not get binary dependencies for file: C:\WINDOWS\system32\api-ms-win-crt-stdio-l1-1-0.dll
Traceback (most recent call last):
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 695, in getImports
return _getImports_pe(pth)
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 122, in _getImports_pe
dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
20050 WARNING: Can not get binary dependencies for file: C:\WINDOWS\system32\api-ms-win-crt-string-l1-1-0.dll
Traceback (most recent call last):
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 695, in getImports
return _getImports_pe(pth)
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 122, in _getImports_pe
dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
20182 WARNING: Can not get binary dependencies for file: C:\WINDOWS\system32\api-ms-win-crt-convert-l1-1-0.dll
Traceback (most recent call last):
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 695, in getImports
return _getImports_pe(pth)
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 122, in _getImports_pe
dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
20266 WARNING: Can not get binary dependencies for file: C:\WINDOWS\system32\api-ms-win-crt-time-l1-1-0.dll
Traceback (most recent call last):
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 695, in getImports
return _getImports_pe(pth)
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 122, in _getImports_pe
dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
20366 WARNING: Can not get binary dependencies for file: C:\WINDOWS\system32\api-ms-win-crt-filesystem-l1-1-0.dll
Traceback (most recent call last):
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 695, in getImports
return _getImports_pe(pth)
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 122, in _getImports_pe
dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
20434 WARNING: Can not get binary dependencies for file: C:\WINDOWS\system32\api-ms-win-crt-conio-l1-1-0.dll
Traceback (most recent call last):
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 695, in getImports
return _getImports_pe(pth)
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 122, in _getImports_pe
dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
20497 WARNING: Can not get binary dependencies for file: C:\WINDOWS\system32\api-ms-win-crt-environment-l1-1-0.dll
Traceback (most recent call last):
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 695, in getImports
return _getImports_pe(pth)
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 122, in _getImports_pe
dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
20566 WARNING: Can not get binary dependencies for file: C:\WINDOWS\system32\api-ms-win-crt-process-l1-1-0.dll
Traceback (most recent call last):
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 695, in getImports
return _getImports_pe(pth)
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 122, in _getImports_pe
dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
20613 INFO: Caching module hooks...
20634 INFO: Analyzing C:\Users\Afro\Desktop\getSERIES\get.py
40554 INFO: Loading module hooks...
41855 INFO: Loading module hook "hook-xml.dom.domreg.py"...
41870 INFO: Loading module hook "hook-lxml.etree.py"...
41955 INFO: Loading module hook "hook-xml.py"...
41971 INFO: Loading module hook "hook-requests.py"...
41992 INFO: Loading module hook "hook-selenium.py"...
42039 INFO: Loading module hook "hook-cryptography.py"...
42171 INFO: Loading module hook "hook-pydoc.py"...
42208 INFO: Loading module hook "hook-_tkinter.py"...
43270 INFO: checking Tree
43270 INFO: Building Tree because out00-Tree.toc is non existent
43270 INFO: Building Tree out00-Tree.toc
43691 INFO: checking Tree
43693 INFO: Building Tree because out01-Tree.toc is non existent
43693 INFO: Building Tree out01-Tree.toc
43771 INFO: Loading module hook "hook-encodings.py"...
44109 INFO: Analyzing run-time hooks ...
44140 INFO: Including run-time hook 'pyi_rth__tkinter.py'
44371 INFO: Looking for dynamic libraries
50077 WARNING: Can not get binary dependencies for file: C:\WINDOWS\system32\api-ms-win-crt-utility-l1-1-0.dll
Traceback (most recent call last):
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 695, in getImports
return _getImports_pe(pth)
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\depend\bindepend.py", line 122, in _getImports_pe
dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
53503 INFO: Looking for eggs
53520 INFO: Using Python library C:\Users\Afro\AppData\Local\Programs\Python\Python35\python35.dll
53524 INFO: Found binding redirects:
[]
53587 INFO: Warnings written to C:\Users\Afro\Desktop\getSERIES\build\get\warnget.txt
54056 INFO: checking PYZ
54072 INFO: Building PYZ because out00-PYZ.toc is non existent
54072 INFO: Building PYZ (ZlibArchive) C:\Users\Afro\Desktop\getSERIES\build\get\out00-PYZ.pyz
59021 INFO: checking PKG
59025 INFO: Building PKG because out00-PKG.toc is non existent
59031 INFO: Building PKG (CArchive) out00-PKG.pkg
89878 INFO: Bootloader C:\Users\Afro\AppData\Local\Programs\Python\Python35\lib\site-packages\pyinstaller-3.2-py3.5.egg\PyInstaller\bootloader\Windows-  64bit\runw.exe
89878 INFO: checking EXE
89893 INFO: Building EXE because out00-EXE.toc is non existent
89893 INFO: Building EXE from out00-EXE.toc

89893 INFO: Appending archive to EXE C:\Users\Afro\Desktop\getSERIES\dist\get.exe
</code></pre>

<p>and then when i try to run the exe file it tells me error loading dll:(error code 193)</p>

<p>Thanks.</p>