Django on the Raspberry pi


21 posts
by phalt » Fri Jun 01, 2012 2:56 pm
I've successfully got Django installed and running on my raspberry pi.

I am now tempted to create a script for automatically installing the required packages for anyone who wants to install Django themselves.

I have searched online but I haven't found anything like this yet.

Would this be useful for people, especially beginners?
Posts: 14
Joined: Fri Jun 01, 2012 2:47 pm
Location: Plymouth / Bristol
by unepic » Sat Jun 02, 2012 7:41 am
Yes!

I'd like to try Django on the Raspberry pi.

Looking forward to it.
Posts: 9
Joined: Sat Mar 10, 2012 7:56 am
by olibanum » Wed Jun 06, 2012 9:13 pm
Definitely interested. I was about to make a start myself but any head start I can get the better! Thank you.
Posts: 20
Joined: Wed Jun 06, 2012 9:11 pm
by phalt » Thu Jun 07, 2012 12:39 pm
Sorry for the slow reply, with the 4 day weekend we've just had I've been busy relaxing and travelling :)

I've written a script that runs awesomely on my linux desktop, just need to get it onto a pi and test it now.

I'll be making it for the Debian release first, as it is the one I'm most familiar with. Should have it ready in a few days!

Blog post and instructions will be included.
Posts: 14
Joined: Fri Jun 01, 2012 2:47 pm
Location: Plymouth / Bristol
by phalt » Wed Jun 13, 2012 7:31 pm
Hey guys. I've successfully created a simple script that will install django on the raspberry pi.

This is aimed at people who are not used to heavy installation and it automates 100% of the process. It also downloads a few extra bits for django and you can add your own packages in requirements.txt if you wish:

The github repo is at:

https://github.com/phalt/DjangoPi

and I had no problems installing git and fetching it on my pi.

I'd really like some feedback on improvements or any bugs you encounter.

Enjoy!
Posts: 14
Joined: Fri Jun 01, 2012 2:47 pm
Location: Plymouth / Bristol
by olibanum » Wed Jun 13, 2012 7:40 pm
Cracking thanks! Ill take a look as soon as ive got the latest firmware and my wireless dongle working again after the previous update killed it.
Posts: 20
Joined: Wed Jun 06, 2012 9:11 pm
by lightnin » Wed Jun 20, 2012 5:01 pm
Thanks for making the script! I recently gave it a go and it seemed to work quite well.
One thing I'm not sure about, that would be helpful to touch on in the documentation, is how to get Django to display your site via apache (rather than simply using the runserver command.)

It appears as though there are some additional steps required.

Also - might it not be better to use sqlite and / or lightpd (or maybe nginx) - as they are a bit more light weight?

Probably your major criteria should be ease of use, if you hope to make it easy for lots of people to setup webservers on their pis. Perhaps that's another reason to use a different webserver.
Posts: 10
Joined: Wed Jun 20, 2012 11:57 am
by ceefan » Thu Jun 21, 2012 9:02 pm
Also - might it not be better to use sqlite and / or lightpd (or maybe nginx) - as they are a bit more light weight?


Here's the sqlite/nginx version I made for my own benefit:

http://www.raspberrypi.org/phpBB3/viewtopic.php?p=105768#p105768
Posts: 15
Joined: Fri Mar 16, 2012 7:46 pm
by phalt » Mon Jun 25, 2012 8:51 am
ceefan wrote:
Also - might it not be better to use sqlite and / or lightpd (or maybe nginx) - as they are a bit more light weight?


Here's the sqlite/nginx version I made for my own benefit:

http://www.raspberrypi.org/phpBB3/viewtopic.php?p=105768#p105768



Awesome nice work! I'm currently starting a bigger project related to this, I'll post news about it once I get it up and running, but it will encompass most django setups for raspberry pi.
Posts: 14
Joined: Fri Jun 01, 2012 2:47 pm
Location: Plymouth / Bristol
by chrissowa » Mon Jun 25, 2012 10:58 am
Anything speaking against using the bitnami stacks?

