I have written a small application which runs without any error through the 
command line: python Test.py

When I try to create an executable I get the following error:
(base) E:\tmp\Python\WorkoutDisplay>pyinstaller --onefile --windowed Test.py
66 INFO: PyInstaller: 3.5.dev0+7c9d0a74e
66 INFO: Python: 3.6.8
67 INFO: Platform: Windows-10-10.0.16299-SP0
95 INFO: wrote E:\tmp\Python\WorkoutDisplay\Test.spec
96 INFO: UPX is not available.
Traceback (most recent call last):
  File "D:\Programs\Development\Anaconda3\Scripts\pyinstaller-script.py", 
line 10, in <module>
    sys.exit(run())
  File 
"D:\Programs\Development\Anaconda3\lib\site-packages\PyInstaller\__main__.py", 
line 111, in run
    run_build(pyi_config, spec_file, **vars(args))
  File 
"D:\Programs\Development\Anaconda3\lib\site-packages\PyInstaller\__main__.py", 
line 63, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File 
"D:\Programs\Development\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 
"D:\Programs\Development\Anaconda3\lib\site-packages\PyInstaller\building\build_main.py",
 
line 784, in build
    exec(text, spec_namespace)
  File "<string>", line 17, in <module>
  File 
"D:\Programs\Development\Anaconda3\lib\site-packages\PyInstaller\building\build_main.py",
 
line 189, in __init__
    raise ValueError("script '%s' not found" % script)
ValueError: script 'E:\tmp\Python\WorkoutDisplay\Test.py' not found

(base) E:\tmp\Python\WorkoutDisplay>pyinstaller --onefile --windowed 
Code\Test.py
79 INFO: PyInstaller: 3.5.dev0+7c9d0a74e
79 INFO: Python: 3.6.8
80 INFO: Platform: Windows-10-10.0.16299-SP0
112 INFO: wrote E:\tmp\Python\WorkoutDisplay\Test.spec
113 INFO: UPX is not available.
114 INFO: Extending PYTHONPATH with paths
['E:\\tmp\\Python\\WorkoutDisplay\\Code', 'E:\\tmp\\Python\\WorkoutDisplay']
115 INFO: checking Analysis
116 INFO: Building Analysis because Analysis-00.toc is non existent
116 INFO: Initializing module dependency graph...
119 INFO: Initializing module graph hooks...
120 INFO: Analyzing base_library.zip ...
5797 INFO: running Analysis Analysis-00.toc
5815 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies 
of final executable
  required by D:\Programs\Development\Anaconda3\python.exe
6393 INFO: Caching module hooks...
6398 INFO: Analyzing E:\tmp\Python\WorkoutDisplay\Code\Test.py
6587 INFO: Processing pre-find module path hook   distutils
7185 INFO: Processing pre-safe import module hook   six.moves
11645 INFO: Processing pre-safe import module hook  
 setuptools.extern.six.moves
12284 INFO: Processing pre-find module path hook   site
12285 INFO: site: retargeting to fake-dir 
'D:\\Programs\\Development\\Anaconda3\\lib\\site-packages\\PyInstaller\\fake-modules'
24003 INFO: Processing pre-safe import module hook  
 urllib3.packages.six.moves
