Re: [Pythonmac-SIG] python help() >modules problem

2008-11-26 Thread George Wright
Well yes Joe - all runs well from demo.py. Some run well called on  
their own.
Slider.py and Sound.py for example. But not the SizedControls.py  
example.
But I don't want to get bogged down on this - it is the python help()  
modules thing I'd like to get going again.

On 23/11/2008, at 10:00 PM, Joe Strout wrote:


Hi George,

I don't have anything helpful to say on all of your questions, but I  
think I can help with this one:


On Nov 22, 2008, at 1:54 PM, George Wright wrote:

If I try to run wx demos from the developer examples I get a  
similar response:


python2.5 /Developer/Examples/wxWidgets/wxPython/demo/ 
SizedControls.py

...

wx._core.PyNoAppError: The wx.App object must be created first!


You aren't intended to run the individual files directly.  Instead,  
run demo.py.


HTH,
- Joe


George Wright
[EMAIL PROTECTED]
http://mywebsite.bigpond.net.au/georgewr
http://www.labyrinth.net.au/~gwright



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


Re: [Pythonmac-SIG] python help() >modules problem

2008-11-22 Thread Joe Strout

Hi George,

I don't have anything helpful to say on all of your questions, but I  
think I can help with this one:


On Nov 22, 2008, at 1:54 PM, George Wright wrote:

If I try to run wx demos from the developer examples I get a similar  
response:


python2.5 /Developer/Examples/wxWidgets/wxPython/demo/SizedControls.py

...

wx._core.PyNoAppError: The wx.App object must be created first!


You aren't intended to run the individual files directly.  Instead,  
run demo.py.


HTH,
- Joe

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


[Pythonmac-SIG] python help() >modules problem

2008-11-22 Thread George Wright

Gidday
When I start python2.5 (on OSX 2.5.4) in Terminal
then help()
then modules
I don't get the expected list of modules but this error:

help> modules

Please wait a moment while I gather a list of all available modules...

Leopard libedit detected.
Traceback (most recent call last):
  File "", line 1, in 
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site.py", line 348, in __call__

return pydoc.help(*args, **kwds)
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/pydoc.py", line 1647, in __call__

self.interact()
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/pydoc.py", line 1665, in interact

self.help(request)
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/pydoc.py", line 1681, in help

elif request == 'modules': self.listmodules()
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/pydoc.py", line 1802, in listmodules

ModuleScanner().run(callback)
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/pydoc.py", line 1853, in run

for importer, modname, ispkg in pkgutil.walk_packages():
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/pkgutil.py", line 110, in walk_packages

__import__(name)
  File "/usr/local/lib/wxPython-unicode-2.8.9.1/lib/python2.5/site- 
packages/wxaddons/__init__.py", line 29, in 

config = wx.Config("wxaddons")
  File "//usr/local/lib/wxPython-unicode-2.8.9.1/lib/python2.5/site- 
packages/wx-2.8-mac-unicode/wx/_misc.py", line 3298, in __init__

_misc_.Config_swiginit(self,_misc_.new_Config(*args, **kwargs))
wx._core.PyNoAppError: The wx.App object must be created first!

I don't understand why it is interested in wx.App ??

If I try to run wx demos from the developer examples I get a similar  
response:


python2.5 /Developer/Examples/wxWidgets/wxPython/demo/SizedControls.py
Traceback (most recent call last):
  File "/Developer/Examples/wxWidgets/wxPython/demo/ 
SizedControls.py", line 2, in 

import wxaddons.sized_controls as sc
  File "/usr/local/lib/wxPython-unicode-2.8.9.1/lib/python2.5/site- 
packages/wxaddons/__init__.py", line 29, in 

config = wx.Config("wxaddons")
  File "//usr/local/lib/wxPython-unicode-2.8.9.1/lib/python2.5/site- 
packages/wx-2.8-mac-unicode/wx/_misc.py", line 3298, in __init__

_misc_.Config_swiginit(self,_misc_.new_Config(*args, **kwargs))
wx._core.PyNoAppError: The wx.App object must be created first!


Furthermore:
If I start python2.6 I do get the asked for list of modules but the  
Python application fires up
and bounces in dock until it eventually stops and reports "Application  
Not Responding"



Anyone help?

George Wright
[EMAIL PROTECTED]
http://mywebsite.bigpond.net.au/georgewr
http://www.labyrinth.net.au/~gwright



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