Skip to content

Commit bda5015

Browse files
gautamjajoodeshraj
authored andcommitted
Fix #1130: Add FAQ page for developers (#1650)
1 parent bbfceee commit bda5015

File tree

2 files changed

+195
-0
lines changed

2 files changed

+195
-0
lines changed

docs/source/faq(developers).md

Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
## Frequently Asked Questions
2+
3+
#### Q. How to start contributing?
4+
5+
EvalAI’s issue tracker is good place to start. If you find something that interests you, comment on the thread and we’ll help get you started.
6+
Alternatively, if you come across a new bug on the site, please file a new issue and comment if you would like to be assigned. Existing issues are tagged with one or more labels, based on the part of the website it touches, its importance etc., which can help you select one.
7+
8+
#### Q. What are the technologies that EvalAI uses?
9+
10+
##### Django
11+
Django is the heart of the application, which powers our backend. We use Django version 1.10.
12+
13+
##### Django Rest Framework
14+
We use Django Rest Framework for writing and providing REST APIs. It's permission and serializers have helped write a maintainable codebase.
15+
16+
##### RabbitMQ
17+
We currently use RabbitMQ for queueing submission messages which are then later on processed by a Python worker.
18+
19+
##### PostgreSQL
20+
PostgresSQL is used as our primary datastore. All our tables currently reside in a single database named evalai.
21+
22+
##### Angular JS - ^1.6.1
23+
Angular JS is a well-known framework that powers our frontend.
24+
25+
#### Q. Where could I learn Github Commands?
26+
27+
Refer to [Github Guide](https://help.github.com/articles/git-and-github-learning-resources/).
28+
29+
#### Q. Where could I learn Markdown?
30+
31+
Refer to [MarkDown Guide](https://guides.github.com/features/mastering-markdown/).
32+
33+
#### Q. What to do when coverage decreases in your pull request?
34+
35+
Coverage decreases when the existing test cases don't test the new code you wrote. If you click coverage, you can see exactly which all parts aren't covered and you can write new tests to test the parts.
36+
37+
### Common Errors during installation
38+
39+
#### Q. While using `pip install -r dev/requirement.txt`
40+
41+
```
42+
Writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
43+
Error: You need to install postgresql-server-dev-X.Y for building a server-side extension or
44+
libpq-dev for building a client-side application.
45+
----------------------------------------
46+
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-qIjU8G/psycopg2/
47+
```
48+
49+
Use the following commands in order to solve the error:
50+
51+
1. `sudo apt-get install postgresql`
52+
2. `sudo apt-get install python-psycopg2`
53+
3. `sudo apt-get install libpq-dev`
54+
55+
#### Q. While using `pip install -r dev/requirement.txt`
56+
57+
```
58+
Command “python setup.py egg_info” failed with error code 1 in
59+
/private/var/folders/c7/b45s17816zn_b1dh3g7yzxrm0000gn/T/pip-build- GM2AG/psycopg2/
60+
```
61+
62+
Firstly check that you have installed all the mentioned dependencies.
63+
Then, Upgrade the version of postgresql to 10.1 in order to solve it.
64+
65+
#### Q. Getting an import error
66+
67+
```
68+
Couldn't import Django,"when using command python manage.py migrate
69+
```
70+
71+
Firstly, check that you have activated the virtualenv.
72+
Install python dependencies using the following commands on the command line
73+
74+
```
75+
cd evalai
76+
pip install -r requirements/dev.txt
77+
```
78+
79+
#### Q. Getting Mocha Error
80+
81+
```
82+
Can not load reporter “mocha”,it is not registered
83+
```
84+
85+
Uninstall karma and then install
86+
87+
```
88+
npm uninstall -g generator-karma && npm install -g generator-angular.
89+
```
90+
91+
#### Q. While trying to execute `bower install`
92+
93+
```
94+
bower: command not found
95+
```
96+
97+
Execute the following command first :
98+
99+
```
100+
npm install -g bower
101+
```
102+
103+
#### Q. While trying to execute `gulp dev:runserver`
104+
105+
```
106+
gulp: command not found
107+
```
108+
109+
Execute the following command first
110+
111+
```
112+
npm install -g gulp-cli
113+
114+
```
115+
116+
#### Q. While executing `gulp dev:runserver`
117+
118+
```
119+
events.js:160
120+
throw er; // Unhandled 'error' event
121+
^
122+
Error: Gem sass is not installed.
123+
```
124+
125+
Execute the following command first :
126+
127+
```
128+
gem install sass
129+
130+
```
131+
132+
#### Q. While trying to install `npm config set proxy http://proxy:port` on UBUNTU, I get the following error:
133+
134+
```
135+
ubuntu@ubuntu-Inspiron-3521:~/Desktop/Python-2.7.14$ npm install -g angular-cli
136+
npm ERR! Linux 4.4.0-21-generic
137+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "angular-cli"
138+
npm ERR! node v4.2.6
139+
npm ERR! npm v3.5.2
140+
npm ERR! code ECONNRESET
141+
142+
npm ERR! network tunneling socket could not be established, cause=getaddrinfo ENOTFOUND proxy proxy:80
143+
npm ERR! network This is most likely not a problem with npm itself
144+
npm ERR! network and is related to network connectivity.
145+
npm ERR! network In most cases you are behind a proxy or have bad network settings.
146+
npm ERR! network
147+
npm ERR! network If you are behind a proxy, please make sure that the
148+
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
149+
150+
npm ERR! Please include the following file with any support request:
151+
npm ERR! /home/ubuntu/Desktop/Python-2.7.14/npm-debug.log
152+
```
153+
154+
To solve, execute the following commands:
155+
1. `npm config set registry=registry.npmjs.org`
156+
157+
If the above does not work, try deleting them by following commands:
158+
1. `npm config delete proxy`
159+
2. `npm config delete https-proxy`
160+
161+
Then, start the instllation process of frontend once more.
162+
163+
#### Q. While using docker, I am getting the following error on URL [http://localhost:8888/](http://localhost:8888/)
164+
165+
```
166+
Cannot Get \
167+
```
168+
Try removing the docker containers and then building them again.
169+
170+
171+
#### Q. Getting the following error while running `python manage.py seed`
172+
173+
```
174+
Starting the database seeder. Hang on... Exception while running run() in 'scripts.seed' Database successfully seeded
175+
```
176+
177+
Change the pyhton version to 2.7.x . The problem might be because of the pyhton 3.0 version.
178+
179+
#### Q. Getting the following error while executing command `createdb evalai -U postgres`
180+
181+
```
182+
createdb: could not connect to database template1: FATAL: Peer authentication failed for user "postgres"
183+
```
184+
185+
Try creating a new user and then grant all the privileges to it and then create a db.
186+
187+
#### Q. Getting the following error while executing `npm install`
188+
189+
```
190+
npm WARN generator-angular@0.16.0 requires a peer of generator-
191+
karma@>=0.9.0 but none was installed.
192+
```
193+
194+
Uninstall and then install karma again and also don't forget to clean the global as well as project npm cache. Then try again the step 8.

docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Contents:
1919
architecture_decisions
2020
directory_structure
2121
participate
22+
faq(developers)
2223
migrations
2324
contribution
2425
pull_request

0 commit comments

Comments
 (0)