Apr-26-2019, 11:08 AM
Hello World,
I am having a problem when generating exe file using PyInstaller.
This is the command that I run to generate an executable : pyinstaller.exe --onefile --icon=01.ico -- myscript.py
I have tried to add hidden-import selenium and hidden-import urllib3 but still here is an error message that I am getting:
Thanks

I am having a problem when generating exe file using PyInstaller.
This is the command that I run to generate an executable : pyinstaller.exe --onefile --icon=01.ico -- myscript.py
I have tried to add hidden-import selenium and hidden-import urllib3 but still here is an error message that I am getting:
Error:Traceback (most recent call last):
File "myscript.py", line 11, in <module>
File "C:\Users\username\AppData\Roaming\Python\Python36\site-packages\selenium\webdriver\__init__.py", line 18, in <module>
from .firefox.webdriver import WebDriver as Firefox # noqa
File "C:\Users\username\AppData\Roaming\Python\Python36\site-packages\selenium\webdriver\firefox\webdriver.py", line 29, in <module>
from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver
File "C:\Users\username\AppData\Roaming\Python\Python36\site-packages\selenium\webdriver\remote\webdriver.py", line 27, in <module>
from .remote_connection import RemoteConnection
File "C:\Users\username\AppData\Roaming\Python\Python36\site-packages\selenium\webdriver\remote\remote_connection.py", line 24, in <module>
import urllib3
ModuleNotFoundError: No module named 'urllib3'
[1616] Failed to execute script final02
btw script is working without any problems when running from VS.Thanks