Board index FlightGear Support Tools ATC-pie

Is ATC-PIE available for Mac?

ATC-pie is a radar air traffic control simulation program for the FlightGear multi-player network.

Is ATC-PIE available for Mac?

Postby Definee » Wed Feb 18, 2015 10:01 pm

Is ATC-PIE ready for use with Mac yet? If not do you plan on making it compatible with Mac. If it is available please tell me how to install and run. Thanks
Fly JAFVA
N3362C
F-36
"To some people the sky is the limit, to those who love aviation, The sky is home."
Definee
 
Posts: 347
Joined: Sun Aug 10, 2014 2:55 am
Callsign: F_36
IRC name: Definee
Version: 3.2
OS: Mac OSX

Re: Is ATC-PIE available for Mac?

Postby CaptB » Wed Feb 18, 2015 10:22 pm

It seems both dependencies PyQt and Python3 are available on Mac, so can't see why it should not run. Not sure if it was tested though, why not be the first? :)
Ongoing projects(3D modelling): A320, MD-11, A350, B767
FG767: https://fg767.wordpress.com/
CaptB
 
Posts: 685
Joined: Thu May 23, 2013 7:36 pm
Callsign: EKCH_AP
IRC name: CaptB
Version: next
OS: Xubuntu

Re: Is ATC-PIE available for Mac?

Postby mickybadia » Wed Feb 18, 2015 10:27 pm

Exactly the answer I was going to make. The wiki page says so as well. Until your post, I have had zero hands up from Macintosh testers. Is yours up?
mickybadia
 
Posts: 475
Joined: Tue Sep 24, 2013 10:12 am

Re: Is ATC-PIE available for Mac?

Postby Definee » Wed Feb 18, 2015 10:34 pm

Well, I have not tried running it thats the thing cause I do not know how PyQt and Python3 work. But if I get it working I will be sure than happy to test it for you.
Fly JAFVA
N3362C
F-36
"To some people the sky is the limit, to those who love aviation, The sky is home."
Definee
 
Posts: 347
Joined: Sun Aug 10, 2014 2:55 am
Callsign: F_36
IRC name: Definee
Version: 3.2
OS: Mac OSX

Re: Is ATC-PIE available for Mac?

Postby Definee » Wed Feb 18, 2015 11:33 pm

I just downloaded ATC-PIE , did not notice anything obvious for starting up the program. Can someone walk me trough it on mac?
Fly JAFVA
N3362C
F-36
"To some people the sky is the limit, to those who love aviation, The sky is home."
Definee
 
Posts: 347
Joined: Sun Aug 10, 2014 2:55 am
Callsign: F_36
IRC name: Definee
Version: 3.2
OS: Mac OSX

Re: Is ATC-PIE available for Mac?

Postby sanhozay » Thu Feb 19, 2015 12:04 am

Open the Mac launcher (the rocket in the Dock) and look in Utilities for Terminal. Open it.

Go to the directory you unpacked it, e.g. Downloads, and try to run it:

Code: Select all
cd Downloads


Code: Select all
./ATC-pie.py ICAO


Note the leading dot. If it complains that it's not executable do this:

Code: Select all
chmod +x ATC-pie.py


At this point you will probably get errors about Qt5. Not sure how to deal with those without doing some research. Try the README in ATC Pie.

Once you get it going, I can show you how to make an icon in the Dock.
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 12:57 pm
Location: EGNM
Callsign: G-SHOZ
Version: Git
OS: Ubuntu 16.04

Re: Is ATC-PIE available for Mac?

Postby Definee » Thu Feb 19, 2015 12:11 am

Terminal cannot find the ATC-pie.py thing. It says "No such file or directory" And yes I did the cd (change directory) to my Downloads, this is what my terminal says.
Image
Fly JAFVA
N3362C
F-36
"To some people the sky is the limit, to those who love aviation, The sky is home."
Definee
 
Posts: 347
Joined: Sun Aug 10, 2014 2:55 am
Callsign: F_36
IRC name: Definee
Version: 3.2
OS: Mac OSX

Re: Is ATC-PIE available for Mac?

Postby sanhozay » Thu Feb 19, 2015 12:40 am

I only guessed Downloads. Did you put it somewhere else? Or perhaps the download directory for ATC-pie has sub directories? Basically, you need to find the ATC-pie.py file and run it. Perhaps you can try command-space and use spotlight search to find it?
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 12:57 pm
Location: EGNM
Callsign: G-SHOZ
Version: Git
OS: Ubuntu 16.04

