Re: [Pythonmac-SIG] No module named altgraph-0

2012-08-16 Thread Ronald Oussoren
Hi,

Is your app this salstat http://salstat.sourceforge.net?

The traceback seems to indicate that the sip recipe (for PyQt support) tries to 
import 'altgraph-0'.  Could you try if the attached patch fixes the issue?

BTW. You're running the setup.py as root, that shouldn't be necessary and in 
general is a security risk.

Ronald



py2app_sip.patch
Description: Binary data



On 15 Aug, 2012, at 18:25, Mark Livingstone livingstonem...@gmail.com wrote:
 
 
 renaissance-eth1:src mlivingstone$ sudo python
 ../mac-setup/setup_py2app.py py2app
 running py2app
 creating 
 /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/build/bdist.macosx-10.8-x86_64/python2.7-standalone/app
 creating 
 /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/build/bdist.macosx-10.8-x86_64/python2.7-standalone/app/collect
 creating 
 /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/build/bdist.macosx-10.8-x86_64/python2.7-standalone/app/temp
 creating 
 /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/dist
 creating build/bdist.macosx-10.8-x86_64/python2.7-standalone/app/lib-dynload
 creating build/bdist.macosx-10.8-x86_64/python2.7-standalone/app/Frameworks
 /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/salstat.py:615:
 SyntaxWarning: import * only allowed at module level
  def _createMenu(self):
 /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/salstat.py:615:
 SyntaxWarning: import * only allowed at module level
  def _createMenu(self):
 *** using recipe: virtualenv ***
 WARNING: PyQt uic module found.
 avoid python3 metaclass syntax errors by adding 'PyQt4.uic' to your
 excludes option.
 Traceback (most recent call last):
  File ../mac-setup/setup_py2app.py, line 61, in module
BuildOSXApp()
  File ../mac-setup/setup_py2app.py, line 54, in BuildOSXApp
setup_requires = ['py2app'],
  File 
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py,
 line 152, in setup
dist.run_commands()
  File 
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py,
 line 953, in run_commands
self.run_command(cmd)
  File 
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py,
 line 972, in run_command
cmd_obj.run()
  File 
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/build_app.py,
 line 492, in run
self._run()
  File 
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/build_app.py,
 line 655, in _run
self.run_normal()
  File 
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/build_app.py,
 line 728, in run_normal
self.process_recipes(mf, filters, flatpackages, loader_files)
  File 
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/build_app.py,
 line 619, in process_recipes
rval = check(self, mf)
  File 
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/recipes/sip.py,
 line 90, in check
mf.import_hook(pkg, m)
  File 
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/modulegraph-0.10-py2.7.egg/modulegraph/modulegraph.py,
 line 688, in import_hook
q, tail = self.find_head_package(parent, name, level)
  File 
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/modulegraph-0.10-py2.7.egg/modulegraph/modulegraph.py,
 line 771, in find_head_package
raise ImportError(No module named  + qname)
 ImportError: No module named altgraph-0
 renaissance-eth1:src mlivingstone$
 ___
 Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
 http://mail.python.org/mailman/listinfo/pythonmac-sig
 unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG



smime.p7s
Description: S/MIME cryptographic signature
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] wxCocoa no top menu

2012-08-16 Thread Mark Livingstone
On 16 August 2012 15:57, Ronald Oussoren ronaldousso...@mac.com wrote:

 Looking at the documentation of wx I'd say this behavior is expected. When 
 you click on the green led the window is maximized, and ShowFullScreen makes 
 the window a full screen window (simular to the arrow icon's in the lefthand 
 corner of Safari on recent OSX versions, and simular to how full-screen games 
 work). Wx also has a Maximize method that does do the same thing as the green 
 LED.

Yes, that was it. Since my app has a spreadsheet-like grid as its UI,
I just did a frame.maximize() before the frame.Show() and it works
beautifully.

I presume that 32 bit Carbon wx 2.8.* must have started maximized as
standard, while wx 2.9.4 Cocoa 64 bit doesn't.

Since everyone has been following the saga, I can say that with a
small patch to py2app from Ronald, I have been able to successfully
create a salstat.app which, once I include a few minor modules (aui
constants IIRC) looks like it will work nicely under 64 bit wxCocoa
2.9.4 for Lion  Mountain Lion with py2.7, wxPython, PyQT, sip, pydoc,
PIL, matplotlib, bumpy, scipy, xlrd, xlwt, using Macports. This was
all done on my Mountain Lion machine. I haven't gotten back to the the
Python.org mess yet ;-) 32 bit Carbon still works fine from Source at
present other than the vanishing font dialog which is a known wx
won't fix - not a major issue!

Cheers,

MArkL
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG