wjaneal / Math-Question-Generator

Uses Python to Automatically Generate PDF Question and Answer Sheets for K-12 math.
3 stars 3 forks source link

python GUI.py error? #4

Open johnfelipe opened 10 years ago

johnfelipe commented 10 years ago

i do this:

git clone https://github.com/wjaneal/Math-Question-Generator
cd Math-Question-Generator
sudo apt-get install Python-tk
python GUI.py

Python-tk installed (Setting up python-tk (2.7.4-0ubuntu1) )

notroot@dhcppc8:~/Math-Question-Generator$ python GUI.py
GUI.py:51: SyntaxWarning: import * only allowed at module level
  class simpleapp_tk(Tkinter.Tk):
[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997]
a:     992
496.0 2.0
248.0 2.0
124.0 2.0
62.0 2.0
31.0 2.0
1.0 31
[2.0, 2.0, 2.0, 2.0, 2.0, 31]
[['AR', 'Addition Pairs'], ['AR', 'Addition Pairs Plus One'], ['AR', 'Multiplication'], ['AR', 'Simple Addition'], ['AR', 'Simple Subtraction'], ['AR', 'Vertical Addition'], ['FR', 'Fraction Addition'], ['FR', 'Greatest Common Divisor'], ['FR', 'Least Common Multiple'], ['FR', 'Prime Factorization'], ['QU', 'Factor Quadratic Expressions'], ['QU', 'Number of Roots'], ['QU', 'Quadratic Formula']]
Traceback (most recent call last):
  File "GUI.py", line 212, in <module>
    app = simpleapp_tk(None)
  File "GUI.py", line 55, in __init__
    Tkinter.Tk.__init__(self,parent)
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1748, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable
wjaneal commented 10 years ago

Maybe a DISPLAY environment variable needs to be installed. Something like: export DISPLAY=localhost:0

johnfelipe commented 10 years ago

where or how install that?

wjaneal commented 10 years ago

I think you can invoke this command in the terminal.

johnfelipe commented 10 years ago

i do this in this moment:

sudo apt-get install python python-tk idle python-pmw python-imaging
sudo apt-get install texlive-full

its fine? I have ubuntu 13.10 server, not desktop

wjaneal commented 10 years ago

I am available by Google Chat for the next two hours....

On Sat, May 3, 2014 at 11:02 AM, felipe notifications@github.com wrote:

where or how install that?

— Reply to this email directly or view it on GitHubhttps://github.com/wjaneal/Math-Question-Generator/issues/4#issuecomment-42107090 .

johnfelipe commented 10 years ago

i send you invitation