http://bitnami.org/stack/djangostack
Posts: 3
Joined: Mon Jun 25, 2012 10:56 am
by NickT » Mon Jul 02, 2012 4:15 pm
Excellent script, works well on standard Squeeze Debian. Mysql seems to work well too. Well done and thanks.
User avatar
Posts: 91
Joined: Mon May 21, 2012 10:43 am
by phalt » Tue Jul 03, 2012 3:20 pm
NickT wrote:Excellent script, works well on standard Squeeze Debian. Mysql seems to work well too. Well done and thanks.


Glad it worked well! I added virtualenv support to it earlier this week.

This is also now being incorporated into a larger project - a full stack educational website running on a raspberry pi that teaches you to run a website on a raspberry pi (recursion!)

If you're interested:

https://sponsorcraft.com/p/djangopi
Posts: 14
Joined: Fri Jun 01, 2012 2:47 pm
Location: Plymouth / Bristol
by guillemhs » Sat Aug 18, 2012 8:38 pm
Bitnami stacks are not ready to Raspberry Pi.

These stacks are 100% x86-based.

Not compatible with ARM.

I asked that on the forums here

http://answers.bitnami.org/questions/67 ... spberry-pi
Posts: 2
Joined: Sat Aug 18, 2012 8:35 pm
by phalt » Thu Aug 23, 2012 10:17 pm
ceefan wrote:
Also - might it not be better to use sqlite and / or lightpd (or maybe nginx) - as they are a bit more light weight?


Here's the sqlite/nginx version I made for my own benefit:

http://www.raspberrypi.org/phpBB3/viewtopic.php?p=105768#p105768


I've started to use nginx as well after getting much better performance. Will update to accomodate it.
Posts: 14
Joined: Fri Jun 01, 2012 2:47 pm
Location: Plymouth / Bristol
by granra » Sat Aug 25, 2012 2:04 pm
I just tried this on a fresh Raspbian setup and I get this.

./setup.sh: line 46: ../bin/activate: No such file or directory
Now we're going to install django and any other packages

./setup.sh: line 49: ../bin/pip: No such file or directory

Finally, lets make sure Django is installed properly - this will print the version number if successful

Traceback (most recent call last):
File "djangotest.py", line 1, in <module>
import django
ImportError: No module named django
./setup.sh: line 54: deactivate: command not found

Done!
Posts: 8
Joined: Sun Jul 29, 2012 3:43 pm
by cloud1771 » Thu Mar 07, 2013 2:32 am
I his this issue, When i downloaded it I installed unzipped in in /home/pi/djangopi and there is a line in the setup.sh that looks like its looking for it at /djangopi
I changed that path and it seems to have finished the install compleately
Posts: 6
Joined: Wed Sep 05, 2012 9:26 am
by cloud1771 » Thu Mar 07, 2013 2:34 am
My only issue is I ran the script at github, and i not get the Welcome to nginx! page when i goto my IP.
Am i missing a step? how do I get to where I can update/make changes to my server.

Thanks
Matt
Posts: 6
Joined: Wed Sep 05, 2012 9:26 am
by dliloch » Thu Mar 07, 2013 11:00 pm
hello,
I am having troubles getting the product to install.
I am running at the following level
root@raspberrypi4:~# uname -a
Linux raspberrypi4 3.6.11+ #371 PREEMPT Thu Feb 7 16:31:35 GMT 2013 armv6l GNU/Linux
I have these files in my /root directory
root@raspberrypi4:~# ls -al
total 48
drwx------ 6 root root 4096 Mar 7 17:46 .
drwxr-xr-x 25 root root 4096 Mar 7 17:47 ..
-rw------- 1 root root 156 Mar 7 17:14 .bash_history
-rw-r--r-- 1 root root 570 Jan 31 2010 .bashrc
drwx------ 6 root root 4096 Oct 27 20:16 .config
-rwxr-xr-x 1 root root 112 Mar 7 17:44 djangotest.py
drwx------ 2 root root 4096 Mar 7 16:42 .netsurf
-rw-r--r-- 1 root root 140 Nov 19 2007 .profile
drwxr-xr-x 5 root root 4096 Oct 25 14:20 .rpi-firmware
-rwxr-xr-x 1 root root 1586 Mar 7 17:45 setup.sh
drwx------ 4 root root 4096 Oct 24 07:34 .thumbnails
-rw------- 1 root root 2873 Nov 2 21:16 .viminfo

