By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,922 Members | 1,493 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,922 IT Pros & Developers. It's quick & easy.

Problem Running Working Code on Mac

P: n/a
I'm newish to python and just got my first mac, so sorry if this is
stupid. I have a little app developed by someone else in wxGlade that
implements a complex stats package and language package, all in python.
It works fine on my work PC, but not on my laptop. I have a new
macbook 2ghz core duo, running os x 10.4.8 with python 2.5 installed (I
didn't erase the base 2.3, just put /usr/local/bin at the start of
$PATH), along with the latest wxPython, can't remember the version
number. I need to add a few more components from the stats package,
and I'd like eventually to pretty up the cheap GUI I was given, but
that'd be icing. When I try either python <filenameor pythonw
<filename>, I get this error:

WARNING:root:Could not import module "PyPar", defining sequential
interface
WARNING:root:No MySQLdb module available
WARNING:root:No pgdb module (PostgreSQL) available
Traceback (most recent call last):
File "febrlgui.py", line 513, in <module>
frame_1 = MyFrame(None, -1, "")
File "febrlgui.py", line 198, in __init__
self.__set_properties()
File "febrlgui.py", line 355, in __set_properties
self.a_box1.SetSelection(-1)
File
"//Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-ansi/wx/_core.py",
line 11487, in SetSelection
return _core_.ItemContainer_SetSelection(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "IsValid(n)" failed at
/BUILD/wxPython-src-2.8.0.1/src/mac/carbon/choice.cpp(242) in
GetString(): wxChoice::GetString(): invalid index

Of course I'm traveling soon and need to be able to work on this on my
macbook, so it's down to panic time. Any help is GREATLY appreciated.

Thanks,
Matt

Jan 4 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Also, if it makes a difference, the lines quoted in the error message
were actually written automatically by wxGlade.

Jan 4 '07 #2

P: n/a
hg
goodepic wrote:
I'm newish to python and just got my first mac, so sorry if this is
stupid. I have a little app developed by someone else in wxGlade that
implements a complex stats package and language package, all in python.
It works fine on my work PC, but not on my laptop. I have a new
macbook 2ghz core duo, running os x 10.4.8 with python 2.5 installed (I
didn't erase the base 2.3, just put /usr/local/bin at the start of
$PATH), along with the latest wxPython, can't remember the version
number. I need to add a few more components from the stats package,
and I'd like eventually to pretty up the cheap GUI I was given, but
that'd be icing. When I try either python <filenameor pythonw
<filename>, I get this error:

WARNING:root:Could not import module "PyPar", defining sequential
interface
WARNING:root:No MySQLdb module available
WARNING:root:No pgdb module (PostgreSQL) available
Traceback (most recent call last):
File "febrlgui.py", line 513, in <module>
frame_1 = MyFrame(None, -1, "")
File "febrlgui.py", line 198, in __init__
self.__set_properties()
File "febrlgui.py", line 355, in __set_properties
self.a_box1.SetSelection(-1)
File
"//Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-ansi/wx/_core.py",
line 11487, in SetSelection
return _core_.ItemContainer_SetSelection(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "IsValid(n)" failed at
/BUILD/wxPython-src-2.8.0.1/src/mac/carbon/choice.cpp(242) in
GetString(): wxChoice::GetString(): invalid index

Of course I'm traveling soon and need to be able to work on this on my
macbook, so it's down to panic time. Any help is GREATLY appreciated.

Thanks,
Matt

I'd get rid of the warnings first by installing the correct librairies
(PyPar, MySQLDB, pgdb) .... who knows what the side effect are ?

hg

Jan 4 '07 #3

P: n/a
I got rid of all the warnings but the pgdb one. I got postgresql and
pygresql installed, but the pgdb installed on the base python install
of python 2.3, and isn't found by my updated python 2.5 install, into
which I've successfully installed the other modules I needed.

Anyway, getting mysql and pypar didn't help, and I get those same three
exact warnings when I run the script successfully on my work PC. I'm
getting the same exact error quoted above still.

Any more ideas? I really appreciate any help here!!

Jan 5 '07 #4

P: n/a
I got pgdb installed right, so I've got no more warnings. Otherwise
the output is exactly the same as quoted above!!

Jan 5 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.