40535 INFO: Processing pre-safe import module hook   win32com
70764 INFO: Loading module hooks...
70764 INFO: Loading module hook "hook-babel.py"...
70964 INFO: Loading module hook "hook-certifi.py"...
70966 INFO: Loading module hook "hook-cryptography.py"...
71246 INFO: Loading module hook "hook-distutils.py"...
71248 INFO: Loading module hook "hook-docutils.py"...
73594 INFO: Loading module hook "hook-encodings.py"...
73673 INFO: Loading module hook "hook-IPython.py"...
73685 INFO: Excluding import 'gtk'
73691 INFO: Excluding import 'PySide'
73696 INFO:   Removing import of PySide from module 
IPython.external.qt_loaders
73697 INFO: Excluding import 'tkinter'
73702 INFO:   Removing import of tkinter from module IPython.lib.clipboard
73704 INFO: Excluding import 'PyQt4'
73710 INFO:   Removing import of PyQt4 from module 
IPython.external.qt_loaders
73710 INFO: Excluding import 'PyQt5'
73716 INFO:   Removing import of PyQt5.QtGui from module 
IPython.external.qt_loaders
73717 INFO:   Removing import of PyQt5.QtWidgets from module 
IPython.external.qt_loaders
73717 INFO:   Removing import of PyQt5.QtCore from module 
IPython.external.qt_loaders
73717 INFO:   Removing import of PyQt5 from module 
IPython.external.qt_loaders
73717 INFO:   Removing import of PyQt5.QtSvg from module 
IPython.external.qt_loaders
73718 INFO: Excluding import 'matplotlib'
73723 INFO:   Removing import of matplotlib._pylab_helpers from module 
IPython.core.pylabtools
73723 INFO:   Removing import of matplotlib from module 
IPython.core.pylabtools
73724 INFO:   Removing import of matplotlib.figure from module 
IPython.core.pylabtools
73724 INFO:   Removing import of matplotlib.pyplot from module 
IPython.core.pylabtools
73726 INFO: Loading module hook "hook-jedi.py"...
73730 INFO: Loading module hook "hook-jinja2.py"...
73753 INFO: Loading module hook "hook-jsonschema.py"...
73755 INFO: Loading module hook "hook-lib2to3.py"...
73757 INFO: Loading module hook "hook-lxml.etree.py"...
73759 INFO: Loading module hook "hook-matplotlib.backends.py"...
74828 INFO:   Matplotlib backend "GTK3Agg": ignored
    cairo backend requires that cairocffi or pycairo is installed
75174 INFO:   Matplotlib backend "GTK3Cairo": ignored
    cairo backend requires that cairocffi or pycairo is installed
75717 INFO:   Matplotlib backend "MacOSX": ignored
    cannot import name '_macosx'
76705 INFO:   Matplotlib backend "nbAgg": added
77706 INFO:   Matplotlib backend "Qt4Agg": added
78049 INFO:   Matplotlib backend "Qt4Cairo": ignored
    cairo backend requires that cairocffi or pycairo is installed
78541 INFO:   Matplotlib backend "Qt5Agg": added
78870 INFO:   Matplotlib backend "Qt5Cairo": ignored
    cairo backend requires that cairocffi or pycairo is installed
79370 INFO:   Matplotlib backend "TkAgg": added
79823 INFO:   Matplotlib backend "TkCairo": ignored
    cairo backend requires that cairocffi or pycairo is installed
80427 INFO:   Matplotlib backend "WebAgg": added
80849 INFO:   Matplotlib backend "WX": ignored
    No module named 'wx'
81185 INFO:   Matplotlib backend "WXAgg": ignored
    No module named 'wx'
81522 INFO:   Matplotlib backend "WXCairo": ignored
    No module named 'wx'
81861 INFO:   Matplotlib backend "agg": added
82195 INFO:   Matplotlib backend "cairo": ignored
    cairo backend requires that cairocffi or pycairo is installed
82637 INFO:   Matplotlib backend "pdf": added
83074 INFO:   Matplotlib backend "pgf": added
83422 INFO:   Matplotlib backend "ps": added
83810 INFO:   Matplotlib backend "svg": added
84239 INFO:   Matplotlib backend "template": added
84787 INFO: Loading module hook "hook-matplotlib.py"...
85094 INFO: Loading module hook "hook-nbconvert.py"...
85105 INFO: Loading module hook "hook-nbformat.py"...
85110 INFO: Loading module hook "hook-notebook.py"...
86659 INFO: Loading module hook "hook-numpy.core.py"...
86746 INFO: MKL libraries found when importing numpy. Adding MKL to binaries
86755 INFO: Loading module hook "hook-numpy.py"...
86757 INFO: Loading module hook "hook-openpyxl.py"...
86762 INFO: Loading module hook "hook-pandas.py"...
89700 INFO: Loading module hook "hook-PIL.Image.py"...
90305 INFO: Loading module hook "hook-PIL.py"...
90310 INFO: Excluding import 'PySide'
90314 INFO:   Removing import of PySide from module PIL.ImageQt
90315 INFO: Excluding import 'tkinter'
90319 INFO:   Removing import of tkinter from module PIL.ImageTk
90320 INFO: Excluding import 'PyQt4'
90324 INFO:   Removing import of PyQt4 from module PIL.ImageQt
90325 INFO: Excluding import 'PyQt5'
90329 INFO:   Removing import of PyQt5.QtGui from module PIL.ImageQt
90329 INFO:   Removing import of PyQt5.QtCore from module PIL.ImageQt
90330 INFO: Import to be excluded not found: 'FixTk'
90331 INFO: Loading module hook "hook-PIL.SpiderImagePlugin.py"...
90335 INFO: Import to be excluded not found: 'FixTk'
90335 INFO: Excluding import 'tkinter'
90339 INFO: Loading module hook "hook-pkg_resources.py"...
91162 INFO: Loading module hook "hook-pycparser.py"...
91163 INFO: Loading module hook "hook-pydoc.py"...
91163 INFO: Loading module hook "hook-pygments.py"...
93592 INFO: Loading module hook "hook-PyQt5.py"...
93667 WARNING: Hidden import "PyQt5.sip" not found!
93668 INFO: Loading module hook "hook-PyQt5.QtCore.py"...
93760 WARNING: Unable to find Qt5 translations 
C:/qt64/qt_1544645195969/_h_env/Library/translations\qtbase_*.qm. These 
translations were not packaged.
93760 INFO: Loading module hook "hook-PyQt5.QtGui.py"...
Traceback (most recent call last):
  File "D:\Programs\Development\Anaconda3\Scripts\pyinstaller-script.py", 