here is what happens when I type ./setup.shroot@raspberrypi4:~# ./setup.sh

Updating all existing packages...

Hit http://mirrordirector.raspbian.org wheezy InRelease
Hit http://archive.raspberrypi.org wheezy InRelease
Hit http://mirrordirector.raspbian.org wheezy/main armhf Packages
Hit http://archive.raspberrypi.org wheezy/main armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/contrib armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/non-free armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/rpi armhf Packages
Ign http://archive.raspberrypi.org wheezy/main Translation-en_GB
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en
Reading package lists... Done

Installing some essential stuff...

Installing python essentials

Reading package lists... Done
Building dependency tree
Reading state information... Done
python-virtualenv is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-pip is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

Installing nginx server...

Reading package lists... Done
Building dependency tree
Reading state information... Done
openssh-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
nginx is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
The --no-site-packages flag is deprecated; it is now the default behavior.
New python executable in ./bin/python
ERROR: The executable ./bin/python is not functioning
ERROR: It thinks sys.prefix is u'/usr' (should be u'/')
ERROR: virtualenv is not compatible with this system or executable
Requirement already satisfied (use --upgrade to upgrade): django-fab-deploy in /usr/local/lib/python2.7/dist-packages
Cleaning up...
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
python-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
./setup.sh: line 45: cd: DjangoPi/: No such file or directory
./setup.sh: line 46: ../bin/activate: No such file or directory
Now we're going to install django and any other packages

./setup.sh: line 49: ../bin/pip: No such file or directory

Finally, lets make sure Django is installed properly - this will print the version number if successful

python: can't open file 'djangotest.py': [Errno 2] No such file or directory
./setup.sh: line 54: deactivate: command not found

Done!

Any suggestions would be greatly appreciated.. thanks..
User avatar
Posts: 115
Joined: Wed Jun 27, 2012 6:28 pm
Location: cleveland, ohio usa
by bavovna » Thu May 09, 2013 7:46 pm
I have exactly the same problem. I tried to run ./install.sh under root.

Code: Select all
0 upgraded, 0 newly installed, 0 to remove and 156 not upgraded.
./setup.sh: line 45: cd: DjangoPi/: No such file or directory
./setup.sh: line 46: ../bin/activate: No such file or directory
Now we're going to install django and any other packages

./setup.sh: line 49: ../bin/pip: No such file or directory

Finally, lets make sure Django is installed properly - this will print the version number if successful

python: can't open file 'djangotest.py': [Errno 2] No such file or directory
./setup.sh: line 54: deactivate: command not found

Done!
Posts: 1
Joined: Sat Feb 09, 2013 8:33 am
by sgruben » Mon Aug 12, 2013 7:02 pm
i am having problems with install DjangoPi.

this is the log:

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
The --no-site-packages flag is deprecated; it is now the default behavior.
New python executable in ./bin/python
Installing distribute..............................................................................................................................................................................................done.
Installing pip...............done.
Requirement already satisfied (use --upgrade to upgrade): django-fab-deploy in /usr/local/lib/python2.7/dist-packages
Cleaning up...
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
python-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Now we're going to install django and any other packages

Downloading/unpacking Django (from -r requirements.txt (line 1))
Downloading Django-1.5.1.tar.gz (8.0Mb): 8.0Mb downloaded
Running setup.py egg_info for package Django

warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
Downloading/unpacking South (from -r requirements.txt (line 2))
Downloading South-0.8.2.tar.gz (95Kb): 95Kb downloaded
Running setup.py egg_info for package South

Downloading/unpacking Pillow (from -r requirements.txt (line 3))
Downloading Pillow-2.1.0.zip (2.1Mb): 2.1Mb downloaded
Running setup.py egg_info for package Pillow

