No module named json(build with pyinstaller)

1,296 views
Skip to first unread message

raiderc...@gmail.com

unread,
Aug 13, 2014, 2:54:04 PM8/13/14
to cefp...@googlegroups.com
I'm using cefpython3-31.0.win32-py2.7.msi.
it's ok if i just run wxpython.py
but after i packed them into a .exe with pyinstaller.
it did not work.
does anyone have a clue?
i have searched the log and the warning files of pyinstaller but no 'json' appeared.

C:\Python27\Scripts\dist>wxpython.exe
Traceback (most recent call last):
File "<string>", line 23, in <module>
File "C:\Python27\Lib\site-packages\PyInstaller\loader\pyi_importers.py", line
270, in load_module
exec(bytecode, module.__dict__)
File "C:\Python27\Scripts\build\wxpython\out00-PYZ.pyz\cefpython3", line 4, in
<module>
File "C:\Python27\Lib\site-packages\PyInstaller\loader\pyi_importers.py", line
409, in load_module
module = imp.load_module(fullname, fp, filename, self._c_ext_tuple)
File "imports.pyx", line 16, in init cefpython_py27 (cefpython.cpp:82540)
ImportError: No module named json

thank you for your help.

Czarek Tomczak

unread,
Aug 13, 2014, 4:03:28 PM8/13/14
to cefp...@googlegroups.com
Can you add explicitilly the json dependency to pyinstaller setup? I don't know why it wasn't detected by pyinstaller, might be some bug.

Czarek Tomczak

unread,
Aug 14, 2014, 2:39:05 AM8/14/14
to cefp...@googlegroups.com
There is "hiddenimports" option in pyinstaller, see:

If there are more such module import errors, then see all CEF Python imports here:
Reply all
Reply to author
Forward
0 new messages