Skip to content

Commit b290a52

Browse files
committed
Fix #50, Updates Guide-GroundSystem.txt and CheaderParser.py from python 2-->3
Fix #50, Updates Guide-GroundSystem.txt and CheaderParser.py from python 2-->3
1 parent c982339 commit b290a52

File tree

3 files changed

+133
-127
lines changed

3 files changed

+133
-127
lines changed

Guide-GroundSystem.txt

Lines changed: 58 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -23,59 +23,17 @@ Before launching the Ground System make sure that:
2323
-> cmdUtil is compiled.
2424

2525

26-
Installing and running cFS Ground System on Mac:
27-
Install using Homebrew on Mac (http://brew.sh/)
28-
$ brew install pyqt
29-
$ brew install zeromq
30-
$ ( cd Subsystems/cmdUtil/ && make )
31-
$ python GroundSystem.py
32-
3326
Installing and running cFS Ground System on Ubuntu:
34-
$ sudo apt-get install python-qt4 python-qt4-dev
35-
$ sudo apt-get install python-zmq
27+
$ sudo apt-get install python3-pyqt4
28+
$ sudo apt-get install python3-zmq
29+
$ sudo apt-get install libcanberra-gtk-module
3630
$ ( cd Subsystems/cmdUtil/ && make )
37-
$ python GroundSystem.py
31+
$ python3 GroundSystem.py
3832

3933

40-
Installing and running cFS Ground System on CentOS 6:
41-
$ su
42-
$ <type password>
43-
$ yum -y update
44-
45-
#### Install pip and python-development ####
46-
# If you are on a 64-bit CentOS / RHEL based system:
47-
$ wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
48-
$ rpm -ivh epel-release-6-8.noarch.rpm
49-
50-
# If you are on a 32-bit CentOS / RHEL based system:
51-
$ wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
52-
$ rpm -ivh epel-release-6-8.noarch.rpm
53-
54-
$ yum install -y python-pip
55-
$ yum install -y python-devel
56-
57-
#### Install zeroMQ and pyZMQ messaging system ####
58-
$ yum install -y uuid-devel
59-
$ yum install -y pkgconfig
60-
$ yum install -y libtool
61-
$ yum install -y gcc-c++
62-
$ wget http://download.zeromq.org/zeromq-4.0.5.tar.gz
63-
$ tar xzvf zeromq-4.0.5.tar.gz
64-
$ cd zeromq-4.0.5
65-
$ ./configure
66-
$ make
67-
$ make install
68-
$ echo /usr/local/lib > /etc/ld.so.conf.d/local.conf
69-
$ ldconfig
70-
$ pip install pyzmq
71-
72-
#### Install pyQT4 ####
73-
$ yum install -y PyQt4
74-
$ yum install -y qt qt-demos qt-designer qt4 qt4-designer
75-
76-
77-
### Running Ground System ###
78-
$ python GroundSystem.py
34+
The historically included instructions for running on Mac or CentOS are inluded at the bottom of this document for referance.
35+
Please note that instructions have not been maintained.
36+
Welcoming instruction contributions if any of these are your platform of choice.
7937

8038

8139
##############################################################################
@@ -104,7 +62,7 @@ Steps to adding application commands to the Ground System:
10462

10563
2) Run CHeaderParser
10664
2.1) Call CHeaderParser using python
107-
~$ python CHeaderParser.py
65+
~$ python3 CHeaderParser.py
10866
2.2) The program will prompt you to enter a filename for the application.
10967
This will create a pickle file for your application named CommandFiles/<user_defined_name>. Notice that this file will be stored in the CommandFiles directory. This same filename will be used in command-pages.txt later.
11068
2.3) Type 'yes' if any commands in your application have parameters
@@ -145,9 +103,9 @@ Issue: Cannot Send Command, receiving the following error:
145103
> Traceback (most recent call last):
146104
> File "Parameter.py", line 100, in ProcessSendButton
147105
> subprocess.Popen(cmd_args, stdout=subprocess.PIPE)
148-
> File "/usr/lib/python2.6/subprocess.py", line 642, in __init__
106+
> File "/usr/lib/python3.7/subprocess.py", line 642, in __init__
149107
> errread, errwrite)
150-
> File "/usr/lib/python2.6/subprocess.py", line 1234, in _execute_child
108+
> File "/usr/lib/python3.7/subprocess.py", line 1234, in _execute_child
151109
> raise child_exception
152110
> OSError: [Errno 8] Exec format error
153111

@@ -157,11 +115,58 @@ To fix this problem, use the Makefile inside of the cmdUtil directory to compile
157115
$ cd Subsystems/cmdUtil
158116
$ make
159117
$ cd ../..
160-
$ python GroundSystem.py
118+
$ python3 GroundSystem.py
161119

162120
-----------------------------------------------------------------------------
163121

122+
Historically included instructions for running on Mac or CentOS:
123+
124+
Installing and running cFS Ground System on Mac:
125+
Install using Homebrew on Mac (http://brew.sh/)
126+
$ brew install pyqt
127+
$ brew install zeromq
128+
$ ( cd Subsystems/cmdUtil/ && make )
129+
$ python GroundSystem.py
130+
131+
Installing and running cFS Ground System on CentOS 6:
132+
$ su
133+
$ <type password>
134+
$ yum -y update
135+
136+
#### Install pip and python-development ####
137+
# If you are on a 64-bit CentOS / RHEL based system:
138+
$ wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
139+
$ rpm -ivh epel-release-6-8.noarch.rpm
140+
141+
# If you are on a 32-bit CentOS / RHEL based system:
142+
$ wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
143+
$ rpm -ivh epel-release-6-8.noarch.rpm
164144

145+
$ yum install -y python-pip
146+
$ yum install -y python-devel
147+
148+
#### Install zeroMQ and pyZMQ messaging system ####
149+
$ yum install -y uuid-devel
150+
$ yum install -y pkgconfig
151+
$ yum install -y libtool
152+
$ yum install -y gcc-c++
153+
$ wget http://download.zeromq.org/zeromq-4.0.5.tar.gz
154+
$ tar xzvf zeromq-4.0.5.tar.gz
155+
$ cd zeromq-4.0.5
156+
$ ./configure
157+
$ make
158+
$ make install
159+
$ echo /usr/local/lib > /etc/ld.so.conf.d/local.conf
160+
$ ldconfig
161+
$ pip install pyzmq
162+
163+
#### Install pyQT4 ####
164+
$ yum install -y PyQt4
165+
$ yum install -y qt qt-demos qt-designer qt4 qt4-designer
166+
167+
168+
### Running Ground System ###
169+
$ python GroundSystem.py
165170

166171

167172

Subsystems/cmdGui/CHeaderParser-hdr-paths.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# This program does support relative paths but if the program cannot
1414
# find your header files, try using absolute paths.
1515
#
16-
#../../../../../apps/to_lab/fsw/src/to_lab_msg.h
17-
#../../../../../apps/ci_lab/fsw/src/ci_lab_msg.h
16+
#../../../../apps/to_lab/fsw/src/to_lab_msg.h
17+
#../../../../apps/ci_lab/fsw/src/ci_lab_msg.h

0 commit comments

Comments
 (0)