Unable to import a Module called Faker

269 views
Skip to first unread message

nikola zagorski

unread,
Jan 29, 2016, 5:54:32 AM1/29/16
to PyInstaller
Hello,

I've made a simple script that used selenium web driver for python and Faker module, which generates Fake Data.

I've tried several times to import the module with hook, hidden element, path and every time i run the exe, i am getting the following error

Traceback (most recent call last):
  File "<string>", line 4, in <module>
  File "c:\users\mnqko\appdata\local\programs\python\python35-32\lib\site-packages\PyInstaller\loader\pyimod03_importers
.py", line 389, in load_module
    exec(bytecode, module.__dict__)
  File "site-packages\faker\__init__.py", line 4, in <module>
  File "c:\users\mnqko\appdata\local\programs\python\python35-32\lib\site-packages\PyInstaller\loader\pyimod03_importers
.py", line 389, in load_module
    exec(bytecode, module.__dict__)
  File "site-packages\faker\factory.py", line 10, in <module>
  File "c:\users\mnqko\appdata\local\programs\python\python35-32\lib\site-packages\PyInstaller\loader\pyimod03_importers
.py", line 389, in load_module
    exec(bytecode, module.__dict__)
  File "site-packages\faker\config.py", line 11, in <module>
  File "site-packages\faker\config.py", line 11, in <listcomp>
  File "importlib\__init__.py", line 126, in import_module
ImportError: No module named 'faker.providers'
Autoform returned -1

I am attaching the file with the script.

Thanks in Advance 

Nikola Zagorski
example.py
Reply all
Reply to author
Forward
0 new messages