Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Paludis + python related breakage
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
marsclic
n00b
n00b


Joined: 02 Mar 2003
Posts: 74

PostPosted: Tue Aug 11, 2009 12:49 am    Post subject: [Solved] Paludis + python related breakage Reply with quote

Has anyone seen this error before? Note the "python." invocation which is the source of the error. This has broken compilation of several related packages.
============================
...
>> Done builtin_loadenv
>>> Starting src_compile
* Building of dev-python/pyrex-0.9.8.5-r1 with Python ....
python. setup.py build -b build-.
/var/tmp/paludis/dev-python-pyrex-0.9.8.5-r1/temp/loadsaveenv: line 1209: python.: command not found

!!! ERROR in dev-python/pyrex-0.9.8.5-r1:
!!! In python_execute_function at line 4050
!!! Building failed with Python . in build_modules() function

!!! Call stack:
!!! * python_execute_function (/var/tmp/paludis/dev-python-pyrex-0.9.8.5-r1/temp/loadsaveenv:4050)
!!! * distutils_src_compile (/var/tmp/paludis/dev-python-pyrex-0.9.8.5-r1/temp/loadsaveenv:1211)
!!! * src_compile (/var/tmp/paludis/dev-python-pyrex-0.9.8.5-r1/temp/loadsaveenv:4375)
!!! * ebuild_f_compile (/usr/libexec/paludis/2/src_compile.bash:56)
!!! * ebuild_main (/usr/libexec/paludis/ebuild.bash:575)
!!! * main (/usr/libexec/paludis/ebuild.bash:591)

diefunc: making ebuild PID 7916 exit with error
die trap: exiting with error.

Install error:
* In program paludis -i pyrex:
* When performing install action from command line:
* When executing install task:
* When installing 'dev-python/pyrex-0.9.8.5-r1:0::gentoo':
* When running an ebuild command on 'dev-python/pyrex-0.9.8.5-r1:0::gentoo':
* Install error: Install failed for 'dev-python/pyrex-0.9.8.5-r1:0::gentoo'
==================================

I have tried downgrading and recompiling paludis and several other packages which I thought were related to no avail.


Last edited by marsclic on Tue Sep 01, 2009 5:05 am; edited 1 time in total
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Tue Aug 11, 2009 4:19 am    Post subject: Reply with quote

What version of python do you have installed?

What does
Code:
eselect python list
output? Which version is selected as the default?
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
marsclic
n00b
n00b


Joined: 02 Mar 2003
Posts: 74

PostPosted: Tue Aug 11, 2009 3:46 pm    Post subject: Reply with quote

# eselect python list
Available python interpreters:
[1] python2.5
[2] python2.6 *
[3] python3.1

#python
Python 2.6.2 (r262:71600, Aug 10 2009, 11:18:48)
[GCC 4.3.4]

#ls -l /usr/bin/python*
lrwxrwxrwx 1 root root 14 2009-08-10 11:20 /usr/bin/python -> python-wrapper
lrwxrwxrwx 1 root root 9 2009-08-10 11:20 /usr/bin/python2 -> python2.6
-rwxr-xr-x 1 root root 6568 2009-07-23 14:33 /usr/bin/python2.5
-rwxr-xr-x 1 root root 6560 2009-08-10 11:20 /usr/bin/python2.6
lrwxrwxrwx 1 root root 9 2009-08-09 18:13 /usr/bin/python3 -> python3.1
-rwxr-xr-x 1 root root 10728 2009-08-09 18:13 /usr/bin/python3.1

It doesn't matter if I eselect 2.5 or 2.6, the problem persists.
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Wed Aug 12, 2009 12:44 am    Post subject: Reply with quote

I wonder if your PATH environment variable is messed up and so it is not finding python?

Oh, I just spotted something that may be the root of the problem
Quote:
python. setup.py


Note the period immediately following python. It also shows up in the spew it outputs
Quote:
line 1209: python.: command not found


That could be what is causing your problem. Now the source is another question. Does paludis have their own version of the distutils eclass. Possibly a typo.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
marsclic
n00b
n00b


Joined: 02 Mar 2003
Posts: 74

PostPosted: Wed Aug 12, 2009 5:11 pm    Post subject: Reply with quote

Hey dol-sen,

Thanks for trying to help out. No, the PATH is ok, it finds python alright from the command line. Yes I had spotted the "python." problem also, as I had outlined in my first message. This problem is not particular to pyrex's ebuild, it happens in other ebuilds as well. It seems to be happening in the way paludis builds those packages. Since it's been a couple of days and nobody else seems to be having the same problem I will try to file a bug with the paludis developer.
Thanks!
Back to top
View user's profile Send private message
marsclic
n00b
n00b


Joined: 02 Mar 2003
Posts: 74

PostPosted: Tue Sep 01, 2009 4:57 am    Post subject: [Solved] - Paludis + python related breakage Reply with quote

I solved this problem some time ago but forgot to update the post. It was caused by a rogue link from /bin/python to /usr/bin/python. Since python-wrapper just bails out if it is invoked outside of /usr/bin, this problem was a little tricky to resolve. Also, some packages were built that were referencing /bin/python and would break, such as javatoolkit. So beware of links to /usr/bin/python!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum