Re: [PyInstaller] OS X build, problem in scan_code_for_ctypes

75 views
Skip to first unread message

Martin Zibricky

unread,
Apr 24, 2013, 6:02:54 AM4/24/13
to pyins...@googlegroups.com
Michka Popoff píše v Út 23. 04. 2013 v 13:37 -0700:
> Could somebody give me a hint on why it crashed ? Some path seems to
> be set to None (bin) ?.
>
> Thanks in advance
>
> Michka Popoff

Could you give us a few lines code example that reproduces this issue?

Michka Popoff

unread,
Apr 24, 2013, 7:31:25 AM4/24/13
to pyins...@googlegroups.com
Hi

I just reduced the problem to a few lines, it seems to be a problem with matplotlib (which is 1.2.0 in macports) :

#!/usr/bin/env python


import matplotlib


def main():

    

    print "test"

    

if __name__ == "__main__":

    main()

Michka Popoff

unread,
Apr 25, 2013, 2:12:35 AM4/25/13
to pyins...@googlegroups.com
I just tested it this morning on another computer with OS 10.8.3 and macports, same problem.

Martin Zibricky

unread,
Apr 27, 2013, 6:21:09 PM4/27/13
to pyins...@googlegroups.com
Michka Popoff píše v St 24. 04. 2013 v 23:12 -0700:
> I just tested it this morning on another computer with OS 10.8.3 and
> macports, same problem.
>
> On Wednesday, April 24, 2013 1:31:25 PM UTC+2, Michka Popoff wrote:
> Hi
>
>
> I just reduced the problem to a few lines, it seems to be a
> problem with matplotlib (which is 1.2.0 in macports) :
> #!/usr/bin/env python
> import matplotlib

It is a real issue. Please try my branch. It should be fixed there:

https://github.com/matysek/pyinstaller

PyInstaller was failing because of the following code in module
PyObjC.objc._bridgesupport:

dll = ctypes.CDLL(None)

Thanks

Michka Popoff

unread,
Apr 28, 2013, 9:29:38 AM4/28/13
to pyins...@googlegroups.com
Nice, it works ! (tested on 10.8.3).

Thank you for the patch :)

Martin Zibricky

unread,
Apr 28, 2013, 10:38:15 AM4/28/13
to pyins...@googlegroups.com
Michka Popoff píše v Ne 28. 04. 2013 v 06:29 -0700:
> Nice, it works ! (tested on 10.8.3).
>
> Thank you for the patch :)
>
>

Could you please update my branch and verify that the following bug is
fixed?

http://www.pyinstaller.org/ticket/617

Matplotlib config dir should be created in temp directory and not in
$HOME/.matplotlib.

Thanks

Michka Popoff

unread,
Apr 28, 2013, 11:50:52 AM4/28/13
to pyins...@googlegroups.com
I just wanted to test you updated branch and found a new problem.

Previously, when I said it worked, it did pass the building step, but when you launch the frozen app, it will crash with the following error message :

Traceback (most recent call last):
  File "<string>", line 11, in <module>
  File "/Users/michkapopoff/Desktop/pyinstaller-branch/main/dist/main/eggs/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 698, in <module>
  File "/Users/michkapopoff/Desktop/pyinstaller-branch/main/dist/main/eggs/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 701, in Environment
  File "/Users/michkapopoff/Desktop/pyinstaller-branch/main/dist/main/eggs/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 99, in get_supported_platform
  File "/Users/michkapopoff/Desktop/pyinstaller-branch/main/dist/main/eggs/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 209, in _macosx_vers
  File "/Users/michkapopoff/Desktop/pyinstaller-branch/main/build/main/out00-PYZ.pyz/platform", line 804, in mac_ver
  File "/Users/michkapopoff/Desktop/pyinstaller-branch/main/build/main/out00-PYZ.pyz/platform", line 781, in _mac_ver_xml
  File "/Users/michkapopoff/Desktop/pyinstaller-branch/main/build/main/out00-PYZ.pyz/plistlib", line 78, in readPlist
  File "/Users/michkapopoff/Desktop/pyinstaller-branch/main/build/main/out00-PYZ.pyz/plistlib", line 406, in parse
  File "/Users/michkapopoff/Desktop/pyinstaller-branch/main/build/main/out00-PYZ.pyz/plistlib", line 418, in handleEndElement
  File "/Users/michkapopoff/Desktop/pyinstaller-branch/main/build/main/out00-PYZ.pyz/plistlib", line 452, in end_key
  File "/Users/michkapopoff/Desktop/pyinstaller-branch/main/build/main/out00-PYZ.pyz/plistlib", line 436, in getData
LookupError: no codec search functions registered: can't find encoding

It seems to be related to the following bug : http://www.pyinstaller.org/ticket/651

I can test 617 when 651 is solved. Should I post a comment in 651 to try to help to this bugs resolution ?

Martin Zibricky

unread,
Apr 28, 2013, 1:50:50 PM4/28/13
to pyins...@googlegroups.com
Michka Popoff píše v Ne 28. 04. 2013 v 08:50 -0700:
> It seems to be related to the following
> bug : http://www.pyinstaller.org/ticket/651
>
> I can test 617 when 651 is solved. Should I post a comment in 651 to
> try to help to this bugs resolution ?

The question still is how to reproduce this issue.

Could you strip down your app to just a few lines as you did for the
previous issue?

Michka Popoff

unread,
May 11, 2013, 5:52:07 AM5/11/13
to pyins...@googlegroups.com
Hi

As bug #651 seems solved for me (adding the import encodings), I was able to test the fix for the .matplotlib (#617).
No .matplotlib folder is created in home. But I was not able to determine where the temp folder is/should be created ?
> --
> You received this message because you are subscribed to a topic in the Google Groups "PyInstaller" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyinstaller/qIziFP-8-RM/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to pyinstaller...@googlegroups.com.
> To post to this group, send email to pyins...@googlegroups.com.
> Visit this group at http://groups.google.com/group/pyinstaller?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Reply all
Reply to author
Forward
0 new messages