Skip to content

Commit 21d9e24

Browse files
bhaveshAnniranjan94
authored andcommitted
Fixes fossasia#4739 Google Installation guide still uses python2
1 parent 18887cb commit 21d9e24

File tree

8 files changed

+30
-30
lines changed

8 files changed

+30
-30
lines changed

docs/installation/aws.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ sudo apt-get install -y docker-engine
5656
* Then install Docker Compose.
5757

5858
```sh
59-
sudo apt-get -y install python-pip
59+
sudo apt-get -y install python3-pip
6060
sudo pip install docker-compose
6161
```
6262

@@ -123,9 +123,9 @@ docker-compose run web /bin/bash
123123
* When bash opens, run the following commands and exit.
124124

125125
```bash
126-
python create_db.py
126+
python3 create_db.py
127127
# ^^ write super_admin email and password when asked
128-
python manage.py db stamp head
128+
python3 manage.py db stamp head
129129
```
130130

131131
* That's it. Visit the public DNS to see your site live. In my case it was http://ec2-52-41-207-116.us-west-2.compute.amazonaws.com/

docs/installation/basic.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Make sure you have the dependencies mentioned above installed before proceeding
1616
Run the commands mentioned below with the terminal active in the project's root directory.
1717

1818

19-
* **Step 1** - Install python requirements.
19+
* **Step 1** - Install Python 3 requirements.
2020

2121
```sh
2222
pip3 install -r requirements.txt

docs/installation/digital-ocean.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ sudo systemctl status docker
4747
* Next step is to install Docker-Compose. Following the [DigitalOcean guide](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-ubuntu-14-04), run the following commands in the ssh shell to install compose.
4848

4949
```bash
50-
sudo apt-get -y install python-pip
50+
sudo apt-get -y install python3-pip
5151
sudo pip install docker-compose
5252
```
5353

@@ -95,9 +95,9 @@ docker-compose run web /bin/bash
9595
* When bash opens, run the following commands and exit.
9696

9797
```bash
98-
python create_db.py
98+
python3 create_db.py
9999
# ^^ write super_admin email and password when asked
100-
python manage.py db stamp head
100+
python3 manage.py db stamp head
101101
```
102102

103103
* That's it. Visit the `$IP` (example 104.236.228.132) to view the open event server. You can close the 2nd terminal window if you wish.

docs/installation/docker.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ create database opev;
4343
* Now the database is created, so let's create the tables. Open the application's shell by `docker-compose run web /bin/bash`. Then write the following commands.
4444

4545
```bash
46-
python create_db.py
46+
python3 create_db.py
4747
# ^^ write super_admin email and password when asked
48-
python manage.py db stamp head
48+
python3 manage.py db stamp head
4949
```
5050

5151
* Close the application's shell by `exit` command.
@@ -62,7 +62,7 @@ python manage.py db stamp head
6262
* Then open a new terminal window in same directory and run the following.
6363

6464
```bash
65-
docker-compose run web python manage.py db upgrade
65+
docker-compose run web python3 manage.py db upgrade
6666
```
6767

6868
* That should be all. Open `localhost` in web browser to view the updated open-event-server.

docs/installation/google.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ lines 1-19/19 (END)
111111

112112
* For the Next Step we'll setup Docker Compose.
113113
```sh
114-
sudo apt-get -y install python-pip
114+
sudo apt-get -y install python3-pip
115115
sudo pip install docker-compose
116116
```
117117

@@ -146,9 +146,9 @@ sudo docker-compose run web /bin/bash
146146

147147
* Once you are running bash in your container as root,
148148
```sh
149-
python create_db.py
149+
python3 create_db.py
150150
# The Email & Password entered here would be your Admin Email
151-
python manage.py db stamp head
151+
python3 manage.py db stamp head
152152
```
153153

154154
* Now that db is setup, you can kill both the running containers by ^C, and then run
@@ -164,17 +164,17 @@ sudo docker-compose up -d
164164
```
165165
Exception:
166166
Traceback (most recent call last):
167-
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 209, in main
167+
File "/usr/lib/python3.5/dist-packages/pip/basecommand.py", line 209, in main
168168
status = self.run(options, args)
169-
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 317, in run
169+
File "/usr/lib/python3.5/dist-packages/pip/commands/install.py", line 317, in run
170170
requirement_set.prepare_files(finder)
171-
File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 360, in prepare_files
171+
File "/usr/lib/python3.5/dist-packages/pip/req/req_set.py", line 360, in prepare_files
172172
ignore_dependencies=self.ignore_dependencies))
173-
File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 448, in _prepare_file
173+
File "/usr/lib/python3.5/dist-packages/pip/req/req_set.py", line 448, in _prepare_file
174174
req_to_install, finder)
175-
File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 387, in _check_skip_installed
175+
File "/usr/lib/python3.5/dist-packages/pip/req/req_set.py", line 387, in _check_skip_installed
176176
req_to_install.check_if_exists()
177-
File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 1011, in check_if_exists
177+
File "/usr/lib/python3.5/dist-packages/pip/req/req_install.py", line 1011, in check_if_exists
178178
self.req.project_name
179179
AttributeError: 'Requirement' object has no attribute 'project_name'
180180
```

docs/installation/local.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export INTEGRATE_SOCKETIO="true"
148148
149149
The development server is the one that Flask ships with. It's based on Werkzeug and does not support WebSockets. If you try to run it, you'll get a RunTime error, something like: `You need to use the eventlet server. `. To test real-time notifications, you must use the Gunicorn web server with eventlet worker class.
150150
151-
If you've installed development requirements, you should have both `gunicorn` and `eventlet` installed. To run application on port 5000, execute the following instead of `python manage.py runserver`:
151+
If you've installed development requirements, you should have both `gunicorn` and `eventlet` installed. To run application on port 5000, execute the following instead of `python3 manage.py runserver`:
152152

153153
```bash
154154
gunicorn app:app --worker-class eventlet -w 1 --bind 0.0.0.0:5000 --reload

docs/installation/mac-os.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Dependencies required to run Orga Server
44

5-
* Python 2
5+
* Python 3
66

77
* Installation of 'Homebrew' would catalyze the process of installation
88
```sh
@@ -33,15 +33,15 @@ You may encounter problems installing 'libevent' while executing the requirement
3333
Installing the below files would prevent the 'egg_info' error.
3434

3535
```sh
36-
brew install python libevent
37-
curl https://bootstrap.pypa.io/ez_setup.py -o - | python
36+
brew install python3 libevent
37+
curl https://bootstrap.pypa.io/ez_setup.py -o - | python3
3838
pip install gevent gunicorn
3939
```
4040

41-
* **Step 1** - Install python requirements.
41+
* **Step 1** - Install Python 3 requirements.
4242

4343
```sh
44-
sudo pip install -r requirements.txt
44+
sudo pip3 install -r requirements.txt
4545
```
4646

4747

@@ -74,9 +74,9 @@ export DATABASE_URL=postgresql://open_event_user:[email protected]:5432/test
7474
* **Step 5** - Create the tables. For that we will use `create_db.py`.
7575

7676
```sh
77-
python create_db.py
77+
python3 create_db.py
7878
# enter email and password
79-
python manage.py db stamp head
79+
python3 manage.py db stamp head
8080
```
8181

8282

@@ -102,7 +102,7 @@ celery worker -A app.celery &
102102
unset INTEGRATE_SOCKETIO
103103

104104
# run app
105-
python manage.py runserver
105+
python3 manage.py runserver
106106
```
107107

108108
* **Step 8** - Rejoice. Go to `localhost:5000` in your web browser to see the application live.

docs/installation/vagrant.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ This will bring you to the root directory of the Virtual Machine.
129129

130130

131131
* To run the app, type
132-
```python create_db.py```
132+
```python3 create_db.py```
133133
this step should exit normally without raising any errors. If Terminal does report an error type
134134
```echo $DATABASE_URL```
135135
to double check your database configuration.
@@ -138,7 +138,7 @@ to double check your database configuration.
138138

139139

140140
* Next, type
141-
```python manage.py runserver -h 0.0.0.0 -p 5000```
141+
```python3 manage.py runserver -h 0.0.0.0 -p 5000```
142142

143143
![screen shot 2015-12-13 at 7 22 55 pm](https://cloud.githubusercontent.com/assets/9834624/11853343/5e9cab7c-a40b-11e5-96ad-30df2a3e33a0.png)
144144

0 commit comments

Comments
 (0)