My device - MacBook Pro 2016 Touch Bar (macOS Catalina)
Pyinstaller version - 3.6 (downgraded since it was not working on 4.0 also)

*Error description-*

(base) adityavyas@x86_64-apple-darwin13 ~ % cd 
/Users/anilvyas/Desktop/ApartWorker
(base) adityavyas@x86_64-apple-darwin13 ApartWorker % pyinstaller LavSw.py
40 INFO: PyInstaller: 3.6
40 INFO: Python: 3.7.1 (conda)
47 INFO: Platform: Darwin-19.6.0-x86_64-i386-64bit
48 INFO: wrote /Users/anilvyas/Desktop/ApartWorker/LavSw.spec
50 INFO: UPX is not available.
51 INFO: Extending PYTHONPATH with paths
['/Users/anilvyas/Desktop/ApartWorker', 
'/Users/anilvyas/Desktop/ApartWorker']
51 INFO: checking Analysis
52 INFO: Building Analysis because Analysis-00.toc is non existent
52 INFO: Initializing module dependency graph...
58 INFO: Caching module graph hooks...
62 INFO: Analyzing base_library.zip ...
3446 INFO: Caching module dependency graph...
3526 INFO: running Analysis Analysis-00.toc
3531 INFO: Analyzing /Users/anilvyas/Desktop/ApartWorker/LavSw.py
3793 INFO: Processing pre-find module path hook   distutils
3793 INFO: distutils: retargeting to non-venv dir 
'/Users/anilvyas/anaconda3/lib/python3.7'
6257 INFO: Processing pre-safe import module hook   
setuptools.extern.six.moves
6963 INFO: Processing pre-find module path hook   site
6964 INFO: site: retargeting to fake-dir 
'/Users/anilvyas/anaconda3/lib/python3.7/site-packages/PyInstaller/fake-modules'
14701 INFO: Processing pre-safe import module hook   six.moves
21246 INFO: Processing pre-safe import module hook   
urllib3.packages.six.moves
60810 INFO: Processing module hooks...
60810 INFO: Loading module hook "hook-scipy.linalg.py"...
60811 INFO: Loading module hook "hook-zmq.py"...
61285 INFO: Loading module hook "hook-sqlite3.py"...
61348 INFO: Loading module hook "hook-pkg_resources.py"...
61959 INFO: Processing pre-safe import module hook   win32com
62208 INFO: Excluding import '__main__'
62211 INFO:   Removing import of __main__ from module pkg_resources
62212 INFO: Loading module hook "hook-pandas.py"...
63343 INFO: Loading module hook "hook-babel.py"...
63374 INFO: Loading module hook "hook-notebook.py"...
64472 INFO: Loading module hook "hook-PyQt5.py"...
68903 WARNING: Hidden import "PyQt5.sip" not found!
68903 INFO: Loading module hook "hook-scipy.py"...
68904 INFO: Loading module hook "hook-xml.etree.cElementTree.py"...
68905 INFO: Loading module hook "hook-scipy.special._ufuncs.py"...
68905 INFO: Loading module hook "hook-pytz.py"...
68933 INFO: Loading module hook "hook-sphinx.py"...
74717 INFO: Loading module hook "hook-lib2to3.py"...
74719 INFO: Loading module hook "hook-_tkinter.py"...
74868 INFO: checking Tree
74875 INFO: checking Tree
74879 INFO: Loading module hook "hook-nacl.py"...
74882 INFO: Loading module hook "hook-cryptography.py"...
75089 INFO: Loading module hook "hook-encodings.py"...
75159 INFO: Loading module hook "hook-jinja2.py"...
75176 INFO: Loading module hook "hook-IPython.py"...
75396 INFO: Excluding import 'tkinter'
75401 INFO:   Removing import of tkinter from module IPython.lib.clipboard
75403 INFO: Excluding import 'gtk'
75410 INFO: Excluding import 'matplotlib'
75416 INFO:   Removing import of matplotlib._pylab_helpers from module 
IPython.core.pylabtools
75416 INFO:   Removing import of matplotlib.pyplot from module 
IPython.core.pylabtools
75416 INFO:   Removing import of matplotlib from module 
IPython.core.pylabtools
75416 INFO:   Removing import of matplotlib.figure from module 
IPython.core.pylabtools
75417 INFO: Excluding import 'PySide'
75424 INFO:   Removing import of PySide from module 
IPython.external.qt_loaders
75424 INFO: Excluding import 'PyQt4'
75431 INFO:   Removing import of PyQt4 from module 
IPython.external.qt_loaders
75432 INFO: Excluding import 'PyQt5'
75440 INFO:   Removing import of PyQt5.QtSvg from module 
IPython.external.qt_loaders
75440 INFO:   Removing import of PyQt5.QtCore from module 
IPython.external.qt_loaders
75440 INFO:   Removing import of PyQt5.QtWidgets from module 
IPython.external.qt_loaders
75440 INFO:   Removing import of PyQt5 from module 
IPython.external.qt_loaders
75440 INFO:   Removing import of PyQt5.QtGui from module 
IPython.external.qt_loaders
75441 INFO: Loading module hook "hook-scipy.sparse.csgraph.py"...
75444 INFO: Loading module hook "hook-nbconvert.py"...
75452 INFO: Loading module hook "hook-PIL.py"...
75456 INFO: Excluding import 'tkinter'
75461 INFO: Excluding import 'PySide'
75466 INFO: Excluding import 'PyQt4'
75471 INFO: Excluding import 'PyQt5'
75476 INFO:   Removing import of PyQt5.QtCore from module PIL.ImageQt
75476 INFO:   Removing import of PyQt5.QtGui from module PIL.ImageQt
75476 INFO: Import to be excluded not found: 'FixTk'
75476 INFO: Loading module hook "hook-setuptools.py"...
76375 INFO: Loading module hook "hook-pycparser.py"...
76375 INFO: Loading module hook "hook-gevent.py"...
76495 INFO: Determining a mapping of distributions to packages...
209604 WARNING: Unable to find package for requirement greenlet from 
package gevent.
209604 INFO: Packages required by gevent:
[]
211399 INFO: Loading module hook "hook-matplotlib.py"...
211687 INFO: Loading module hook "hook-jsonschema.py"...
211690 INFO: Loading module hook "hook-xml.dom.domreg.py"...
211691 INFO: Loading module hook "hook-PyQt5.QtGui.py"...
211698 INFO: Loading module hook "hook-PIL.Image.py"...
212190 INFO: Loading module hook "hook-jedi.py"...
212244 INFO: Loading module hook "hook-scipy.special._ellip_harm_2.py"...
212244 INFO: Loading module hook "hook-certifi.py"...
212245 INFO: Loading module hook "hook-matplotlib.backends.py"...
212847 INFO:   Matplotlib backend "GTK3Agg": ignored
    cairo backend requires that pycairo>=1.11.0 or cairocffiis installed
