Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] "'python' does not respect EPYTHON variable
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
nusch
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2007
Posts: 115
Location: Katowice(Poland)

PostPosted: Fri Sep 30, 2011 2:20 pm    Post subject: [Solved] "'python' does not respect EPYTHON variable Reply with quote

I'm upgrading very old gentoo installation, passed lot of problems but stuck on this:
Code:


>>> Emerging (3 of 12) dev-python/setuptools-0.6.19
 * distribute-0.6.19.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                          [ ok ]
>>> Unpacking source...
>>> Unpacking distribute-0.6.19.tar.gz to /var/tmp/portage/dev-python/setuptools-0.6.19/work
>>> Source unpacked in /var/tmp/portage/dev-python/setuptools-0.6.19/work
>>> Preparing source in /var/tmp/portage/dev-python/setuptools-0.6.19/work/distribute-0.6.19 ...
 * Applying setuptools-0.6_rc7-noexe.patch ...                                                                                                            [ ok ]
 * Applying distribute-0.6.16-fix_deprecation_warnings.patch ...                                                                                          [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/setuptools-0.6.19/work/distribute-0.6.19 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/setuptools-0.6.19/work/distribute-0.6.19 ...
 * Path to 'python':                 '/usr/local/bin/python'
 * ABI:                              ''
 * DEFAULT_ABI:                      'default'
 * EPYTHON:                          'python3.1'
 * PYTHON_ABI:                       '3.1'
 * Locally active version of Python: '2.6'
 * ERROR: dev-python/setuptools-0.6.19 failed (compile phase):
 *   'python' does not respect EPYTHON variable
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 5110:  Called distutils_src_compile
 *   environment, line 1269:  Called python_execute_function 'distutils_building'
 *   environment, line 3414:  Called _python_calculate_PYTHON_ABIS
 *   environment, line  529:  Called _python_final_sanity_checks
 *   environment, line  703:  Called die
 * The specific snippet of code:
 *                   die "'python' does not respect EPYTHON variable";
 *
 * If you need support, post the output of 'emerge --info =dev-python/setuptools-0.6.19',
 * the complete build log and the output of 'emerge -pqv =dev-python/setuptools-0.6.19'.
 * The complete build log is located at '/var/tmp/portage/dev-python/setuptools-0.6.19/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/setuptools-0.6.19/temp/environment'.
 * S: '/var/tmp/portage/dev-python/setuptools-0.6.19/work/distribute-0.6.19'

>>> Failed to emerge dev-python/setuptools-0.6.19, Log file:

>>>  '/var/tmp/portage/dev-python/setuptools-0.6.19/temp/build.log'

 * Messages for package dev-python/setuptools-0.6.19:

 * Path to 'python':                 '/usr/local/bin/python'
 * ABI:                              ''
 * DEFAULT_ABI:                      'default'
 * EPYTHON:                          'python3.1'
 * PYTHON_ABI:                       '3.1'
 * Locally active version of Python: '2.6'
 * ERROR: dev-python/setuptools-0.6.19 failed (compile phase):
 *   'python' does not respect EPYTHON variable
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 5110:  Called distutils_src_compile
 *   environment, line 1269:  Called python_execute_function 'distutils_building'
 *   environment, line 3414:  Called _python_calculate_PYTHON_ABIS
 *   environment, line  529:  Called _python_final_sanity_checks
 *   environment, line  703:  Called die
 * The specific snippet of code:
 *                   die "'python' does not respect EPYTHON variable";


This happens for limited ammount of packages, I have problem also with sys-apps/file , emerging with USE="-python" helped but can't do this for python related ebuild.
build.log
emerge.info
Code:


Gentoo-11 tmp # eselect python --list
Available Python interpreters:
  [1]   python2.4
  [2]   python2.6 *
  [3]   python2.7
  [4]   python3.1

I tried also to rebuild python 2.6.,2.7, 3.1 and switching between all those with eselect and python-updater


Last edited by nusch on Mon Oct 03, 2011 9:35 am; edited 1 time in total
Back to top
View user's profile Send private message
dol-sen
Developer
Developer


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

PostPosted: Sun Oct 02, 2011 6:51 pm    Post subject: Reply with quote

It looks like you have a manually installed python in the mix causing your trouble.

Code:
 * Path to 'python':                 '/usr/local/bin/python'

_________________
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
nusch
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2007
Posts: 115
Location: Katowice(Poland)

PostPosted: Sun Oct 02, 2011 7:05 pm    Post subject: Reply with quote

I extracted stage3 over existing system, I don't know what previous administrator exactly did. But is it safe to simply delete this executable and eventually site/dist-packages in /usr/local ?
Back to top
View user's profile Send private message
dol-sen
Developer
Developer


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

PostPosted: Sun Oct 02, 2011 7:14 pm    Post subject: Reply with quote

I think it would be, but as always the safest is to rename it and test. If all is well it is safe to delete and get back to a fully package manager managed gentoo system again.

P.S. The thanks for the PATH spot goes to Arfever on #gentoo-python. Since there were no reply's, I had posted a link to this thread in the irc channel.
_________________
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
nusch
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2007
Posts: 115
Location: Katowice(Poland)

PostPosted: Mon Oct 03, 2011 9:35 am    Post subject: Reply with quote

Thx, it works
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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