warning: no previously-included files found matching '.hgignore'
warning: no previously-included files found matching '.hgtags'
warning: no previously-included files found matching 'BUILDME.bat'
warning: no previously-included files found matching 'make-manifest.py'
warning: no previously-included files found matching 'SHIP'
warning: no previously-included files found matching 'SHIP.bat'
warning: no files found matching 'COPYING'
warning: no files found matching '*.html' under directory 'docs'
warning: no files found matching '*.css' under directory 'docs'
warning: no files found matching 'README' under directory 'docs'
warning: no files found matching 'CHANGES' under directory 'docs'
warning: no files found matching 'CONTENTS' under directory 'docs'
Downloading/unpacking Requests (from -r requirements.txt (line 4))
Downloading requests-1.2.3.tar.gz (348Kb): 348Kb downloaded
Running setup.py egg_info for package Requests

Downloading/unpacking gunicorn (from -r requirements.txt (line 5))
Downloading gunicorn-17.5.tar.gz (367Kb): 367Kb downloaded
Running setup.py egg_info for package gunicorn

Downloading/unpacking MySQL-python (from -r requirements.txt (line 6))
Downloading MySQL-python-1.2.4.zip (113Kb): 113Kb downloaded
Running setup.py egg_info for package MySQL-python
The required version of distribute (>=0.6.28) is not available,
and can't be installed while this script is running. Please
install a more recent version first, using
'easy_install -U distribute'.

(Currently using distribute 0.6.24 (/home/pi/x10/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg))
Complete output from command python setup.py egg_info:
The required version of distribute (>=0.6.28) is not available,

and can't be installed while this script is running. Please

install a more recent version first, using

'easy_install -U distribute'.



(Currently using distribute 0.6.24 (/home/pi/x10/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg))

----------------------------------------
Command python setup.py egg_info failed with error code 2 in /home/pi/x10/build/MySQL-python
Storing complete log in /root/.pip/pip.log

Finally, lets make sure Django is installed properly - this will print the version number if successful

Traceback (most recent call last):
File "djangotest.py", line 1, in <module>
import django
ImportError: No module named django

Done!


why is not django installed?

thanks
Posts: 9
Joined: Thu Mar 14, 2013 1:30 pm
by mrfoulkes » Tue Apr 08, 2014 1:28 am
Hi,

Also having trouble getting Django fired up. This could be a mixture of lack of knowledge, willful ignorance or intoxication. Things seem to go fine until the gunicorn install where I start to see the following:

Downloading/unpacking gunicorn (from -r requirements.txt (line 5))