213169 INFO:   Matplotlib backend "GTK3Cairo": ignored
    cairo backend requires that pycairo>=1.11.0 or cairocffiis installed
213617 INFO:   Matplotlib backend "MacOSX": added
214306 INFO:   Matplotlib backend "nbAgg": added
214832 INFO:   Matplotlib backend "Qt4Agg": added
215167 INFO:   Matplotlib backend "Qt4Cairo": ignored
    cairo backend requires that pycairo>=1.11.0 or cairocffiis installed
215690 INFO:   Matplotlib backend "Qt5Agg": added
216013 INFO:   Matplotlib backend "Qt5Cairo": ignored
    cairo backend requires that pycairo>=1.11.0 or cairocffiis installed
216471 INFO:   Matplotlib backend "TkAgg": added
216928 INFO:   Matplotlib backend "TkCairo": ignored
    cairo backend requires that pycairo>=1.11.0 or cairocffiis installed
217346 INFO:   Matplotlib backend "WebAgg": added
217835 INFO:   Matplotlib backend "WX": added
218353 INFO:   Matplotlib backend "WXAgg": added
218747 INFO:   Matplotlib backend "WXCairo": ignored
    cairo backend requires that pycairo>=1.11.0 or cairocffiis installed
219081 INFO:   Matplotlib backend "agg": added
219404 INFO:   Matplotlib backend "cairo": ignored
    cairo backend requires that pycairo>=1.11.0 or cairocffiis installed
219843 INFO:   Matplotlib backend "pdf": added
220279 INFO:   Matplotlib backend "pgf": added
220611 INFO:   Matplotlib backend "ps": added
220942 INFO:   Matplotlib backend "svg": added
221363 INFO:   Matplotlib backend "template": added
221915 INFO: Loading module hook "hook-importlib_metadata.py"...
221916 INFO: Loading module hook "hook-docutils.py"...
223228 INFO: Loading module hook "hook-nbformat.py"...
223230 INFO: Loading module hook "hook-openpyxl.py"...
223233 INFO: Loading module hook "hook-sqlalchemy.py"...
223405 INFO:   Found 4 sqlalchemy hidden imports
223406 WARNING: Hidden import "MySQLdb" not found!
223406 WARNING: Hidden import "psycopg2" not found!
224778 WARNING: Hidden import "sqlalchemy.sql.functions.func" not found!
224791 INFO: Import to be excluded not found: 'sqlalchemy.testing'
224791 INFO: Loading module hook "hook-PyQt5.QtWidgets.py"...
224795 INFO: Loading module hook "hook-lxml.etree.py"...
224795 INFO: Loading module hook "hook-sysconfig.py"...
224802 INFO: Loading module hook "hook-numpy.core.py"...
224804 INFO: MKL libraries found when importing numpy. Adding MKL to 
binaries
224805 INFO: Loading module hook "hook-xml.py"...
224806 INFO: Loading module hook "hook-pydoc.py"...
224806 INFO: Loading module hook "hook-shelve.py"...
224814 INFO: Loading module hook "hook-numpy.py"...
224814 INFO: Loading module hook "hook-distutils.py"...
224816 INFO: Loading module hook "hook-PyQt5.QtCore.py"...
224818 INFO: Loading module hook "hook-botocore.py"...
224862 INFO: Loading module hook "hook-PyQt5.QtSvg.py"...
224866 INFO: Loading module hook "hook-pygments.py"...
226571 INFO: Loading module hook "hook-PIL.SpiderImagePlugin.py"...
226576 INFO: Excluding import 'tkinter'
226580 INFO: Import to be excluded not found: 'FixTk'
226716 INFO: Looking for ctypes DLLs
226760 WARNING: library user32 required via ctypes not found
226814 WARNING: library msvcrt required via ctypes not found
226846 INFO: Analyzing run-time hooks ...
226872 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'
226875 INFO: Including run-time hook 'pyi_rth__tkinter.py'
226877 INFO: Including run-time hook 'pyi_rth_certifi.py'
226877 INFO: Including run-time hook 'pyi_rth_pkgres.py'
226878 INFO: Including run-time hook 'pyi_rth_mplconfig.py'
226879 INFO: Including run-time hook 'pyi_rth_mpldata.py'
226880 INFO: Including run-time hook 'pyi_rth_traitlets.py'
226881 INFO: Including run-time hook 'pyi_rth_pyqt5.py'
226951 INFO: Looking for dynamic libraries
Traceback (most recent call last):
  File "/Users/anilvyas/anaconda3/bin/pyinstaller", line 8, in <module>
    sys.exit(run())
  File 
"/Users/anilvyas/anaconda3/lib/python3.7/site-packages/PyInstaller/__main__.py",
 
line 114, in run
    run_build(pyi_config, spec_file, **vars(args))
  File 
"/Users/anilvyas/anaconda3/lib/python3.7/site-packages/PyInstaller/__main__.py",
 
line 65, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File 
"/Users/anilvyas/anaconda3/lib/python3.7/site-packages/PyInstaller/building/build_main.py",
 
line 734, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), 
kw.get('clean_build'))
  File 
"/Users/anilvyas/anaconda3/lib/python3.7/site-packages/PyInstaller/building/build_main.py",
 
line 681, in build
    exec(code, spec_namespace)
  File "/Users/anilvyas/Desktop/ApartWorker/LavSw.spec", line 17, in 
<module>
    noarchive=False)
  File 
"/Users/anilvyas/anaconda3/lib/python3.7/site-packages/PyInstaller/building/build_main.py",
 
line 244, in __init__
    self.__postinit__()
  File 
"/Users/anilvyas/anaconda3/lib/python3.7/site-packages/PyInstaller/building/datastruct.py",
 
line 160, in __postinit__
    self.assemble()
  File 
"/Users/anilvyas/anaconda3/lib/python3.7/site-packages/PyInstaller/building/build_main.py",
 
line 470, in assemble
    redirects=self.binding_redirects))
  File 
"/Users/anilvyas/anaconda3/lib/python3.7/site-packages/PyInstaller/depend/bindepend.py",
 
line 230, in Dependencies
    for lib, npth in selectImports(pth, xtrapath):
  File 
"/Users/anilvyas/anaconda3/lib/python3.7/site-packages/PyInstaller/depend/bindepend.py",
 
line 501, in selectImports
    dlls = getImports(pth)
  File 
"/Users/anilvyas/anaconda3/lib/python3.7/site-packages/PyInstaller/depend/bindepend.py",
 
line 742, in getImports
    return _getImports_macholib(pth)
  File 
"/Users/anilvyas/anaconda3/lib/python3.7/site-packages/PyInstaller/depend/bindepend.py",
 
line 625, in _getImports_macholib
    m = MachO(pth)
  File 
"/Users/anilvyas/anaconda3/lib/python3.7/site-packages/macholib/MachO.py", 
line 118, in __init__
    self.load(fp)
  File 
"/Users/anilvyas/anaconda3/lib/python3.7/site-packages/macholib/MachO.py", 
line 133, in load
    self.load_header(fh, 0, size)
  File 
"/Users/anilvyas/anaconda3/lib/python3.7/site-packages/macholib/MachO.py", 
line 168, in load_header
    hdr = MachOHeader(self, fh, offset, size, magic, hdr, endian)
  File 
"/Users/anilvyas/anaconda3/lib/python3.7/site-packages/macholib/MachO.py", 
line 209, in __init__
    self.load(fh)
  File 
"/Users/anilvyas/anaconda3/lib/python3.7/site-packages/macholib/MachO.py", 
line 245, in load
    raise ValueError("Unknown load command: %d" % (cmd_load.cmd,))
ValueError: Unknown load command: 1633971823



It would be great if your amazing team can help me. :) 



-- 
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/9d220616-9db6-4f70-a42c-94f3a8b59906n%40googlegroups.com.

Reply via email to