Board index FlightGear Development New features

Simple FG GUI front-end for Linux

Discussion and requests for new features. Please note that FlightGear developers are volunteers and may or may not be able to consider these requests.

Re: Simple FG GUI front-end for Linux

Postby murderbybox » Wed Dec 02, 2015 4:01 am

Hello! I downloaded this, with high hopes, indeed.... But... i get this error when i try to start it.
Code: Select all
[david@dvd fgo]$ python fgo
Traceback (most recent call last):
  File "fgo", line 10, in <module>
    from src import run
  File "/home/david/Downloads/fgo/src/__init__.py", line 68
    print _(CLI_MESSAGE)
          ^
SyntaxError: invalid syntax
murderbybox
 
Posts: 109
Joined: Mon Aug 10, 2015 5:50 pm
Location: ESNO
Callsign: Padawan
OS: Windows 10

Re: Simple FG GUI front-end for Linux

Postby wkitty42 » Wed Dec 02, 2015 4:17 am

are you using python 2 or python 3?? there is a huge difference in the details of the interpreted code between the two versions... IIRC python 2 is needed for FGO whereas python 3 is needed for FFGO...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Simple FG GUI front-end for Linux

Postby chris_blues » Wed Dec 02, 2015 5:34 am

Indeed! Try:
Code: Select all
python2 fgo


Or checkout FGo's predecessor FFGo, which runs on python3
Don't hesitate to let me know if I'm incorrect or just annoying! As long as you do it gently! :)
Debian stable 64bit - i7 8x2.8GHz - 20GB RAM - GeForce GTS 450
Citation II
User avatar
chris_blues
Retired
 
Posts: 1577
Joined: Mon May 03, 2010 2:30 pm
Location: claws of real life
Callsign: chris_blues
Version: GIT
OS: Debian stable 64

Re: Simple FG GUI front-end for Linux

Postby rominet » Wed Dec 02, 2015 10:19 am

@murderbybox:

wkitty42 is right, the error message you posted is typical of Python 2 code run with Python 3. If you want to run FGo!, you have to use Python 2.x as indicated on its home page. Some distros, such as Archlinux IIRC, made the strange choice of pointing the default “python” executable to Python 3, whereas it had “always” meant Python 2.x; this change broke compatibility for all programs relying on the “python” executable from the PATH. Therefore, in order to run FGo!, maybe you need to change the “#!/usr/bin/env python” line at top of the fgo script to “#!/usr/bin/env python2”. Another way would be to explicitely run something like “python2 /path/to/fgo” whenever you want to run it (maybe create an alias or a script for that), as suggested by chris_blues.

chris_blues wrote in Wed Dec 02, 2015 5:34 am:Or checkout FGo's predecessor FFGo, which runs on python3

Erm, I have the impression “predecessor” doesn't fit well here, chris. :wink:
By the way, since this thread is being revived, all problems and feature requests reported here since I started to read it (2013 or so?) have been addressed in FFGo, to the best of my knowledge (plus new features, the one I am currently working on being a dialog to find all airports located at distance d from a given airport, where you can choose the lower and upper bounds for d---this should be convenient in order to quickly choose an airport that is neither too close nor too far from the airport/area controlled by an ATC operator).
rominet
 
Posts: 605
Joined: Sat Nov 01, 2014 2:33 pm
Callsign: F-KATS
Version: Git next
OS: Debian GNU/Linux

Re: Simple FG GUI front-end for Linux

Postby murderbybox » Wed Dec 02, 2015 8:30 pm

chris_blues wrote in Wed Dec 02, 2015 5:34 am:Indeed! Try:
Code: Select all
python2 fgo


Or checkout FGo's predecessor FFGo, which runs on python3

Code: Select all
[david@dvd fgo]$ python2 fgo
Traceback (most recent call last):
  File "fgo", line 10, in <module>
    from src import run
  File "/home/david/Downloads/fgo/src/__init__.py", line 10, in <module>
    from Tkinter import Tk
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 39, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ImportError: libtk8.6.so: cannot open shared object file: No such file or directory

Ok, ill try FFgo
murderbybox
 
Posts: 109
Joined: Mon Aug 10, 2015 5:50 pm
Location: ESNO
Callsign: Padawan
OS: Windows 10

Re: Simple FG GUI front-end for Linux

Postby chris_blues » Wed Dec 02, 2015 8:37 pm

Do you have python-imaging-tk installed? Maybe it's missing?
Don't hesitate to let me know if I'm incorrect or just annoying! As long as you do it gently! :)
Debian stable 64bit - i7 8x2.8GHz - 20GB RAM - GeForce GTS 450
Citation II
User avatar
chris_blues
Retired
 
Posts: 1577
Joined: Mon May 03, 2010 2:30 pm
Location: claws of real life
Callsign: chris_blues
Version: GIT
OS: Debian stable 64

Re: Simple FG GUI front-end for Linux

Postby murderbybox » Wed Dec 02, 2015 11:52 pm

Code: Select all
[david@dvd FFGo-1.7.0]$ ./ffgo-launcher.py
Traceback (most recent call last):
  File "./ffgo-launcher.py", line 12, in <module>
    import ffgo.main
  File "/home/david/Downloads/FFGo-1.7.0/ffgo/main.py", line 22, in <module>
    import tkinter
  File "/usr/lib/python3.5/tkinter/__init__.py", line 35, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ImportError: libtk8.6.so: cannot open shared object file: No such file or directory

Wat do i do? I dont have root access btw
murderbybox
 
Posts: 109
Joined: Mon Aug 10, 2015 5:50 pm
Location: ESNO
Callsign: Padawan
OS: Windows 10

Re: Simple FG GUI front-end for Linux

Postby rominet » Thu Dec 03, 2015 1:19 am

This thread is dedicated to FGo!. Since your message is about FFGo, I have replied in the thread dedicated to FFGo.
rominet
 
Posts: 605
Joined: Sat Nov 01, 2014 2:33 pm
Callsign: F-KATS
Version: Git next
OS: Debian GNU/Linux

Previous

Return to New features

Who is online

Users browsing this forum: No registered users and 3 guests