hello all, I am facing difficulties in making .exe for .py. I am getting below error. Error :
100 INFO: PyInstaller: 3.4 100 INFO: Python: 3.6.0 100 INFO: Platform: Windows-10-10.0.15063-SP0 115 INFO: UPX is not available. 115 INFO: Extending PYTHONPATH with paths ['D:\\FY_19\\On_going\\Fluent\\python', 'D:\\FY_19\\On_going\\Fluent\\python'] 115 INFO: checking Analysis 115 INFO: Building Analysis because Analysis-00.toc is non existent 115 INFO: Initializing module dependency graph... 131 INFO: Initializing module graph hooks... 131 INFO: Analyzing base_library.zip ... 4958 INFO: running Analysis Analysis-00.toc 4978 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable required by c:\programdata\anaconda3\python.exe 5735 INFO: Caching module hooks... 5755 INFO: Analyzing Flow_field_convert.py 7745 INFO: Processing pre-find module path hook distutils 7953 INFO: Processing pre-find module path hook site 7954 INFO: site: retargeting to fake-dir 'c:\\programdata\\anaconda3\\lib\\site-packages\\PyInstaller\\fake-modules' 10632 INFO: Processing pre-safe import module hook setuptools.extern.six.moves 20108 INFO: Processing pre-safe import module hook six.moves 91760 INFO: Loading module hooks... 91760 INFO: Loading module hook "hook-babel.py"... 92010 INFO: Loading module hook "hook-boto.py"... 92065 INFO: Loading module hook "hook-Crypto.py"... Traceback (most recent call last): File "<string>", line 2, in <module> ModuleNotFoundError: No module named 'Crypto.Math' 92215 INFO: Loading module hook "hook-cryptography.py"... 93217 INFO: Loading module hook "hook-distutils.py"... 93217 INFO: Loading module hook "hook-docutils.py"... 95548 INFO: Loading module hook "hook-encodings.py"... 95733 INFO: Loading module hook "hook-IPython.py"... 95778 INFO: Excluding import 'PyQt5' 95785 INFO: Removing import of PyQt5.QtSvg from module IPython.external.qt_loaders 95785 INFO: Removing import of PyQt5 from module IPython.external.qt_loaders 95785 INFO: Removing import of PyQt5.QtCore from module IPython.external.qt_loaders 95785 INFO: Removing import of PyQt5.QtWidgets from module IPython.external.qt_loaders 95785 INFO: Removing import of PyQt5.QtGui from module IPython.external.qt_loaders 95785 INFO: Excluding import 'PyQt4' 95800 INFO: Removing import of PyQt4 from module IPython.external.qt_loaders 95800 INFO: Excluding import 'gtk' 95816 INFO: Excluding import 'tkinter' 95832 INFO: Removing import of tkinter from module IPython.lib.clipboard 95847 INFO: Excluding import 'PySide' 95847 INFO: Removing import of PySide from module IPython.external.qt_loaders 95847 INFO: Excluding import 'matplotlib' 95864 INFO: Removing import of matplotlib.pylab from module IPython.core.pylabtools 95865 INFO: Removing import of matplotlib.figure from module IPython.core.pylabtools 95865 INFO: Removing import of matplotlib.pyplot from module IPython.core.pylabtools 95866 INFO: Removing import of matplotlib._pylab_helpers from module IPython.core.pylabtools 95866 INFO: Removing import of matplotlib from module IPython.core.pylabtools 95868 INFO: Loading module hook "hook-jinja2.py"... 95887 INFO: Loading module hook "hook-jsonschema.py"... 95887 INFO: Loading module hook "hook-lib2to3.py"... 95887 INFO: Loading module hook "hook-lxml.etree.py"... 95902 INFO: Loading module hook "hook-matplotlib.backends.py"... 96817 INFO: Matplotlib backend "GTK": ignored Gtk* backend requires pygtk to be installed. 97408 INFO: Matplotlib backend "GTKAgg": ignored Gtk* backend requires pygtk to be installed. 97853 INFO: Matplotlib backend "GTKCairo": ignored No module named 'gtk' 98629 INFO: Matplotlib backend "MacOSX": ignored cannot import name '_macosx' 99291 INFO: Matplotlib backend "Qt4Agg": ignored No module named 'PyQt4' 99895 INFO: Matplotlib backend "Qt5Agg": ignored No module named 'PyQt4' 100599 INFO: Matplotlib backend "TkAgg": added 101279 INFO: Matplotlib backend "WX": ignored Matplotlib backend_wx and backend_wxagg require wxPython >=2.8.12 101894 INFO: Matplotlib backend "WXAgg": ignored Matplotlib backend_wx and backend_wxagg require wxPython >=2.8.12 102328 INFO: Matplotlib backend "GTK3Cairo": ignored Gtk3 backend requires pygobject to be installed. 103060 INFO: Matplotlib backend "GTK3Agg": ignored Gtk3 backend requires pygobject to be installed. 104691 INFO: Matplotlib backend "WebAgg": added 106167 INFO: Matplotlib backend "nbAgg": added 106673 INFO: Matplotlib backend "agg": added 106993 INFO: Matplotlib backend "cairo": ignored Cairo backend requires that cairocffi or pycairo is installed. 107321 INFO: Matplotlib backend "gdk": ignored No module named 'gobject' 107857 INFO: Matplotlib backend "pdf": added 108539 INFO: Matplotlib backend "pgf": added 109314 INFO: Matplotlib backend "ps": added 110014 INFO: Matplotlib backend "svg": added 110610 INFO: Matplotlib backend "template": added 110895 INFO: Loading module hook "hook-matplotlib.py"... 111405 INFO: Loading module hook "hook-numpy.core.py"... 111521 INFO: MKL libraries found when importing numpy. Adding MKL to binaries 111537 INFO: Loading module hook "hook-numpy.py"... 111537 INFO: Loading module hook "hook-openpyxl.py"... 111552 INFO: Loading module hook "hook-pandas.py"... 111943 INFO: Loading module hook "hook-patsy.py"... 111944 INFO: Loading module hook "hook-PIL.Image.py"... 112448 INFO: Loading module hook "hook-PIL.py"... 112453 INFO: Import to be excluded not found: 'FixTk' 112454 INFO: Excluding import 'PyQt5' 112461 INFO: Removing import of PyQt5.QtGui from module PIL.ImageQt 112462 INFO: Removing import of PyQt5.QtCore from module PIL.ImageQt 112463 INFO: Excluding import 'PyQt4' 112467 INFO: Removing import of PyQt4 from module PIL.ImageQt 112467 INFO: Excluding import 'tkinter' 112469 INFO: Removing import of tkinter from module PIL.ImageTk 112469 INFO: Excluding import 'PySide' 112469 INFO: Removing import of PySide from module PIL.ImageQt 112469 INFO: Loading module hook "hook-PIL.SpiderImagePlugin.py"... 112469 INFO: Import to be excluded not found: 'FixTk' 112469 INFO: Excluding import 'tkinter' 112485 INFO: Loading module hook "hook-pkg_resources.py"... 113478 INFO: Processing pre-safe import module hook win32com 113853 INFO: Loading module hook "hook-pycparser.py"... 114122 INFO: Loading module hook "hook-pydoc.py"... 114122 INFO: Loading module hook "hook-pygments.py"... 116165 INFO: Loading module hook "hook-PyQt5.py"... 116294 WARNING: Cannot read QLibraryInfo output: raised Expecting value: line 1 column 1 (char 0) when decoding: Traceback (most recent call last): File "<string>", line 11, in <module> ImportError: DLL load failed: The specified module could not be found. Traceback (most recent call last): File "c:\programdata\anaconda3\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "c:\programdata\anaconda3\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\ProgramData\Anaconda3\Scripts\pyinstaller.exe\__main__.py", line 9, in <module> File "c:\programdata\anaconda3\lib\site-packages\PyInstaller\__main__.py", line 111, in run run_build(pyi_config, spec_file, **vars(args)) File "c:\programdata\anaconda3\lib\site-packages\PyInstaller\__main__.py", line 63, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "c:\programdata\anaconda3\lib\site-packages\PyInstaller\building\build_main.py", line 838, in main build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build')) File "c:\programdata\anaconda3\lib\site-packages\PyInstaller\building\build_main.py", line 784, in build exec(text, spec_namespace) File "<string>", line 17, in <module> File "c:\programdata\anaconda3\lib\site-packages\PyInstaller\building\build_main.py", line 241, in __init__ self.__postinit__() File "c:\programdata\anaconda3\lib\site-packages\PyInstaller\building\datastruct.py", line 158, in __postinit__ self.assemble() File "c:\programdata\anaconda3\lib\site-packages\PyInstaller\building\build_main.py", line 500, in assemble module_hook.post_graph() File "c:\programdata\anaconda3\lib\site-packages\PyInstaller\building\imphook.py", line 410, in post_graph self._load_hook_module() File "c:\programdata\anaconda3\lib\site-packages\PyInstaller\building\imphook.py", line 377, in _load_hook_module self.hook_module_name, self.hook_filename) File "c:\programdata\anaconda3\lib\site-packages\PyInstaller\compat.py", line 736, in importlib_load_source return mod_loader.load_module() File "<frozen importlib._bootstrap_external>", line 399, in _check_name_wrapper File "<frozen importlib._bootstrap_external>", line 823, in load_module File "<frozen importlib._bootstrap_external>", line 682, in load_module File "<frozen importlib._bootstrap>", line 251, in _load_module_shim File "<frozen importlib._bootstrap>", line 675, in _load File "<frozen importlib._bootstrap>", line 655, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed File "c:\programdata\anaconda3\lib\site-packages\PyInstaller\hooks\hook-PyQt5.py", line 23, in <module> collect_system_data_files(pyqt5_library_info.location['PrefixPath'], File "c:\programdata\anaconda3\lib\site-packages\PyInstaller\utils\hooks\qt.py", line 67, in __getattr__ qli = json.loads(json_str) File "c:\programdata\anaconda3\lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "c:\programdata\anaconda3\lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "c:\programdata\anaconda3\lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) Please help me to solve this error . I am using windows 10. Thanks Nil -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller+unsubscr...@googlegroups.com. To post to this group, send email to pyinstaller@googlegroups.com. Visit this group at https://groups.google.com/group/pyinstaller. For more options, visit https://groups.google.com/d/optout.