Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to install pycairo for python 3 on Ubuntu 10.04
    text
    copied!<p>i am trying to install pycairo 1.10.0 for use with my custom-build python 3.1. however,</p> <pre><code>sudo /flower/bin/easy_install-3.1 pycairo </code></pre> <p>fails with </p> <pre><code>XXX@XXXX:/adventures$ sudo /flower/bin/easy_install-3.1 pycairo install_dir /flower/lib/python3.1/site-packages/ Searching for pycairo Reading http://pypi.python.org/simple/pycairo/ Reading http://cairographics.org/pycairo Best match: pycairo 1.10.0 Downloading http://cairographics.org/releases/pycairo-1.10.0.tar.bz2 Processing pycairo-1.10.0.tar.bz2 error: Couldn't find a setup script in /tmp/easy_install-zeG9HB/pycairo-1.10.0.tar.bz2 </code></pre> <p>and indeed, there is no <code>setup.py</code> in the said download; instead, the <code>INSTALL</code> says: </p> <pre><code>Install Procedure ----------------- $ ./waf --help # shows available waf options $ ./waf configure # use --prefix and --libdir if necessary # --prefix=/usr --libdir=/usr/lib64 for Fedora 64-bit $ ./waf build $ ./waf install Use $ python3 ./waf ... if you have python2 and python3 installed, and the default is python 2. Testing ------- See test/README </code></pre> <p>i understand that as telling me that i should</p> <pre><code>sudo /flower/bin/python3.1 ./waf configure --prefix=/flower/pycairo/ </code></pre> <p>or similar; however, this leads to the following error:</p> <pre><code> ./options() Setting top to : /tmp/pycairo-1.10.0 Setting out to : /tmp/pycairo-1.10.0/build_directory ./configure() Checking for 'gcc' (c compiler) : ok Checking for program python : /usr/bin/python python executable '/usr/bin/python' different from sys.executable '/flower/bin/python3.1' Checking for python version : (2, 6, 5, 'final', 0) The python version is too old, expecting (3, 1, 0) </code></pre> <p>so i went down into the source code; there is seemingly no way to tell this <code>waf</code> thingie that the targetted python version is simply the one it runs on itself, so i fumbled around and got as far as this:</p> <pre><code>Checking for 'gcc' (c compiler) : ok Checking for program python : /usr/bin/python #############293 /flower/bin/python3.1 Checking for python version : (3, 1, 2, 'final', 0) Checking for library python3.1 in LIBDIR : yes Checking for program python3.1-config : not found Checking for program python-config-3.1 : not found Checking for header Python.h : Could not find the python development headers Checking for [] : not found The configuration failed </code></pre> <p>i do in fact have a file <code>/flower/bin/python3.1-config</code> so i don't get it. the python code that does all this is rather hard to handle. </p> <p>any suggestions how to go on? is there a <code>*.deb</code> or similar ready for pycairo + python 3? couldn't find any.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload