Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyInstaller failed in IBM System P installed with Ubuntu 14.04 and CentOS 7.2 #2050

Closed
shane-zhang opened this issue Jun 15, 2016 · 3 comments

Comments

@shane-zhang
Copy link

shane-zhang commented Jun 15, 2016

I am trying to bundle an python script using PyInstaller, my platform is IBM System P equipped with Power8 LE CPU, and the OS is Ubuntu 14.04.

After installing from pip and also git, my script still could not be bundled.

The log says:

4346 INFO: checking EXE
4346 INFO: Building EXE because out00-EXE.toc is non existent
4346 INFO: Building EXE from out00-EXE.toc
4346 INFO: Appending archive to ELF section in EXE /home/shane/build/b/b
4368 DEBUG: objcopy returned 1
4368 DEBUG:
4369 DEBUG: objcopy: Unable to recognise the format of the input file `/home/shane/build/b/b'

Traceback (most recent call last):
  File "/usr/local/bin/pyinstaller", line 9, in <module>
    load_entry_point('PyInstaller==3.3.dev0-gd25657e', 'console_scripts', 'pyinstaller')()
  File "/usr/local/lib/python2.7/dist-packages/PyInstaller-3.3.dev0_gd25657e-py2.7.egg/PyInstaller/__main__.py", line 90, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "/usr/local/lib/python2.7/dist-packages/PyInstaller-3.3.dev0_gd25657e-py2.7.egg/PyInstaller/__main__.py", line 46, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/PyInstaller-3.3.dev0_gd25657e-py2.7.egg/PyInstaller/building/build_main.py", line 788, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
  File "/usr/local/lib/python2.7/dist-packages/PyInstaller-3.3.dev0_gd25657e-py2.7.egg/PyInstaller/building/build_main.py", line 734, in build
    exec(text, spec_namespace)
  File "<string>", line 26, in <module>
  File "/usr/local/lib/python2.7/dist-packages/PyInstaller-3.3.dev0_gd25657e-py2.7.egg/PyInstaller/building/api.py", line 407, in __init__
    self.__postinit__()
  File "/usr/local/lib/python2.7/dist-packages/PyInstaller-3.3.dev0_gd25657e-py2.7.egg/PyInstaller/building/datastruct.py", line 161, in __postinit__
    self.assemble()
  File "/usr/local/lib/python2.7/dist-packages/PyInstaller-3.3.dev0_gd25657e-py2.7.egg/PyInstaller/building/api.py", line 564, in assemble
    raise SystemError("objcopy Failure: %s" % stderr)
SystemError: objcopy Failure: objcopy: Unable to recognise the format of the input file `/home/shane/build/b/b'

It is just a simple "Hello world" script.

Update:
CentOS 7.2 also got the same error.

@shane-zhang shane-zhang changed the title PyInstaller failed in IBM System P installed with Ubuntu 14.04 PyInstaller failed in IBM System P installed with Ubuntu 14.04 and CentOS 7.2 Jun 15, 2016
@htgoebel
Copy link
Member

Please check the file-type of /home/shane/build/b/b and whether it is a valid file. Looks like objcopy is not able to handle this file-type. Maybe you'll need to contact your IBM support on this issue.

@htgoebel
Copy link
Member

I'm closing this as "invalid" since I think this is an operation system problem. If your investigations reveal some PyInstaller issue, feel free to re-open this issue.

@lubinsz
Copy link

lubinsz commented Sep 21, 2016

Hi shane-Git ,

I found the same issue on ppc64le platform.
This issue was caused by the existed pre-compiled bootloaders.
You should clean all the existed pre-compiled bootloaders, and re-generate it.

Please see the url(http://pyinstaller.readthedocs.io/en/stable/bootloader-building.html) as more reference.

Or you can use my method:
1, git clone https://github.com/pyinstaller/pyinstaller.git
2, cd pyinstaller && git checkout v3.1
3, cd bootloader
4, python ./waf distclean all --no-lsb
5, python waf configure --no-lsb build install

That's all.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants