Error build executable on Mac OS X

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Error build executable on Mac OS X

Thorsten Kampe
Hi,

the following error occurs trying to build an executable on OS X
Yosemite. This is the standard Python 2.7.6 64-bit.

File
"/Users/thorsten/Desktop/script/pyinstaller/pyinstaller2/PyInstaller/
lib/macholib/MachO.py", line 229, in load seg.add_section_data(sd)
AttributeError: 'section_64' object has no attribute
'add_section_data'

Thorsten

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error build executable on Mac OS X

Hartmut Goebel
Am 22.03.2015 um 22:21 schrieb Thorsten Kampe:
AttributeError: 'section_64' object has no attribute 
'add_section_data'

This is weird, because section_64.add_section_data is defined in PyInstaller/lib/macholib/mach_o.py.
Are you using the latest developer version of PyInstaller?

--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP
Information Security Management, Security Governance, Secure Software Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog: http://www.goebel-consult.de/blog/offi-als-alternative-zum-db-navigator
Kolumne: http://www.cissp-gefluester.de/2012-01-in-die-cloud-in-die-cloud-aber-wo-soll-die-sein

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error build executable on Mac OS X

Thorsten Kampe
* Hartmut Goebel (Mon, 23 Mar 2015 08:59:51 +0100)
> Am 22.03.2015 um 22:21 schrieb Thorsten Kampe:
> > AttributeError: 'section_64' object has no attribute
> > 'add_section_data'
>
> This is weird, because section_64.add_section_data is defined in
> PyInstaller/lib/macholib/mach_o.py.

I `git pull`ed the PyInstaller2 repository just yesterday:

> ag section_64 pyinstaller\pyinstaller2\
pyinstaller\pyinstaller2\/PyInstaller/lib/macholib/MachO.py
202:                    section_cls = section_64

pyinstaller\pyinstaller2\/PyInstaller/lib/macholib/mach_o.py
561:class section_64(Structure):

Thorsten

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error build executable on Mac OS X

Thorsten Kampe
In reply to this post by Hartmut Goebel
* Hartmut Goebel (Mon, 23 Mar 2015 08:59:51 +0100)
>
> Am 22.03.2015 um 22:21 schrieb Thorsten Kampe:
> > AttributeError: 'section_64' object has no attribute
> > 'add_section_data'
>
> This is weird, because section_64.add_section_data is defined in
> PyInstaller/lib/macholib/mach_o.py.

The error is from MachO.py - but add_section_data is defined in
mach_o.py. May that be related?

  File
"/Users/thorsten/Desktop/script/pyinstaller/pyinstaller2/PyInstaller/
bindepend.py", line 602, in getImports
    return _getImports_macholib(pth)
  File
"/Users/thorsten/Desktop/script/pyinstaller/pyinstaller2/PyInstaller/
bindepend.py", line 503, in _getImports_macholib
    m = MachO(pth)
  File
"/Users/thorsten/Desktop/script/pyinstaller/pyinstaller2/PyInstaller/
lib/macholib/MachO.py", line 69, in __init__
    self.load(fp)
  File
"/Users/thorsten/Desktop/script/pyinstaller/pyinstaller2/PyInstaller/
lib/macholib/MachO.py", line 79, in load
    self.load_fat(fh)
  File
"/Users/thorsten/Desktop/script/pyinstaller/pyinstaller2/PyInstaller/
lib/macholib/MachO.py", line 90, in load_fat
    self.load_header(fh, arch.offset, arch.size)
  File
"/Users/thorsten/Desktop/script/pyinstaller/pyinstaller2/PyInstaller/
lib/macholib/MachO.py", line 114, in load_header
    hdr = MachOHeader(self, fh, offset, size, magic, hdr, endian)
  File
"/Users/thorsten/Desktop/script/pyinstaller/pyinstaller2/PyInstaller/
lib/macholib/MachO.py", line 154, in __init__
    self.load(fh)
  File
"/Users/thorsten/Desktop/script/pyinstaller/pyinstaller2/PyInstaller/
lib/macholib/MachO.py", line 229, in load
    seg.add_section_data(sd)
AttributeError: 'section_64' object has no attribute
'add_section_data'

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error build executable on Mac OS X

Thorsten Kampe
In reply to this post by Hartmut Goebel
* Hartmut Goebel (Mon, 23 Mar 2015 08:59:51 +0100)
> Am 22.03.2015 um 22:21 schrieb Thorsten Kampe:
> > AttributeError: 'section_64' object has no attribute
> > 'add_section_data'
>
> This is weird, because section_64.add_section_data is defined in
> PyInstaller/lib/macholib/mach_o.py.

I installed Python 2 and 3 from Homebrew and was able to build a
binaries against those two without any problems. Is this a known
issue with the standard Python interpreter on OS X?

Thorsten

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error build executable on Mac OS X

Hartmut Goebel
Am 28.03.2015 um 09:02 schrieb Thorsten Kampe:
I installed Python 2 and 3 from Homebrew and was able to build a 
binaries against those two without any problems. Is this a known 
issue with the standard Python interpreter on OS X?

Thanks for reporting your success.

There are quite a lof of OS-X related issues in the bug-tracker. I'm not an Apple guy, so I do not follow them. (But I have the impression that OS X is a mine-field for Python programmers.) Please check if there is already an issue and if not please add one – or even better: provide a pull-request :-)

The bug tracker can be found at <https://github.com/pyinstaller/pyinstaller/issues/>


--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP
Information Security Management, Security Governance, Secure Software Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog: http://www.goebel-consult.de/blog/install-cyanogenmod-on-s3-mini-using-linux
Kolumne: http://www.cissp-gefluester.de/2010-07-passwoerter-lieben-lernen

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Error build executable on Mac OS X

carlos.p.a.87
I am having exactly the same issue on the standard Python 2.7.5 64-bit on osx 10.9. Has anybody else encountered this, or is there any solution other than having to install install python again with homebrew?


On Saturday, 28 March 2015 11:16:45 UTC, Hartmut Goebel wrote:
Am 28.03.2015 um 09:02 schrieb Thorsten Kampe:
I installed Python 2 and 3 from Homebrew and was able to build a 
binaries against those two without any problems. Is this a known 
issue with the standard Python interpreter on OS X?

Thanks for reporting your success.

There are quite a lof of OS-X related issues in the bug-tracker. I'm not an Apple guy, so I do not follow them. (But I have the impression that OS X is a mine-field for Python programmers.) Please check if there is already an issue and if not please add one – or even better: provide a pull-request :-)

The bug tracker can be found at <a href="https://github.com/pyinstaller/pyinstaller/issues/" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fpyinstaller%2Fpyinstaller%2Fissues%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHnal-ebthHDW673HBmppa6Hpwg0w';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fpyinstaller%2Fpyinstaller%2Fissues%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHnal-ebthHDW673HBmppa6Hpwg0w';return true;"><https://github.com/pyinstaller/pyinstaller/issues/>


--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP
Information Security Management, Security Governance, Secure Software Development

Goebel Consult, Landshut
<a style="color:black" href="http://www.goebel-consult.de" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.goebel-consult.de\46sa\75D\46sntz\0751\46usg\75AFQjCNHs4zUB0fQIL_Yg4brDiF83WXvPcg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.goebel-consult.de\46sa\75D\46sntz\0751\46usg\75AFQjCNHs4zUB0fQIL_Yg4brDiF83WXvPcg';return true;">http://www.goebel-consult.de

Blog: <a style="color:grey!important;text-decoration:none!important" href="http://www.goebel-consult.de/blog/install-cyanogenmod-on-s3-mini-using-linux" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.goebel-consult.de%2Fblog%2Finstall-cyanogenmod-on-s3-mini-using-linux\46sa\75D\46sntz\0751\46usg\75AFQjCNEo64b5LkiXMi7GrUljdli8c0_A_g';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.goebel-consult.de%2Fblog%2Finstall-cyanogenmod-on-s3-mini-using-linux\46sa\75D\46sntz\0751\46usg\75AFQjCNEo64b5LkiXMi7GrUljdli8c0_A_g';return true;">http://www.goebel-consult.de/blog/install-cyanogenmod-on-s3-mini-using-linux
Kolumne: <a style="color:grey!important;text-decoration:none!important" href="http://www.cissp-gefluester.de/2010-07-passwoerter-lieben-lernen" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.cissp-gefluester.de%2F2010-07-passwoerter-lieben-lernen\46sa\75D\46sntz\0751\46usg\75AFQjCNGy2NppDtEVkF-kxASoiLZDk-2HqQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.cissp-gefluester.de%2F2010-07-passwoerter-lieben-lernen\46sa\75D\46sntz\0751\46usg\75AFQjCNGy2NppDtEVkF-kxASoiLZDk-2HqQ';return true;">http://www.cissp-gefluester.de/2010-07-passwoerter-lieben-lernen

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error build executable on Mac OS X

carlos.p.a.87
Nobody?

I've been able to get around this issue in my dev machine by the suggestion here of using python from brew, but I need to be able to build this in a computer that does not have brew installed. The same spec file (link to the spec)works in linux as well, so I am not really sure what the problem can be.




On Wednesday, 3 June 2015 08:19:32 UTC+1, [hidden email] wrote:
I am having exactly the same issue on the standard Python 2.7.5 64-bit on osx 10.9. Has anybody else encountered this, or is there any solution other than having to install install python again with homebrew?


On Saturday, 28 March 2015 11:16:45 UTC, Hartmut Goebel wrote:
Am 28.03.2015 um 09:02 schrieb Thorsten Kampe:
I installed Python 2 and 3 from Homebrew and was able to build a 
binaries against those two without any problems. Is this a known 
issue with the standard Python interpreter on OS X?

Thanks for reporting your success.

There are quite a lof of OS-X related issues in the bug-tracker. I'm not an Apple guy, so I do not follow them. (But I have the impression that OS X is a mine-field for Python programmers.) Please check if there is already an issue and if not please add one – or even better: provide a pull-request :-)