Re: Is ATC-PIE available for Mac?

Postby Definee » Thu Feb 19, 2015 1:29 am

I know the location. You where right. It was in my Downloads folder.
Fly JAFVA
N3362C
F-36
"To some people the sky is the limit, to those who love aviation, The sky is home."
Definee
 
Posts: 347
Joined: Sun Aug 10, 2014 2:55 am
Callsign: F_36
IRC name: Definee
Version: 3.2
OS: Mac OSX

Re: Is ATC-PIE available for Mac?

Postby sanhozay » Thu Feb 19, 2015 9:32 am

OK, so ATC-pie needs Python 3.x. On my iMac running Yosemite, I have Python 2.7.

So I installed Python 3.5.0a1 from here: https://www.python.org/downloads/mac-osx/

@mickybadia: You should change the shebang in the script to:

Code: Select all
#!/usr/bin/env python3

This provides better portability for your script and should work on Mac OS and all Linux variants.

As expected, Mac OS is missing the Qt5 libraries:

Code: Select all
$ ./ATC-pie.py
Traceback (most recent call last):
  File "./ATC-pie.py", line 25, in <module>
    from PyQt5.QtWidgets import QApplication
ImportError: No module named 'PyQt5'

At this point I bow out because I don't want to install Qt5 on the machine I earn a living from ;)

I guess it involves https://www.qt.io/download/

Is there no way to package these libraries with ATC-pie?
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 12:57 pm
Location: EGNM
Callsign: G-SHOZ
Version: Git
OS: Ubuntu 16.04

Re: Is ATC-PIE available for Mac?

Postby CaptB » Thu Feb 19, 2015 10:36 am

You need PyQT from here:http://www.riverbankcomputing.co.uk/software/pyqt/intro for it to work.
Last edited by CaptB on Thu Feb 19, 2015 5:40 pm, edited 1 time in total.
Ongoing projects(3D modelling): A320, MD-11, A350, B767
FG767: https://fg767.wordpress.com/
CaptB
 
Posts: 685
Joined: Thu May 23, 2013 7:36 pm
Callsign: EKCH_AP
IRC name: CaptB
Version: next
OS: Xubuntu

Re: Is ATC-PIE available for Mac?

Postby Definee » Thu Feb 19, 2015 4:47 pm

Totally unrelated : CaptB, I see you are starting work on the 767 :D that will be nice!
Fly JAFVA
N3362C
F-36
"To some people the sky is the limit, to those who love aviation, The sky is home."
Definee
 
Posts: 347
Joined: Sun Aug 10, 2014 2:55 am
Callsign: F_36
IRC name: Definee
Version: 3.2
OS: Mac OSX

Re: Is ATC-PIE available for Mac?

Postby Definee » Fri Feb 20, 2015 11:06 pm

I found my issue but it still is not solved completely. I have went into terminal and looked at the ATC-pie folder. I found out that the python atc pie file did not have a dot in front of it. So I typed it in terminal without the dot and it said "Command not found" Is this because I don't have the python thing installed?!
Fly JAFVA
N3362C
F-36
"To some people the sky is the limit, to those who love aviation, The sky is home."
Definee
 
Posts: 347
Joined: Sun Aug 10, 2014 2:55 am
Callsign: F_36
IRC name: Definee
Version: 3.2
OS: Mac OSX

Re: Is ATC-PIE available for Mac?

Postby sanhozay » Sat Feb 21, 2015 12:47 am

You need ./ in front of a program or script that is in your current directory, so ./ATC-pie.py runs ATC-pie.py if it exists in the current directory.

Did you install Python 3 and change the first line of the script as shown above? I stopped when it came to installing the Qt5 stuff but you'll need to go beyond where I got to if you want it to work on Mac OS. You definitely need Python 3 and to change the first line of the ATC-pie.py script.
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 12:57 pm
Location: EGNM
Callsign: G-SHOZ
Version: Git
OS: Ubuntu 16.04

Re: Is ATC-PIE available for Mac?

Postby mickybadia » Wed Mar 18, 2015 4:45 pm

So do we have a Mac tester in the end? I am still looking for those so tell me if you have managed to run anything.
mickybadia
 
Posts: 475
Joined: Tue Sep 24, 2013 10:12 am

Next

Return to ATC-pie

Who is online

Users browsing this forum: No registered users and 3 guests