how do I solve ValueError: Unknown load command: 50 in pyinstaller OSX











up vote
0
down vote

favorite












I got problem while compiling all my python code after update osx.
I found it lately after several days after upgrade high sierra to mojave. I don't know if it's os problem or pyinstaller library problem conflicts to another library.



here are the error message



pyinstaller --onefile --icon=upload.icns --name=uploader2 apps.py
96 INFO: PyInstaller: 3.2.1
96 INFO: Python: 2.7.10
108 INFO: Platform: Darwin-18.0.0-x86_64-i386-64bit
109 INFO: wrote /Users/applemacbookpro/code/myapps/uploader/uploader2.spec
120 INFO: UPX is not available.
121 INFO: Extending PYTHONPATH with paths
['/Users/applemacbookpro/code/myapps/uploader',
'/Users/applemacbookpro/code/myapps/uploader']
122 INFO: checking Analysis
139 INFO: Building because /Users/applemacbookpro/code/myapps/uploader/apps.py changed
139 INFO: Initializing module dependency graph...
147 INFO: Initializing module graph hooks...
208 INFO: running Analysis out00-Analysis.toc
Traceback (most recent call last):
File "/usr/local/bin/pyinstaller", line 9, in
load_entry_point('PyInstaller==3.2.1', 'console_scripts', 'pyinstaller')()
File "/Library/Python/2.7/site-packages/PyInstaller/main.py", line 90, in run
run_build(pyi_config, spec_file, **vars(args))
File "/Library/Python/2.7/site-packages/PyInstaller/main.py", line 46, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "/Library/Python/2.7/site-packages/PyInstaller/building/build_main.py", line 788, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "/Library/Python/2.7/site-packages/PyInstaller/building/build_main.py", line 734, in build
exec(text, spec_namespace)
File "", line 16, in
File "/Library/Python/2.7/site-packages/PyInstaller/building/build_main.py", line 212, in init
self.postinit()
File "/Library/Python/2.7/site-packages/PyInstaller/building/datastruct.py", line 161, in postinit
self.assemble()
File "/Library/Python/2.7/site-packages/PyInstaller/building/build_main.py", line 373, in assemble
redirects=self.binding_redirects)[1:])
File "/Library/Python/2.7/site-packages/PyInstaller/depend/bindepend.py", line 227, in Dependencies
for lib, npth in selectImports(pth, xtrapath):
File "/Library/Python/2.7/site-packages/PyInstaller/depend/bindepend.py", line 500, in selectImports
dlls = getImports(pth)
File "/Library/Python/2.7/site-packages/PyInstaller/depend/bindepend.py", line 734, in getImports
return _getImports_macholib(pth)
File "/Library/Python/2.7/site-packages/PyInstaller/depend/bindepend.py", line 621, in _getImports_macholib
m = MachO(pth)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 69, in init
self.load(fp)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 79, in load
self.load_fat(fh)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 90, in load_fat
self.load_header(fh, arch.offset, arch.size)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 114, in load_header
hdr = MachOHeader(self, fh, offset, size, magic, hdr, endian)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 154, in init
self.load(fh)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 186, in load
raise ValueError("Unknown load command: %d" % (cmd_load.cmd,))
ValueError: Unknown load command: 50









share|improve this question






















  • How did you install pyinstaller? Have you tried upgrading or reinstalling?
    – tripleee
    Nov 9 at 11:17










  • yes, I've tried to upgrade to latest version but failed too. 3.4.1, 3.3.1, 3.2.1 nothing works
    – user300695
    Nov 10 at 12:27










  • And, again, how did you install it?
    – tripleee
    Nov 10 at 16:09










  • pip install --user pyinstaller using latest pyinstaller give me this error File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 851, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (altgraph 0.10.2 (/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python), Requirement.parse('altgraph>=0.15'), set(['macholib']))
    – user300695
    Nov 11 at 4:33










  • finally I can compile it.. pip install -U --user altgraph solved it..thank you
    – user300695
    Nov 11 at 4:35















up vote
0
down vote

favorite












I got problem while compiling all my python code after update osx.
I found it lately after several days after upgrade high sierra to mojave. I don't know if it's os problem or pyinstaller library problem conflicts to another library.



here are the error message



pyinstaller --onefile --icon=upload.icns --name=uploader2 apps.py
96 INFO: PyInstaller: 3.2.1
96 INFO: Python: 2.7.10
108 INFO: Platform: Darwin-18.0.0-x86_64-i386-64bit
109 INFO: wrote /Users/applemacbookpro/code/myapps/uploader/uploader2.spec
120 INFO: UPX is not available.
121 INFO: Extending PYTHONPATH with paths
['/Users/applemacbookpro/code/myapps/uploader',
'/Users/applemacbookpro/code/myapps/uploader']
122 INFO: checking Analysis
139 INFO: Building because /Users/applemacbookpro/code/myapps/uploader/apps.py changed
139 INFO: Initializing module dependency graph...
147 INFO: Initializing module graph hooks...
208 INFO: running Analysis out00-Analysis.toc
Traceback (most recent call last):
File "/usr/local/bin/pyinstaller", line 9, in
load_entry_point('PyInstaller==3.2.1', 'console_scripts', 'pyinstaller')()
File "/Library/Python/2.7/site-packages/PyInstaller/main.py", line 90, in run
run_build(pyi_config, spec_file, **vars(args))
File "/Library/Python/2.7/site-packages/PyInstaller/main.py", line 46, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "/Library/Python/2.7/site-packages/PyInstaller/building/build_main.py", line 788, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "/Library/Python/2.7/site-packages/PyInstaller/building/build_main.py", line 734, in build
exec(text, spec_namespace)
File "", line 16, in
File "/Library/Python/2.7/site-packages/PyInstaller/building/build_main.py", line 212, in init
self.postinit()
File "/Library/Python/2.7/site-packages/PyInstaller/building/datastruct.py", line 161, in postinit
self.assemble()
File "/Library/Python/2.7/site-packages/PyInstaller/building/build_main.py", line 373, in assemble
redirects=self.binding_redirects)[1:])
File "/Library/Python/2.7/site-packages/PyInstaller/depend/bindepend.py", line 227, in Dependencies
for lib, npth in selectImports(pth, xtrapath):
File "/Library/Python/2.7/site-packages/PyInstaller/depend/bindepend.py", line 500, in selectImports
dlls = getImports(pth)
File "/Library/Python/2.7/site-packages/PyInstaller/depend/bindepend.py", line 734, in getImports
return _getImports_macholib(pth)
File "/Library/Python/2.7/site-packages/PyInstaller/depend/bindepend.py", line 621, in _getImports_macholib
m = MachO(pth)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 69, in init
self.load(fp)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 79, in load
self.load_fat(fh)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 90, in load_fat
self.load_header(fh, arch.offset, arch.size)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 114, in load_header
hdr = MachOHeader(self, fh, offset, size, magic, hdr, endian)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 154, in init
self.load(fh)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 186, in load
raise ValueError("Unknown load command: %d" % (cmd_load.cmd,))
ValueError: Unknown load command: 50









share|improve this question






















  • How did you install pyinstaller? Have you tried upgrading or reinstalling?
    – tripleee
    Nov 9 at 11:17










  • yes, I've tried to upgrade to latest version but failed too. 3.4.1, 3.3.1, 3.2.1 nothing works
    – user300695
    Nov 10 at 12:27










  • And, again, how did you install it?
    – tripleee
    Nov 10 at 16:09










  • pip install --user pyinstaller using latest pyinstaller give me this error File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 851, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (altgraph 0.10.2 (/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python), Requirement.parse('altgraph>=0.15'), set(['macholib']))
    – user300695
    Nov 11 at 4:33










  • finally I can compile it.. pip install -U --user altgraph solved it..thank you
    – user300695
    Nov 11 at 4:35













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I got problem while compiling all my python code after update osx.
I found it lately after several days after upgrade high sierra to mojave. I don't know if it's os problem or pyinstaller library problem conflicts to another library.



here are the error message



