Issue Deploying Django

199 views
Skip to first unread message

JJ Zolper

unread,
Aug 1, 2012, 3:52:29 AM8/1/12
to django...@googlegroups.com
Hello all,

I've been working on trying to Deploy Django for the past day or so now. I see entire in the image in my ssh when trying to run:

./manage.py runfcgi protocol=fcgi

It says: "Error no module named psycopg2.extensions"

I didn't install any psycopg-python stuff because I knew that postgresql was already on my bluehost account.

Do I need to go through and install the python like adapters is that what it's complaining about? I don't think this has to do with my Django code on the server it's just a file missing right?

Thanks,

JJ


no module psycopg2.extensions.png

kenneth gonsalves

unread,
Aug 1, 2012, 6:07:54 AM8/1/12
to django...@googlegroups.com
On Tue, 2012-07-31 at 20:52 -0700, JJ Zolper wrote:
> Do I need to go through and install the python like adapters is that
> what it's complaining about? I don't think this has to do with my
> Django code on the server it's just a file missing right?

you need to install pycopg - and it is nothing to do with your code
--
regards
Kenneth Gonsalves

JJ Zolper

unread,
Aug 1, 2012, 5:03:21 PM8/1/12
to django...@googlegroups.com
Thanks so much for the reply!

I had a feeling I would need it but I just like to be sure before I act.

Another thing. On Ubuntu there were additional packages I had to install. I believe one was called "psycopg2-python-dev" or something like that.

If I install psycopg2-python at:


Are there any additional packges that I might need?

I apologize for not being able to remember the additional ones I added before on Ubuntu but I'm at work and couldn't find in my installation history what they might have been or in my django google group discussions.

I feel like one was called "libpq-dev" actually.

Thanks for the help.

JJ

JJ Zolper

unread,
Aug 2, 2012, 12:31:31 AM8/2/12
to django...@googlegroups.com
I'm trying to install GEOS and on my bluehost account under my django_src folder and what happened in the image happened.

it said cannot create directory permission denied so i tired sudo make install after what I had just done ( "make" ).

and then it said whats in the second image.

When I tried to run:

./manage.py runfcgi [options]
I got an error about GEOS so that's why I was doing that.

Thanks for the help.

JJ
geoserror.png
geoserror2.png

Kurtis Mullins

unread,
Aug 2, 2012, 3:42:47 PM8/2/12
to django...@googlegroups.com
I'd recommend another host. There's many issues you may run into with using a shared hosting provider that doesn't explicitly support Django. The best option (in my opinion) is to just get a cheap Cloud Server if you're up for the task of managing them ($10/month at Rackspace or Free for one year at Amazon). Sorry for the bad news :/ Maybe someone else can chime in and give you better information? I've just had extremely bad luck with trying to do anything other than run PHP on "traditional" shared hosts.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/0Jx03fySUVUJ.

To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Alex Strickland

unread,
Aug 2, 2012, 7:04:17 PM8/2/12
to django...@googlegroups.com
On 2012/08/02 05:42 PM, Kurtis Mullins wrote:

> I'd recommend another host. There's many issues you may run into with
> using a shared hosting provider that doesn't explicitly support Django.
> The best option (in my opinion) is to just get a cheap Cloud Server if
> you're up for the task of managing them ($10/month at Rackspace or Free
> for one year at Amazon). Sorry for the bad news :/ Maybe someone else
> can chime in and give you better information? I've just had extremely
> bad luck with trying to do anything other than run PHP on "traditional"
> shared hosts.

Glad to hear you say that, as I have just opted for AWS (using the
Bitnami Django stack), and it's nice to hear that I might have done the
right thing.

--
Regards
Alex

JJ Zolper

unread,
Aug 2, 2012, 10:03:44 PM8/2/12
to django...@googlegroups.com
Yes it seems that way. Thats because its shared hosting and i dont have root privleges. bluehost has hindered what I can do with Django.

But does a cloud server at rackspace have root privleges like a vps? because i think i need to install these geospatial libraries to be able to really make forward progress with my site.

I bought this hosting at bluehost a while ago but i didnt know as much as i do know about django and what i need etc so im thinking a new host. Either slicehost, maybe a cloud server, something like that with full control like root.

JJ

william ratcliff

unread,
Aug 2, 2012, 10:14:31 PM8/2/12
to django...@googlegroups.com
I will say that I've had pretty good luck hosting with webfaction and installing packages locally.  They also have really good support--I'd tell them your use case and ask them if it would work with them.   Even though it's shared hosting, I do have ssh--though not root.... 

William

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/jLF6C23y1pEJ.

Trevor Joynson

unread,
Aug 3, 2012, 2:34:35 AM8/3/12
to django...@googlegroups.com

You are trying to install packages system-wide when you don't have credentials to do so.

You can install everything you need without cluttering the system itself.

For instance, use a virtualenv and set your PREFIX.

Either way, happy hacking!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/0Jx03fySUVUJ.