line 10, in <module>
    sys.exit(run())
  File 
"D:\Programs\Development\Anaconda3\lib\site-packages\PyInstaller\__main__.py", 
line 111, in run
    run_build(pyi_config, spec_file, **vars(args))
  File 
"D:\Programs\Development\Anaconda3\lib\site-packages\PyInstaller\__main__.py", 
line 63, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File 
"D:\Programs\Development\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 
"D:\Programs\Development\Anaconda3\lib\site-packages\PyInstaller\building\build_main.py",
 
line 784, in build
    exec(text, spec_namespace)
  File "<string>", line 17, in <module>
  File 
"D:\Programs\Development\Anaconda3\lib\site-packages\PyInstaller\building\build_main.py",
 
line 241, in __init__
    self.__postinit__()
  File 
"D:\Programs\Development\Anaconda3\lib\site-packages\PyInstaller\building\datastruct.py",
 
line 158, in __postinit__
    self.assemble()
  File 
"D:\Programs\Development\Anaconda3\lib\site-packages\PyInstaller\building\build_main.py",
 
line 500, in assemble
    module_hook.post_graph()
  File 
"D:\Programs\Development\Anaconda3\lib\site-packages\PyInstaller\building\imphook.py",
 
line 410, in post_graph
    self._load_hook_module()
  File 
"D:\Programs\Development\Anaconda3\lib\site-packages\PyInstaller\building\imphook.py",
 
line 377, in _load_hook_module
    self.hook_module_name, self.hook_filename)
  File 
"D:\Programs\Development\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 265, in _load_module_shim
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in 
_call_with_frames_removed
  File 
"D:\Programs\Development\Anaconda3\lib\site-packages\PyInstaller\hooks\hook-PyQt5.QtGui.py",
 
line 11, in <module>
    hiddenimports, binaries, datas = add_qt5_dependencies(__file__)
  File 
"D:\Programs\Development\Anaconda3\lib\site-packages\PyInstaller\utils\hooks\qt.py",
 
line 514, in add_qt5_dependencies
    more_binaries = qt_plugins_binaries(plugin, namespace=namespace)
  File 
"D:\Programs\Development\Anaconda3\lib\site-packages\PyInstaller\utils\hooks\qt.py",
 
line 132, in qt_plugins_binaries
    pdir = qt_plugins_dir(namespace=namespace)
  File 
"D:\Programs\Development\Anaconda3\lib\site-packages\PyInstaller\utils\hooks\qt.py",
 
line 117, in qt_plugins_dir
    """.format(namespace, ", ".join(paths)))
Exception:
            Cannot find existing PyQt5 plugin directories
            Paths checked: C:/qt64/qt_1544645195969/_h_env/Library/plugins


(base) E:\tmp\Python\WorkoutDisplay>

I'm using a conda environmet for developing the application and building 
the executable.
OS is Windows 10.

Could anybody,please, help me debug the problem?
Thanks.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/ebd5c2ae-d949-469b-8f51-5a10031407d2%40googlegroups.com.

Reply via email to