Getting page http://pypi.python.org/simple/gunicorn
URLs to search for versions for gunicorn (from -r requirements.txt (line 5)):
* http://pypi.python.org/simple/gunicorn/
Getting page http://pypi.python.org/simple/gunicorn/
Analyzing links from page https://pypi.python.org/simple/gunicorn/
Skipping link https://pypi.python.org/packages/any/g/ ... 68f9280375 (from https://pypi.python.org/simple/gunicorn/); unknown archive format: .whl
Found link https://pypi.python.org/packages/source ... ff03f14c7a (from https://pypi.python.org/simple/gunicorn/), version: 0.1
Found link https://pypi.python.org/packages/source ... 5b58bc6691 (from https://pypi.python.org/simple/gunicorn/), version: 0.10.0
Found link https://pypi.python.org/packages/source ... cca588dd04 (from https://pypi.python.org/simple/gunicorn/), version: 0.10.1
Found link https://pypi.python.org/packages/source ... 7d55e70ae7 (from https://pypi.python.org/simple/gunicorn/), version: 0.11.0
Found link https://pypi.python.org/packages/source ... 570ee82fc3 (from https://pypi.python.org/simple/gunicorn/), version: 0.11.1
Found link https://pypi.python.org/packages/source ... e17ee3522f (from https://pypi.python.org/simple/gunicorn/), version: 0.11.2
Found link https://pypi.python.org/packages/source ... fc42ea02f3 (from https://pypi.python.org/simple/gunicorn/), version: 0.12.0
Found link https://pypi.python.org/packages/source ... a26a019662 (from https://pypi.python.org/simple/gunicorn/), version: 0.12.1
Found link https://pypi.python.org/packages/source ... 0a5c6bdfb2 (from https://pypi.python.org/simple/gunicorn/), version: 0.12.2
Found link https://pypi.python.org/packages/source ... 05dd65bd8a (from https://pypi.python.org/simple/gunicorn/), version: 0.13.0
Found link https://pypi.python.org/packages/source ... f317e1b7c2 (from https://pypi.python.org/simple/gunicorn/), version: 0.13.1
Found link https://pypi.python.org/packages/source ... eb5627ac3a (from https://pypi.python.org/simple/gunicorn/), version: 0.13.2
Found link https://pypi.python.org/packages/source ... 4ce87e7582 (from https://pypi.python.org/simple/gunicorn/), version: 0.13.3
Found link https://pypi.python.org/packages/source ... 3e1f7aaadc (from https://pypi.python.org/simple/gunicorn/), version: 0.13.4
Found link https://pypi.python.org/packages/source ... 95ed6a141b (from https://pypi.python.org/simple/gunicorn/), version: 0.14.0
Found link https://pypi.python.org/packages/source ... 341d8c13d5 (from https://pypi.python.org/simple/gunicorn/), version: 0.14.1
Found link https://pypi.python.org/packages/source ... 66bd46a754 (from https://pypi.python.org/simple/gunicorn/), version: 0.14.2
Found link https://pypi.python.org/packages/source ... 481c6a5bcf (from https://pypi.python.org/simple/gunicorn/), version: 0.14.3
Found link https://pypi.python.org/packages/source ... 76778aeb37 (from https://pypi.python.org/simple/gunicorn/), version: 0.14.4
Found link https://pypi.python.org/packages/source ... 995426a6b3 (from https://pypi.python.org/simple/gunicorn/), version: 0.14.5
Found link https://pypi.python.org/packages/source ... f749eab7e5 (from https://pypi.python.org/simple/gunicorn/), version: 0.14.6
Found link https://pypi.python.org/packages/source ... 39d95a5c00 (from https://pypi.python.org/simple/gunicorn/), version: 0.15.0
Found link https://pypi.python.org/packages/source ... 691bad1a45 (from https://pypi.python.org/simple/gunicorn/), version: 0.16.0
Found link https://pypi.python.org/packages/source ... 4e753a218f (from https://pypi.python.org/simple/gunicorn/), version: 0.16.1
Found link https://pypi.python.org/packages/source ... 0e6e4ab4c9 (from https://pypi.python.org/simple/gunicorn/), version: 0.17.0
Found link https://pypi.python.org/packages/source ... a17b07d183 (from https://pypi.python.org/simple/gunicorn/), version: 0.17.1
Found link https://pypi.python.org/packages/source ... d6a4ea931e (from https://pypi.python.org/simple/gunicorn/), version: 0.17.2
Found link https://pypi.python.org/packages/source ... 8fba520a82 (from https://pypi.python.org/simple/gunicorn/), version: 0.17.3
Found link https://pypi.python.org/packages/source ... a9493d26e3 (from https://pypi.python.org/simple/gunicorn/), version: 0.17.4
Found link https://pypi.python.org/packages/source ... 2f79970dfe (from https://pypi.python.org/simple/gunicorn/), version: 0.2.1
Found link https://pypi.python.org/packages/source ... a1bc7755da (from https://pypi.python.org/simple/gunicorn/), version: 0.2
Found link https://pypi.python.org/packages/source ... 8b0fb6cc98 (from https://pypi.python.org/simple/gunicorn/), version: 0.3.1
Found link https://pypi.python.org/packages/source ... bc00c1564d (from https://pypi.python.org/simple/gunicorn/), version: 0.3.2
Found link https://pypi.python.org/packages/source ... 2e7de8c0b8 (from https://pypi.python.org/simple/gunicorn/), version: 0.3
Found link https://pypi.python.org/packages/source ... 0c3c3904e8 (from https://pypi.python.org/simple/gunicorn/), version: 0.4.1
Found link https://pypi.python.org/packages/source ... ed608559e2 (from https://pypi.python.org/simple/gunicorn/), version: 0.4.2
Found link https://pypi.python.org/packages/source ... 739cc9bed1 (from https://pypi.python.org/simple/gunicorn/), version: 0.4
Found link https://pypi.python.org/packages/source ... c21674e320 (from https://pypi.python.org/simple/gunicorn/), version: 0.5.1
Found link https://pypi.python.org/packages/source ... 98988ef375 (from https://pypi.python.org/simple/gunicorn/), version: 0.5
Found link https://pypi.python.org/packages/source ... 4658eb0d1e (from https://pypi.python.org/simple/gunicorn/), version: 0.6.1
Found link https://pypi.python.org/packages/source ... 49ff29b008 (from https://pypi.python.org/simple/gunicorn/), version: 0.6.2
Found link https://pypi.python.org/packages/source ... ed69086a00 (from https://pypi.python.org/simple/gunicorn/), version: 0.6.3
Found link https://pypi.python.org/packages/source ... 946d3c32a7 (from https://pypi.python.org/simple/gunicorn/), version: 0.6.4
Found link https://pypi.python.org/packages/source ... b7b77cf9be (from https://pypi.python.org/simple/gunicorn/), version: 0.6.5
Found link https://pypi.python.org/packages/source ... 3baefc6db5 (from https://pypi.python.org/simple/gunicorn/), version: 0.6.6
Found link https://pypi.python.org/packages/source ... 8c0b6c074a (from https://pypi.python.org/simple/gunicorn/), version: 0.6
Found link https://pypi.python.org/packages/source ... 7f27dfe499 (from https://pypi.python.org/simple/gunicorn/), version: 0.7.0
Found link https://pypi.python.org/packages/source ... 92e5b79e85 (from https://pypi.python.org/simple/gunicorn/), version: 0.7.1
Found link https://pypi.python.org/packages/source ... bd5eb19010 (from https://pypi.python.org/simple/gunicorn/), version: 0.7.2
Found link https://pypi.python.org/packages/source ... 0564a12052 (from https://pypi.python.org/simple/gunicorn/), version: 0.8.0
Found link https://pypi.python.org/packages/source ... e5b0f201d8 (from https://pypi.python.org/simple/gunicorn/), version: 0.8.1
Found link https://pypi.python.org/packages/source ... 86f12aade6 (from https://pypi.python.org/simple/gunicorn/), version: 0.9.0
Found link https://pypi.python.org/packages/source ... 860696b48c (from https://pypi.python.org/simple/gunicorn/), version: 0.9.1
Found link https://pypi.python.org/packages/source ... 466cc87a14 (from https://pypi.python.org/simple/gunicorn/), version: 17.5
Found link https://pypi.python.org/packages/source ... d2b6120fbe (from https://pypi.python.org/simple/gunicorn/), version: 18.0
Skipping link http://docs.gunicorn.org (from https://pypi.python.org/simple/gunicorn/); not a file
Skipping link http://docs.gunicorn.org/en/latest/configure.html (from https://pypi.python.org/simple/gunicorn/); unknown archive format: .html
Skipping link http://docs.gunicorn.org/en/latest/deploy.html (from https://pypi.python.org/simple/gunicorn/); unknown archive format: .html
Skipping link http://docs.gunicorn.org/en/latest/faq.html (from https://pypi.python.org/simple/gunicorn/); unknown archive format: .html
Skipping link http://eventlet.net (from https://pypi.python.org/simple/gunicorn/); not a file
Skipping link http://freenode.net (from https://pypi.python.org/simple/gunicorn/); not a file
Skipping link http://gevent.org (from https://pypi.python.org/simple/gunicorn/); not a file
Skipping link http://github.com/benoitc/gunicorn/blob/master/LICENSE (from https://pypi.python.org/simple/gunicorn/); not a file
Skipping link http://gunicorn.org/configuration.html (from https://pypi.python.org/simple/gunicorn/); unknown archive format: .html
Skipping link http://gunicorn.org/deployment.html (from https://pypi.python.org/simple/gunicorn/); unknown archive format: .html
Skipping link http://gunicorn.org/faq.html (from https://pypi.python.org/simple/gunicorn/); unknown archive format: .html
Skipping link http://gunicorn.org/usage.html (from https://pypi.python.org/simple/gunicorn/); unknown archive format: .html
Skipping link http://monkey.org/%7eprovos/libevent (from https://pypi.python.org/simple/gunicorn/); not a file
Skipping link http://software.schmorp.de/pkg/libev.html (from https://pypi.python.org/simple/gunicorn/); unknown archive format: .html
Skipping link http://unicorn.bogomips.org/ (from https://pypi.python.org/simple/gunicorn/); not a file
Skipping link http://webchat.freenode.net/?channels=gunicorn (from https://pypi.python.org/simple/gunicorn/); not a file
Skipping link http://www.ncftp.com/ncftpd/doc/misc/ep ... ports.html (from https://pypi.python.org/simple/gunicorn/); unknown archive format: .html
Skipping link https://travis-ci.org/benoitc/gunicorn (from https://pypi.python.org/simple/gunicorn/); not a file
Using version 18.0 (newest of versions: 18.0, 17.5, 0.17.4, 0.17.3, 0.17.2, 0.17.1, 0.17.0, 0.16.1, 0.16.0, 0.15.0, 0.14.6, 0.14.5, 0.14.4, 0.14.3, 0.14.2, 0.14.1, 0.14.0, 0.13.4, 0.13.3, 0.13.2, 0.13.1, 0.13.0, 0.12.2, 0.12.1, 0.12.0, 0.11.2, 0.11.1, 0.11.0, 0.10.1, 0.10.0, 0.9.1, 0.9.0, 0.8.1, 0.8.0, 0.7.2, 0.7.1, 0.7.0, 0.6.6, 0.6.5, 0.6.4, 0.6.3, 0.6.2, 0.6.1, 0.6, 0.5.1, 0.5, 0.4.2, 0.4.1, 0.4, 0.3.2, 0.3.1, 0.3, 0.2.1, 0.2, 0.1)
Downloading from URL https://pypi.python.org/packages/source ... d2b6120fbe (from https://pypi.python.org/simple/gunicorn/)
Running setup.py egg_info for package gunicorn

