pymemcompat.h:10:20: error: Python.h: No such file or directory

Python.h, from the python headers is missing.  There is no python2.6-
dev package in debian that I see and that file doesn't show up on
packages.debian.org.  I suspect apt-get source python2.6 would get the
libraries and you could point it to those headers.  Debian still has a
<2.6 dependency on python-mysql which means that you won't be able to
use a packaged version in Ubuntu unless ubuntu has self-packaged.
They have done that in the past with Firefox and a few other packages.

On Sep 2, 4:03 pm, [email protected] wrote:
> On Tue, Sep 01, 2009 at 09:40:35PM -0700, Mike Orr wrote:
> > I always get stymied by this and use the Ububtu python-mysql instead.
>
> Thanks for the tip; I tried installing this, but I have no idea how to test
> it either in the python base install or my virtual env.
>
> Do you know how I can test to make sure it's available?

$ python
Python 2.5.4 (r254:67916, Feb 17 2009, 20:16:45)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
>>>

If you see something like:

$ python
Python 2.5.4 (r254:67916, Feb 17 2009, 20:16:45)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named MySQLdb
>>>

it isn't working.

However, if you have python 2.6 and install python-mysql, it will
install python 2.5 which won't be your default.  You can use

update-alternatives --set python /usr/bin/python2.5    to set your
default.

Also, when you build your virtual environment, you can use python 2.5
for it with the packaged version rather than 2.6.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to