The bug tracker can be found at <a href="https://github.com/pyinstaller/pyinstaller/issues/" rel="nofollow" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fpyinstaller%2Fpyinstaller%2Fissues%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHnal-ebthHDW673HBmppa6Hpwg0w';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fpyinstaller%2Fpyinstaller%2Fissues%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHnal-ebthHDW673HBmppa6Hpwg0w';return true;"><https://github.com/pyinstaller/pyinstaller/issues/>


--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP
Information Security Management, Security Governance, Secure Software Development

Goebel Consult, Landshut
<a style="color:black" href="http://www.goebel-consult.de" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.goebel-consult.de\46sa\75D\46sntz\0751\46usg\75AFQjCNHs4zUB0fQIL_Yg4brDiF83WXvPcg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.goebel-consult.de\46sa\75D\46sntz\0751\46usg\75AFQjCNHs4zUB0fQIL_Yg4brDiF83WXvPcg';return true;">http://www.goebel-consult.de

Blog: <a style="color:grey!important;text-decoration:none!important" href="http://www.goebel-consult.de/blog/install-cyanogenmod-on-s3-mini-using-linux" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.goebel-consult.de%2Fblog%2Finstall-cyanogenmod-on-s3-mini-using-linux\46sa\75D\46sntz\0751\46usg\75AFQjCNEo64b5LkiXMi7GrUljdli8c0_A_g';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.goebel-consult.de%2Fblog%2Finstall-cyanogenmod-on-s3-mini-using-linux\46sa\75D\46sntz\0751\46usg\75AFQjCNEo64b5LkiXMi7GrUljdli8c0_A_g';return true;">http://www.goebel-consult.de/blog/install-cyanogenmod-on-s3-mini-using-linux
Kolumne: <a style="color:grey!important;text-decoration:none!important" href="http://www.cissp-gefluester.de/2010-07-passwoerter-lieben-lernen" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.cissp-gefluester.de%2F2010-07-passwoerter-lieben-lernen\46sa\75D\46sntz\0751\46usg\75AFQjCNGy2NppDtEVkF-kxASoiLZDk-2HqQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.cissp-gefluester.de%2F2010-07-passwoerter-lieben-lernen\46sa\75D\46sntz\0751\46usg\75AFQjCNGy2NppDtEVkF-kxASoiLZDk-2HqQ';return true;">http://www.cissp-gefluester.de/2010-07-passwoerter-lieben-lernen

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error build executable on Mac OS X

Raoul Snyman

I am using Python 3.4 64-bit on 10.9 but I installed it from MacPorts. My guess is that there's a problem with the version of Python bundled with OS X (which wouldn't be the first time either).


On Thu, 11 Jun 2015, 05:11  <[hidden email]> wrote:
Nobody?

I've been able to get around this issue in my dev machine by the suggestion here of using python from brew, but I need to be able to build this in a computer that does not have brew installed. The same spec file (link to the spec)works in linux as well, so I am not really sure what the problem can be.





On Wednesday, 3 June 2015 08:19:32 UTC+1, [hidden email] wrote:
I am having exactly the same issue on the standard Python 2.7.5 64-bit on osx 10.9. Has anybody else encountered this, or is there any solution other than having to install install python again with homebrew?


On Saturday, 28 March 2015 11:16:45 UTC, Hartmut Goebel wrote:
Am 28.03.2015 um 09:02 schrieb Thorsten Kampe:
I installed Python 2 and 3 from Homebrew and was able to build a 
binaries against those two without any problems. Is this a known 
issue with the standard Python interpreter on OS X?

Thanks for reporting your success.

There are quite a lof of OS-X related issues in the bug-tracker. I'm not an Apple guy, so I do not follow them. (But I have the impression that OS X is a mine-field for Python programmers.) Please check if there is already an issue and if not please add one – or even better: provide a pull-request :-)

The bug tracker can be found at <https://github.com/pyinstaller/pyinstaller/issues/>


--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP
Information Security Management, Security Governance, Secure Software Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog: http://www.goebel-consult.de/blog/install-cyanogenmod-on-s3-mini-using-linux
Kolumne: http://www.cissp-gefluester.de/2010-07-passwoerter-lieben-lernen

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error build executable on Mac OS X

Eko Suprapto Wibowo
In reply to this post by Thorsten Kampe
Hi,

Has anyone succeed in solving this issue?
Previously I have been able to avoid macholib error by using Python 2.7.9 coming from brew. But now brew is using Python 2.7.10 .. and I have the same issue again.

I am now trying to install Python 2.7.9 from brew to try avoiding this error... still working :)

Thanks,
Eko

Pada Senin, 23 Maret 2015 04.22.24 UTC+7, Thorsten menulis:
Hi,

the following error occurs trying to build an executable on OS X
Yosemite. This is the standard Python 2.7.6 64-bit.

File
"/Users/thorsten/Desktop/script/pyinstaller/pyinstaller2/PyInstaller/
lib/macholib/MachO.py", line 229, in load seg.add_section_data(sd)
AttributeError: 'section_64' object has no attribute
'add_section_data'

Thorsten

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.