running egg_info
creating pip-egg-info/gunicorn.egg-info
writing pip-egg-info/gunicorn.egg-info/PKG-INFO
writing top-level names to pip-egg-info/gunicorn.egg-info/top_level.txt
writing dependency_links to pip-egg-info/gunicorn.egg-info/dependency_links.txt
writing entry points to pip-egg-info/gunicorn.egg-info/entry_points.txt
writing manifest file 'pip-egg-info/gunicorn.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found


reading manifest file 'pip-egg-info/gunicorn.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found under directory 'docs'

warning: no previously-included files matching '*.pyo' found under directory 'docs'

warning: no previously-included files matching '*.pyc' found under directory 'tests'

warning: no previously-included files matching '*.pyo' found under directory 'tests'

warning: no previously-included files matching '*.pyc' found under directory 'examples'

warning: no previously-included files matching '*.pyo' found under directory 'examples'

writing manifest file 'pip-egg-info/gunicorn.egg-info/SOURCES.txt'
Source in /home/pi/build/gunicorn has version 18.0, which satisfies requirement gunicorn (from -r requirements.txt (line 5))
Downloading/unpacking MySQL-python (from -r requirements.txt (line 6))

Getting page http://pypi.python.org/simple/MySQL-python
URLs to search for versions for MySQL-python (from -r requirements.txt (line 6)):
* http://pypi.python.org/simple/MySQL-python/
Getting page http://pypi.python.org/simple/MySQL-python/
Analyzing links from page https://pypi.python.org/simple/MySQL-python/
Skipping link https://pypi.python.org/packages/2.4/M/ ... 9b55e61a3f (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/M/ ... 777b29c588 (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/M/ ... b04a5139eb (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/M/ ... 9c36ef0ab0 (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/M/ ... 54109938d3 (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.6/M/ ... e935406100 (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.6/M/ ... 239107acae (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.6/M/ ... a25d6aadf8 (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.7/M/ ... 4fba5168d6 (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.7/M/ ... 8371caa405 (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.7/M/ ... 09aeba3ecf (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.7/M/ ... 541fe2ce7e (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.7/M/ ... 9eb07c9b89 (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.7/M/ ... cb122bf27a (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.7/M/ ... 7b591fc31d (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.7/M/ ... 0af69a925e (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .exe
Found link https://pypi.python.org/packages/source ... fc4154292f (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.3
Found link https://pypi.python.org/packages/source ... 7dcf7236bb (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.3b1
Found link https://pypi.python.org/packages/source ... a59e590130 (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.3b2
Found link https://pypi.python.org/packages/source ... 6dd7a0734d (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.3c1
Found link https://pypi.python.org/packages/source ... ad2ed4a9a0 (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.4
Found link https://pypi.python.org/packages/source ... 122f673c21 (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.4b1
Found link https://pypi.python.org/packages/source ... d7644312c9 (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.4b2
Found link https://pypi.python.org/packages/source ... 74e81b872f (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.4b3
Found link https://pypi.python.org/packages/source ... 19eaaf546c (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.4b3
Found link https://pypi.python.org/packages/source ... 1c4886b1cf (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.4b4
Found link https://pypi.python.org/packages/source ... 799dc7a0af (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.4b4
Found link https://pypi.python.org/packages/source ... df8afff48c (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.4b5
Found link https://pypi.python.org/packages/source ... 25ffe94ade (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.4b5
Found link https://pypi.python.org/packages/source ... db6a889613 (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.4c1
Found link https://pypi.python.org/packages/source ... 8c625e030c (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.5
Using version 1.2.5 (newest of versions: 1.2.5, 1.2.4, 1.2.4c1, 1.2.4b5, 1.2.4b5, 1.2.4b4, 1.2.4b4, 1.2.4b3, 1.2.4b3, 1.2.4b2, 1.2.4b1, 1.2.3, 1.2.3c1, 1.2.3b2, 1.2.3b1)
Downloading from URL https://pypi.python.org/packages/source ... 8c625e030c (from https://pypi.python.org/simple/MySQL-python/)
Running setup.py egg_info for package MySQL-python

sh: 1: mysql_config: not found

Traceback (most recent call last):

File "<string>", line 14, in <module>

File "/home/pi/build/MySQL-python/setup.py", line 17, in <module>

metadata, options = get_config()

File "setup_posix.py", line 43, in get_config

libs = mysql_config("libs_r")

File "setup_posix.py", line 25, in mysql_config

raise EnvironmentError("%s not found" % (mysql_config.path,))

EnvironmentError: mysql_config not found

Complete output from command python setup.py egg_info:

sh: 1: mysql_config: not found

Traceback (most recent call last):

File "<string>", line 14, in <module>

File "/home/pi/build/MySQL-python/setup.py", line 17, in <module>

metadata, options = get_config()

File "setup_posix.py", line 43, in get_config

libs = mysql_config("libs_r")

File "setup_posix.py", line 25, in mysql_config

raise EnvironmentError("%s not found" % (mysql_config.path,))

EnvironmentError: mysql_config not found

----------------------------------------

Command python setup.py egg_info failed with error code 1 in /home/pi/build/MySQL-python

Exception information:
Traceback (most recent call last):
File "/home/pi/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/basecommand.py", line 104, in main
status = self.run(options, args)
File "/home/pi/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/install.py", line 245, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/home/pi/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 1009, in prepare_files
req_to_install.run_egg_info()
File "/home/pi/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 225, in run_egg_info
command_desc='python setup.py egg_info')
File "/home/pi/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/__init__.py", line 256, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /home/pi/build/MySQL-python




I'm looking into virtualenv, not familiar with that yet. It looks like its not finding stuff I know are installed. Why is there no name called out for the new vitualenv? Does the new virtualenv need to be activated?

I'll caveat this problem with the fact that I already had MySQL running before install and I ran setup.sh as pi before switching to root (why read README.md files?).

Any help would be appreciated. It's all a learning process. I'll reply is I get it running.

Thanks for you work. It's a path to follow, and I appreciate that.
Posts: 1
Joined: Tue Apr 08, 2014 12:49 am