Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » Trouble with Apache 1.3 and FCGI on Mac OS X [RSS Feed]

#1 Nov. 11, 2005 10:42:39

Colin H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Trouble with Apache 1.3 and FCGI on Mac OS X


Hi,

I've been trying to get up and running with Django on Mac OS X 10.3.9.
I installed Django, and with Django's built-in webserver it works fine.
Due to the issues with serving media (such as css) from that server,
I've been trying to get Django working with the standard apache 1.3 on
the mac using these instructions:http://code.djangoproject.com/wiki/OsxFcgiThey work fine until I try to follow the last instruction to start FCGI
with this instruction:

django-fcgi.py --settings=myproject.settings --host 127.0.0.1 --port
8882 --daemon

at which point django-fcgi.py falls in a heap complaining it's unable
to import 'python-eunuchs'.

On Pypi, python-eunuchs points to a bitkeeper repository. Having
installed the free bikeeper client, it turns out that all I get from
the repository are a couple of directories and file containing what
seem to be encryption keys.

Googling for 'python-eunuchs' pulls up a source tarball in Debian's
repository (which has no dependencies other than python 2.3 (which is
the default on Mac OS X 10.3.9). Perhaps predictably however, running
'python setup.py install' from Debian's python-eunuchs on Mac OS X
gives compilation errors.

So I'm stuck. Has anybody got Django up and runnning with the default
apache on OS X 10.3.9? If so how?

Thanks

Colin

Offline

#2 Nov. 11, 2005 23:51:32

Colin H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Trouble with Apache 1.3 and FCGI on Mac OS X


Well, I never got a reply, and I never got python-eunuchs working.
However, upgrading my python to 2.4 (and then basically reinstalling
everything in the new site-packages) did the trick. I did have to make
a change to the shebang at the start of django-admin.py to point at
python2.4 as well.

Maybe someone with the same problem as me will stumble across this
thread.

Colin



Colin Howlett wrote:
> Hi,
>
> I've been trying to get up and running with Django on Mac OS X 10.3.9.
> I installed Django, and with Django's built-in webserver it works fine.
> Due to the issues with serving media (such as css) from that server,
> I've been trying to get Django working with the standard apache 1.3 on
> the mac using these instructions:
>
>http://code.djangoproject.com/wiki/OsxFcgi>
> They work fine until I try to follow the last instruction to start FCGI
> with this instruction:
>
> django-fcgi.py --settings=myproject.settings --host 127.0.0.1 --port
> 8882 --daemon
>
> at which point django-fcgi.py falls in a heap complaining it's unable
> to import 'python-eunuchs'.
>
> On Pypi, python-eunuchs points to a bitkeeper repository. Having
> installed the free bikeeper client, it turns out that all I get from
> the repository are a couple of directories and file containing what
> seem to be encryption keys.
>
> Googling for 'python-eunuchs' pulls up a source tarball in Debian's
> repository (which has no dependencies other than python 2.3 (which is
> the default on Mac OS X 10.3.9). Perhaps predictably however, running
> 'python setup.py install' from Debian's python-eunuchs on Mac OS X
> gives compilation errors.
>
> So I'm stuck. Has anybody got Django up and runnning with the default
> apache on OS X 10.3.9? If so how?
>
> Thanks
>
> Colin

Offline

#3 Nov. 12, 2005 01:25:03

h.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Trouble with Apache 1.3 and FCGI on Mac OS X


>Well, I never got a reply, and I never got python-eunuchs working.

Maybe giving us a bit more than just one day to react? :-)

>However, upgrading my python to 2.4 (and then basically reinstalling
>everything in the new site-packages) did the trick. I did have to make

Python Eunuchs is found here:http://www.inoi.fi/open/trac/eunuchsIt does build on OS X, that's where I did the first experiments with
the django-fcgi.py script. But updating to Python 2.4 is another
working solution - Python Eunuchs is only needed because Python 2.3
doesn't include the socketpair function in the socket module.

The documentation on the current version of the django-fcgi.py script
is at this URL:https://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/wiki/DjangoFcgibye, Georg

Offline

#4 Nov. 16, 2005 10:09:13

Colin H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Trouble with Apache 1.3 and FCGI on Mac OS X


Georg,

I wasn't really complaining about not getting a reply, just stating a
fact :-)

Anyway, I did try downloading fromhttp://www.inoi.fi/open/trac/eunuchsand it didn't compile for me. Were you using 10.4?

As I said, my problem is solved, but it would be nice to have clear
guidance for others.

regards

Colin


hugo wrote:
> >Well, I never got a reply, and I never got python-eunuchs working.
>
> Maybe giving us a bit more than just one day to react? :-)
>
> >However, upgrading my python to 2.4 (and then basically reinstalling
> >everything in the new site-packages) did the trick. I did have to make
>
> Python Eunuchs is found here:
>
>http://www.inoi.fi/open/trac/eunuchs>
> It does build on OS X, that's where I did the first experiments with
> the django-fcgi.py script. But updating to Python 2.4 is another
> working solution - Python Eunuchs is only needed because Python 2.3
> doesn't include the socketpair function in the socket module.
>
> The documentation on the current version of the django-fcgi.py script
> is at this URL:
>
>https://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/wiki/DjangoFcgi>
> bye, Georg

Offline

#5 Nov. 16, 2005 10:42:47

Ian H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Trouble with Apache 1.3 and FCGI on Mac OS X


Hi Colin.
as a point of reference I use Apache2 + mod-python on my OS/X box and
it works like a charm.
I would recommned people investigate this option as well.

regards
Ian.

On 11/16/05, Colin Howlett <> wrote:
>
> Georg,
>
> I wasn't really complaining about not getting a reply, just stating a
> fact :-)
>
> Anyway, I did try downloading from
>
>http://www.inoi.fi/open/trac/eunuchs>
> and it didn't compile for me. Were you using 10.4?
>
> As I said, my problem is solved, but it would be nice to have clear
> guidance for others.
>
> regards
>
> Colin
>
>
> hugo wrote:
> > >Well, I never got a reply, and I never got python-eunuchs working.
> >
> > Maybe giving us a bit more than just one day to react? :-)
> >
> > >However, upgrading my python to 2.4 (and then basically reinstalling
> > >everything in the new site-packages) did the trick. I did have to make
> >
> > Python Eunuchs is found here:
> >
> >http://www.inoi.fi/open/trac/eunuchs> >
> > It does build on OS X, that's where I did the first experiments with
> > the django-fcgi.py script. But updating to Python 2.4 is another
> > working solution - Python Eunuchs is only needed because Python 2.3
> > doesn't include the socketpair function in the socket module.
> >
> > The documentation on the current version of the django-fcgi.py script
> > is at this URL:
> >
> >https://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/wiki/DjangoFcgi> >
> > bye, Georg
>
>


--
-- ++61-3-9877-0909
If everything seems under control, you're not going fast enough. -
Mario Andretti

Offline

  • Root
  • » Django
  • » Trouble with Apache 1.3 and FCGI on Mac OS X [RSS Feed]

Board footer

Moderator control

Enjoy the 18th of November
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support