Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290321 - dev-python/lxml-2.2.2: compilation failed with message "lxml requires cython-0.9.6.10 or later."
Summary: dev-python/lxml-2.2.2: compilation failed with message "lxml requires cython-...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-24 02:31 UTC by Danila Bespalov
Modified: 2009-11-12 19:25 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Danila Bespalov 2009-10-24 02:31:55 UTC
After I tried to update lxml from 2.2.1 to 2.2.2 a compilation error occured.

 * Building of dev-python/lxml-2.2.2 with Python 2.6...                         
python2.6 setup.py build -b build-2.6                                           
lxml requires cython-0.9.6.10 or later.                                         
 *                                                                              
 * ERROR: dev-python/lxml-2.2.2 failed.                                         
 * Call stack:                                                                  
 *               ebuild.sh, line   49:  Called src_compile                      
 *             environment, line 3408:  Called distutils_src_compile            
 *             environment, line  841:  Called python_execute_function 'building'                                                                               
 *             environment, line 2990:  Called die                              
 * The specific snippet of code:                                                
 *                       die "${failure_message}";                              
 *  The die message:                                                            
 *   Building failed with Python 2.6 in building() function                     

Actually, I have cython-0.11.2 installed.

Reproducible: Always

Steps to Reproduce:
1. emerge --update lxml
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-10-24 02:35:10 UTC
Could it be that you haven't re-installed cython since you upgraded python?
Comment 2 Marcel Martin 2009-10-24 15:44:33 UTC
I just had the same problem. Reinstalling cython did help. I assume running python-updater would have solved this automatically. I always get bitten by this, would it be possible to somehow warn about this more prominently?
Comment 3 Danila Bespalov 2009-10-25 17:40:43 UTC
Yes, I just forgot to run python-updater. Sorry for sending bug located mostly in my head than in Gentoo.
Comment 4 Filipe Teixeira 2009-11-12 10:49:46 UTC
(In reply to comment #1)
> Could it be that you haven't re-installed cython since you upgraded python?
> 

lxml has the threads flag active, but I think it's dependencies don't. Perhaps enabeling system-wide threads USE flag solves the problem.... 
Comment 5 Filipe Teixeira 2009-11-12 12:16:57 UTC
Actually, All it needed was to update setuptools (I updated it to ~x86 and lxml started to compile without difficulties).



Comment 6 Kir Kolyshkin 2009-11-12 19:25:14 UTC
(In reply to comment #5)
> Actually, All it needed was to update setuptools (I updated it to ~x86 and lxml
> started to compile without difficulties).

Does that mean that a stable version of setuptools can't be used to compile a stable version of lxml? If yes that's a bug AFAICS.