pythonol

J

John Martin

'pythonol' is a program for learning spanish. I think it's a really great
program. Unfortunately it ceased to work when I moved to SuSE 10 and 10.1 .
The author makes it clear on her website that she has devoted all the time
she's prepared to and won't maintain it. I think it's a shame as it's a
valuable educational tool. Sadly I know bugger all about python, this is
the error I get when running it.
---------------------------------------------------------------
/usr/share/Pythonol/sqlite/__init__.py:1: RuntimeWarning: Python C API version
mismatch for module _sqlite: This Python has API version 1012, module
_sqlite has version 1011.
import _sqlite
../pythonolui.py:137: DeprecationWarning: use gtk.UIManager
itemf=ItemFactory(MenuBar, "<main>", ag)
../pythonolui.py:392: DeprecationWarning: use gtk.ComboBoxEntry
conjcombo=Combo()
../pythonolui.py:398: Warning: unsupported arithmetic operation for flags
type
conjtable.attach(conjcombo,1,2,1,2,(EXPAND+FILL),(0),0,0)
Traceback (most recent call last):
File "./pythonolui.py", line 1945, in ?
run()
File "./pythonolui.py", line 1941, in run
pythonolwin()
File "./pythonolui.py", line 398, in __init__
conjtable.attach(conjcombo,1,2,1,2,(EXPAND+FILL),(0),0,0)
TypeError: flag values must be strings, ints, longs, or tuples
 
G

George Sakkis

John said:
'pythonol' is a program for learning spanish. I think it's a really great
program. Unfortunately it ceased to work when I moved to SuSE 10 and 10.1 .
The author makes it clear on her website that she has devoted all the time
she's prepared to and won't maintain it. I think it's a shame as it's a
valuable educational tool. Sadly I know bugger all about python, this is
the error I get when running it.
---------------------------------------------------------------
/usr/share/Pythonol/sqlite/__init__.py:1: RuntimeWarning: Python C API version
mismatch for module _sqlite: This Python has API version 1012, module
_sqlite has version 1011.
import _sqlite
./pythonolui.py:137: DeprecationWarning: use gtk.UIManager
itemf=ItemFactory(MenuBar, "<main>", ag)
./pythonolui.py:392: DeprecationWarning: use gtk.ComboBoxEntry
conjcombo=Combo()
./pythonolui.py:398: Warning: unsupported arithmetic operation for flags
type
conjtable.attach(conjcombo,1,2,1,2,(EXPAND+FILL),(0),0,0)
Traceback (most recent call last):
File "./pythonolui.py", line 1945, in ?
run()
File "./pythonolui.py", line 1941, in run
pythonolwin()
File "./pythonolui.py", line 398, in __init__
conjtable.attach(conjcombo,1,2,1,2,(EXPAND+FILL),(0),0,0)
TypeError: flag values must be strings, ints, longs, or tuples

Search and replace all "EXPAND+FILL" with "EXPAND|FILL" (vertical bar
instead of plus sign). This solves the specific error, though I've no
idea what else may be broken.

George
 
J

John Machin

John said:
'pythonol' is a program for learning spanish. I think it's a really great
program. Unfortunately it ceased to work when I moved to SuSE 10 and 10.1 .
The author makes it clear on her website that she has devoted all the time
she's prepared to and won't maintain it. I think it's a shame as it's a
valuable educational tool. Sadly I know bugger all about python, this is
the error I get when running it.

A good start might be to get a version of sqlite that's compatible with
your version of Python (or vice versa).

But I'd say that's likely to be only the first of a list of things that
need fixing ... perhaps someone who knows gtk can chip in and help. You
can help by providing some very basic information: what version of
Python are you running (would save guessing)? what is the URL of the
pythonol website (would save googling)?

Cheers,
John
 
J

John Martin

----------------- snip ---------------------------------------

Search and replace all "EXPAND+FILL" with "EXPAND|FILL" (vertical bar
instead of plus sign). This solves the specific error, though I've no
idea what else may be broken.

George

Brilliant! I still get lots of deprecation warnings about gtk but the
program runs perfectly.

Many thanks George and all you python peeps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top