pyinstaller --onefile --icon=upload.icns --name=uploader2 apps.py
96 INFO: PyInstaller: 3.2.1
96 INFO: Python: 2.7.10
108 INFO: Platform: Darwin-18.0.0-x86_64-i386-64bit
109 INFO: wrote /Users/applemacbookpro/code/myapps/uploader/uploader2.spec
120 INFO: UPX is not available.
121 INFO: Extending PYTHONPATH with paths
['/Users/applemacbookpro/code/myapps/uploader',
'/Users/applemacbookpro/code/myapps/uploader']
122 INFO: checking Analysis
139 INFO: Building because /Users/applemacbookpro/code/myapps/uploader/apps.py changed
139 INFO: Initializing module dependency graph...
147 INFO: Initializing module graph hooks...
208 INFO: running Analysis out00-Analysis.toc
Traceback (most recent call last):
File "/usr/local/bin/pyinstaller", line 9, in
load_entry_point('PyInstaller==3.2.1', 'console_scripts', 'pyinstaller')()
File "/Library/Python/2.7/site-packages/PyInstaller/main.py", line 90, in run
run_build(pyi_config, spec_file, **vars(args))
File "/Library/Python/2.7/site-packages/PyInstaller/main.py", line 46, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "/Library/Python/2.7/site-packages/PyInstaller/building/build_main.py", line 788, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "/Library/Python/2.7/site-packages/PyInstaller/building/build_main.py", line 734, in build
exec(text, spec_namespace)
File "", line 16, in
File "/Library/Python/2.7/site-packages/PyInstaller/building/build_main.py", line 212, in init
self.postinit()
File "/Library/Python/2.7/site-packages/PyInstaller/building/datastruct.py", line 161, in postinit
self.assemble()
File "/Library/Python/2.7/site-packages/PyInstaller/building/build_main.py", line 373, in assemble
redirects=self.binding_redirects)[1:])
File "/Library/Python/2.7/site-packages/PyInstaller/depend/bindepend.py", line 227, in Dependencies
for lib, npth in selectImports(pth, xtrapath):
File "/Library/Python/2.7/site-packages/PyInstaller/depend/bindepend.py", line 500, in selectImports
dlls = getImports(pth)
File "/Library/Python/2.7/site-packages/PyInstaller/depend/bindepend.py", line 734, in getImports
return _getImports_macholib(pth)
File "/Library/Python/2.7/site-packages/PyInstaller/depend/bindepend.py", line 621, in _getImports_macholib
m = MachO(pth)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 69, in init
self.load(fp)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 79, in load
self.load_fat(fh)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 90, in load_fat
self.load_header(fh, arch.offset, arch.size)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 114, in load_header
hdr = MachOHeader(self, fh, offset, size, magic, hdr, endian)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 154, in init
self.load(fh)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 186, in load
raise ValueError("Unknown load command: %d" % (cmd_load.cmd,))
ValueError: Unknown load command: 50









share|improve this question













I got problem while compiling all my python code after update osx.
I found it lately after several days after upgrade high sierra to mojave. I don't know if it's os problem or pyinstaller library problem conflicts to another library.



here are the error message



pyinstaller --onefile --icon=upload.icns --name=uploader2 apps.py
96 INFO: PyInstaller: 3.2.1
96 INFO: Python: 2.7.10
108 INFO: Platform: Darwin-18.0.0-x86_64-i386-64bit
109 INFO: wrote /Users/applemacbookpro/code/myapps/uploader/uploader2.spec
120 INFO: UPX is not available.
121 INFO: Extending PYTHONPATH with paths
['/Users/applemacbookpro/code/myapps/uploader',
'/Users/applemacbookpro/code/myapps/uploader']
122 INFO: checking Analysis
139 INFO: Building because /Users/applemacbookpro/code/myapps/uploader/apps.py changed
139 INFO: Initializing module dependency graph...
147 INFO: Initializing module graph hooks...
208 INFO: running Analysis out00-Analysis.toc
Traceback (most recent call last):
File "/usr/local/bin/pyinstaller", line 9, in
load_entry_point('PyInstaller==3.2.1', 'console_scripts', 'pyinstaller')()
File "/Library/Python/2.7/site-packages/PyInstaller/main.py", line 90, in run
run_build(pyi_config, spec_file, **vars(args))
File "/Library/Python/2.7/site-packages/PyInstaller/main.py", line 46, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "/Library/Python/2.7/site-packages/PyInstaller/building/build_main.py", line 788, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "/Library/Python/2.7/site-packages/PyInstaller/building/build_main.py", line 734, in build
exec(text, spec_namespace)
File "", line 16, in
File "/Library/Python/2.7/site-packages/PyInstaller/building/build_main.py", line 212, in init
self.postinit()
File "/Library/Python/2.7/site-packages/PyInstaller/building/datastruct.py", line 161, in postinit
self.assemble()
File "/Library/Python/2.7/site-packages/PyInstaller/building/build_main.py", line 373, in assemble
redirects=self.binding_redirects)[1:])
File "/Library/Python/2.7/site-packages/PyInstaller/depend/bindepend.py", line 227, in Dependencies
for lib, npth in selectImports(pth, xtrapath):
File "/Library/Python/2.7/site-packages/PyInstaller/depend/bindepend.py", line 500, in selectImports
dlls = getImports(pth)
File "/Library/Python/2.7/site-packages/PyInstaller/depend/bindepend.py", line 734, in getImports
return _getImports_macholib(pth)
File "/Library/Python/2.7/site-packages/PyInstaller/depend/bindepend.py", line 621, in _getImports_macholib
m = MachO(pth)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 69, in init
self.load(fp)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 79, in load
self.load_fat(fh)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 90, in load_fat
self.load_header(fh, arch.offset, arch.size)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 114, in load_header
hdr = MachOHeader(self, fh, offset, size, magic, hdr, endian)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 154, in init
self.load(fh)
File "/Library/Python/2.7/site-packages/PyInstaller/lib/macholib/MachO.py", line 186, in load
raise ValueError("Unknown load command: %d" % (cmd_load.cmd,))
ValueError: Unknown load command: 50






python python-2.7 pyinstaller






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 9 at 11:05









user300695

82




82












  • How did you install pyinstaller? Have you tried upgrading or reinstalling?
    – tripleee
    Nov 9 at 11:17










  • yes, I've tried to upgrade to latest version but failed too. 3.4.1, 3.3.1, 3.2.1 nothing works
    – user300695
    Nov 10 at 12:27










  • And, again, how did you install it?
    – tripleee
    Nov 10 at 16:09










  • pip install --user pyinstaller using latest pyinstaller give me this error File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 851, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (altgraph 0.10.2 (/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python), Requirement.parse('altgraph>=0.15'), set(['macholib']))
    – user300695
    Nov 11 at 4:33










  • finally I can compile it.. pip install -U --user altgraph solved it..thank you
    – user300695
    Nov 11 at 4:35


















  • How did you install pyinstaller? Have you tried upgrading or reinstalling?
    – tripleee
    Nov 9 at 11:17










  • yes, I've tried to upgrade to latest version but failed too. 3.4.1, 3.3.1, 3.2.1 nothing works
    – user300695
    Nov 10 at 12:27










  • And, again, how did you install it?
    – tripleee
    Nov 10 at 16:09










  • pip install --user pyinstaller using latest pyinstaller give me this error File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 851, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (altgraph 0.10.2 (/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python), Requirement.parse('altgraph>=0.15'), set(['macholib']))
    – user300695
    Nov 11 at 4:33










  • finally I can compile it.. pip install -U --user altgraph solved it..thank you
    – user300695
    Nov 11 at 4:35
















How did you install pyinstaller? Have you tried upgrading or reinstalling?
– tripleee
Nov 9 at 11:17




How did you install pyinstaller? Have you tried upgrading or reinstalling?
– tripleee
Nov 9 at 11:17












yes, I've tried to upgrade to latest version but failed too. 3.4.1, 3.3.1, 3.2.1 nothing works
– user300695
Nov 10 at 12:27




yes, I've tried to upgrade to latest version but failed too. 3.4.1, 3.3.1, 3.2.1 nothing works
– user300695
Nov 10 at 12:27












And, again, how did you install it?
– tripleee
Nov 10 at 16:09




And, again, how did you install it?
– tripleee
Nov 10 at 16:09












pip install --user pyinstaller using latest pyinstaller give me this error File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 851, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (altgraph 0.10.2 (/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python), Requirement.parse('altgraph>=0.15'), set(['macholib']))
– user300695
Nov 11 at 4:33




pip install --user pyinstaller using latest pyinstaller give me this error File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 851, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (altgraph 0.10.2 (/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python), Requirement.parse('altgraph>=0.15'), set(['macholib']))
– user300695
Nov 11 at 4:33












finally I can compile it.. pip install -U --user altgraph solved it..thank you
– user300695
Nov 11 at 4:35




finally I can compile it.. pip install -U --user altgraph solved it..thank you
– user300695
Nov 11 at 4:35

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53224530%2fhow-do-i-solve-valueerror-unknown-load-command-50-in-pyinstaller-osx%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53224530%2fhow-do-i-solve-valueerror-unknown-load-command-50-in-pyinstaller-osx%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Schultheiß

Verwaltungsgliederung Dänemarks

Liste der Kulturdenkmale in Wilsdruff