Dan Gentry

unread,
Aug 3, 2012, 12:24:37 PM8/3/12
to django...@googlegroups.com
Agreed that virtualenv will allow you to install python packages - however not any linux/unix packages.  I have no problems using Django on Dreamhost.  http://dashdrum.com/blog/2011/08/django-on-dreamhost/
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.

JJ Zolper

unread,
Aug 3, 2012, 2:14:42 PM8/3/12
to django...@googlegroups.com
Yeah I've been looking into webfaction. Any information would be great thanks William!

Only issues I would forsee is the root control. That is unless they have all that I need but at the same time I think I would lean to having root over not. Also I'm on a shared hosting right now and it's pretty good but I might be ready to get more serious with my own box and what not.

JJ Zolper

unread,
Aug 3, 2012, 2:16:39 PM8/3/12
to django...@googlegroups.com
Yes when I saw no root privleges I realized very soon that I either have to get a new host that has what I need installed or get my own box and full control.

With virtualenv I can install the packages on bluehost?

JJ Zolper

unread,
Aug 3, 2012, 2:18:27 PM8/3/12
to django...@googlegroups.com
>Agreed that virtualenv will allow you to install python packages - however not any linux/unix packages.  I have no problems using >Django on Dreamhost.  http://dashdrum.com/blog/2011/08/django-on-dreamhost/ 

Thanks for the advice I will look into dreamhost too!

To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/9V4D-bMpS28J.

To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.

Kurtis Mullins

unread,
Aug 3, 2012, 3:13:46 PM8/3/12
to django...@googlegroups.com
With Cloud Servers, yes -- you do get Root access. It's basically the equivelant of a VPS that you can easily spawn, scale, and replicate as needed.

Without root access on servers, virtual environments only get you so far. What happens when you need to install Python imaging library but they don't have a specific library? What happens when you decide you want to plugin to some other library and the version of GCC they have is too ancient to support its make system? etc.... These are just some examples of headaches that may crop up without a good "open" system (such as a VPS, Cloud Server) or a web host who explicitly supports Django.

JJ Zolper

unread,
Aug 10, 2012, 10:01:39 PM8/10/12
to django...@googlegroups.com
I absolutely agree that's why if a place like webfaction can't completely convince me that they can take care of everything I could want then I think I need to go with root access with a cloud server or VPS.

Sorry for the long wait on the reply.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/9V4D-bMpS28J.

To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Mark Gemmill

unread,
Aug 11, 2012, 5:47:39 PM8/11/12
to django...@googlegroups.com
Like William, I'd have to say I've had pretty good luck with Webfaction. You can do just about anything you want and the support is very good. They have standard setup scripts for various types of apps, including Django, but if you want to do something custom you have a lot of freedom. For instance, I recently setup a Django app on my Webfaction account that is running on a custom build of nginx and gunicorn. I even compiled and installed my own local python, rather than use their standard python options.

JJ Zolper

unread,
Aug 11, 2012, 9:50:24 PM8/11/12
to django...@googlegroups.com
Thank you mark for the great response.

Let me add on to the reason I started this thread for any who missed it.

I need to be able to have the capability to install geospatial libraries such as GEOS, PROJ, PostGIS, and possibly GDAL.

On my current host i do not have root privleges and so if for example webfactiom doesnt have support for those then I would look into other options.

I also dont want to rely on a premadr script from webfaction. Why? Well, i want complete flexibility to install any sort of add on I need for my django project. Thats where a VPS or cloud sever strikes me as being the right choice.

Thanks to everyone for their time!

JJ

Mario Lacunza

unread,
Aug 11, 2012, 10:05:40 PM8/11/12
to django...@googlegroups.com
Dont forget ask to webfaction about it too before you buy the package,
you have root access in WF and you can install whaterver you want I
guess. Anyways ask WF support.

http://www.webfaction.com?affiliate=lacunza

Saludos / Best regards

Mario Lacunza
Email:: mlac...@gmail.com
Personal Website:: http://www.lacunza.biz/
OpenOffice.org Perú:: http://openoffice-peru.com/
Hosting:: http://mlv-host.com/
Mascotas Perdidas:: http://mascotas-perdidas.com/
Google Talk / Y! messenger / Skype: mlacunzav
MSN: mlac...@hotmail.com

El 11/08/12 16:50, JJ Zolper escribió:

Kurtis Mullins

unread,
Aug 12, 2012, 6:30:32 PM8/12/12
to django...@googlegroups.com

On Aug 11, 2012 6:31 PM, "Mario Lacunza" <mlac...@gmail.com> wrote:
>
> Dont forget ask to webfaction about it too before > you buy the package, you have root access in WF > and you can install whaterver you want I guess.

Web faction gives root access now?

> Anyways ask WF support.
>
> http://www.webfaction.com?affiliate=lacunza

Haha, nice usage of your affiliate link. Maybe this response was a bit biased?

Reply all
Reply to author
Forward
0 new messages