CherryPy-2.1.0-rc1 setup problem.

55 views
Skip to first unread message

Steve Robb

unread,
Oct 18, 2005, 4:45:25 PM10/18/05
to cherryp...@googlegroups.com
Trying to install CherryPy on an Ubuntu machine.
I get the following message when running setup install.

stever@Compaq:~/Desktop/CherryPy-2.1.0-rc1$ ls
CHANGELOG.txt cherrypy CHERRYPYTEAM.txt PKG-INFO README.txt
setup.py
stever@Compaq:~/Desktop/CherryPy-2.1.0-rc1$ python setup.py install
running install
error: invalid Python installation: unable to
open /usr/lib/python2.4/config/Makefile (No such file or directory)

stever@Compaq:~/Desktop/CherryPy-2.1.0-rc1$ sudo python setup.py install
running install
error: invalid Python installation: unable to
open /usr/lib/python2.4/config/Makefile (No such file or directory)



Tom Fillmore

unread,
Oct 18, 2005, 4:50:19 PM10/18/05
to cherryp...@googlegroups.com, ste...@insightbb.com
Try installing the Python Dev packages...

T Fillmore
fellow Ubuntu user

Steve Robb

unread,
Oct 18, 2005, 5:00:43 PM10/18/05
to cherryp...@googlegroups.com
Well, that got me through the install without getting any errors, but

Python 2.4.2 (#2, Sep 30 2005, 21:19:01)
[GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import CherryPy
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named CherryPy

How could that be???
sr

Robert Brewer

unread,
Oct 18, 2005, 5:08:44 PM10/18/05
to cherryp...@googlegroups.com
Steve Robb wrote:
> Well, that got me through the install without getting any errors, but
>
> Python 2.4.2 (#2, Sep 30 2005, 21:19:01)
> [GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import CherryPy
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> ImportError: No module named CherryPy
>
> How could that be???

Might the module name be case-sensitive? Try "import cherrypy" instead.
http://docs.python.org/ref/identifiers.html


Robert Brewer
System Architect
Amor Ministries
fuma...@amor.org

Tom Fillmore

unread,
Oct 18, 2005, 5:31:55 PM10/18/05
to cherryp...@googlegroups.com, ste...@insightbb.com
In this case CherryPy is actually cherrypy ... 8-)

Also - many examples show 'from cherrypy import cpg' or similar, AFAIK this is deprecated. Instead, try 'import cherrypy as cpg' when trying the examples.

TF


On Tue, 18 Oct 2005 16:00:43 -0500

Steve Robb

unread,
Oct 18, 2005, 5:37:31 PM10/18/05
to cherryp...@googlegroups.com
Oh brother,

>>> import CherryPy
Traceback (most recent call last):
File "<input>", line 1, in ?
ImportError: No module named CherryPy
>>> import cherrypy
>>>
Sorry.

Thanks,
sr

Steve Robb

unread,
Oct 18, 2005, 6:03:38 PM10/18/05
to cherryp...@googlegroups.com
Helloworld runs fine now.

Now I'm going for the bonus-sqlobject.py app.

Here is what I get when I run sudo python setup.py install on the
Cheetah package. This is way after a bunch of it ran without problems.

building 'Cheetah._namemapper' extension
creating build/temp.linux-i686-2.4
creating build/temp.linux-i686-2.4/src
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.4 -c src/_namemapper.c
-o build/temp.linux-i686-2.4/src/_namemapper.o
unable to execute gcc: No such file or directory
error: command 'gcc' failed with exit status 1
stever@Compaq:~/Desktop/Cheetah-0.9.18$

Ubuntu seems to have installed GCC versions gcc-3.4-base and
gcc-4.0-base.

Does anyone know what package I may need?
Sorry for so many questions,
sr

Tom Fillmore

unread,
Oct 18, 2005, 7:02:49 PM10/18/05
to cherryp...@googlegroups.com, ste...@insightbb.com
My ubuntu shows only gcc-3.3 (I'm running hoary). I suspect you installed something that absolutely required 4.0. Or, possibly, you installed from the 5.10 preview? The previews were a bit flaky, I've read. You could always try removing 4.0 and see how synaptic complains.

Lastly - have you scoped out the wiki/forums at ubuntu? I've found them to be really quite helpful.

TF

Steve Robb

unread,
Oct 18, 2005, 7:28:17 PM10/18/05
to cherryp...@googlegroups.com
Yes, I am running the new 5.10.
I will try removing 4.0 and take a look at that wiki/forum.
sr
Reply all
Reply to author
Forward
0 new messages