2

I am using PyInstaller in Mac OS X with Python 2.7.11 and have encountered issues when trying to generate the single file distributable using pyinstaller --onefile devprog.spec.

To summarise the output, I see:

4622 INFO: Loading module hooks...
4622 INFO: Loading module hook "hook-gtk.py"...
4625 WARNING: Hidden import "gtkglext" not found!
4626 WARNING: Hidden import "gdkgl" not found!
4627 WARNING: Hidden import "gdkglext" not found!
4628 WARNING: Hidden import "gtk.gdk" not found!
4628 WARNING: Hidden import "gtk.gtkgl" not found!
4628 WARNING: Hidden import "gtk.gtkgl._gtkgl" not found!
4630 WARNING: Hidden import "gtkgl" not found!
4636 WARNING: Hidden import "gtk.glade" not found!

When I then run the executable I get the following output:

2017-01-11 15:49:21.596 devprog[3508:143573] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead. 
> Programmer
> running
 > Gui __init__
Running in a bundle
Abs path: /var/folders/vj/dyr0qmbs1wn6q84z9rk22dd00000gn/T/_MEItMf9Hz
runtime_dir = /var/folders/vj/dyr0qmbs1wn6q84z9rk22dd00000gn/T/_MEItMf9Hz
Script location: devprog.py
> initProgrammer
> initCommander
> initMessenger
> commanderPanel
objc[3508]: Class GNotificationCenterDelegate is implemented in both /var/folders/vj/dyr0qmbs1wn6q84z9rk22dd00000gn/T/_MEItMf9Hz/libgio-2.0.0.dylib and /usr/local/opt/glib/lib/libgio-2.0.0.dylib. One of the two will be used. Which one is undefined.
Failed to execute script devprog
Traceback (most recent call last):
  File "devprog.py", line 1579, in <module>
  File "devprog.py", line 491, in __init__
  File "devprog.py", line 249, in commanderPanel
AttributeError: '__main__.g-option-context-error-quark' object has no attribute 'scale_simple'

I have tried various solutions, such as specifying hidden imports, as indicated by the PyInstaller documentation and forums, but still get this issue. Any suggestions appreciated.

Thanks, Darren

Darren
  • 41
  • 4

0 Answers0