Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Проблема emerge python syntax error обновление
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
piligri
n00b
n00b


Joined: 26 Oct 2009
Posts: 2

PostPosted: Mon Oct 26, 2009 8:55 am    Post subject: [SOLVED]Проблема emerge python syntax error обновление Reply with quote

Добрый ...
Возникла такая пробблема: система после синхронизации попросила обновить portage, закачала и поставила python и вот тут то все и началось!

ya_router ~ # emerge portage
File "/usr/bin/emerge", line 41
except PermissionDenied, e:
^
SyntaxError: invalid syntax

Подумал, eselect указал другой питон:

ya_router ~ # eselect python set python2.5
ya_router ~ # emerge portage
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-apps/portage-2.1.7.1
* portage-2.1.7.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* portage-2.1.7.1.patch.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
*
* ERROR: sys-apps/portage-2.1.7.1 failed.
* Call stack:
* ebuild.sh, line 49: Called pkg_setup
* portage-2.1.7.1.ebuild, line 73: Called die
* The specific snippet of code:
* die "This version of portage requires at least python-2.6 to be selected as the default python interpreter (see \`eselect python --help\`)."
* The die message:
* This version of portage requires at least python-2.6 to be selected as the default python interpreter (see `eselect python --help`).
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/sys-apps/portage-2.1.7.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/portage-2.1.7.1/temp/die.env'.
*

>>> Failed to emerge sys-apps/portage-2.1.7.1, Log file:

>>> '/var/tmp/portage/sys-apps/portage-2.1.7.1/temp/build.log'

* Messages for package sys-apps/portage-2.1.7.1:

*
* ERROR: sys-apps/portage-2.1.7.1 failed.
* Call stack:
* ebuild.sh, line 49: Called pkg_setup
* portage-2.1.7.1.ebuild, line 73: Called die
* The specific snippet of code:
* die "This version of portage requires at least python-2.6 to be selected as the default python interpreter (see \`eselect python --help\`)."
* The die message:
* This version of portage requires at least python-2.6 to be selected as the default python interpreter (see `eselect python --help`).
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/sys-apps/portage-2.1.7.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/portage-2.1.7.1/temp/die.env'.
*
ya_router ~ #

результат на лице ...
обратно ставлю:
ya_router ~ # eselect python set python3.1
ya_router ~ # emerge portage
File "/usr/bin/emerge", line 41
except PermissionDenied, e:
^
SyntaxError: invalid syntax

Может кто встречался с такой проблемой? ну никак не могу найти нигде ничего подобного ...

Если надо еще какой вывод каких команд - выложу.

Спасибо за ответы :)


Last edited by piligri on Tue Oct 27, 2009 5:19 am; edited 1 time in total
Back to top
View user's profile Send private message
fank
l33t
l33t


Joined: 16 Oct 2004
Posts: 794
Location: Minsk, Belarus

PostPosted: Mon Oct 26, 2009 12:17 pm    Post subject: Reply with quote

профиль hardened?
selinux включен?
_________________
Слово „христианство“ основано на недоразумении; в сущности, был один христианин, и тот умер на кресте.
Back to top
View user's profile Send private message
ArhAngel
n00b
n00b


Joined: 21 Mar 2009
Posts: 6

PostPosted: Mon Oct 26, 2009 3:22 pm    Post subject: Reply with quote

А почему вы делаете
Code:
eselect set python2.5
если emerge вам говорит прямым текстом
Code:
"This version of portage requires at least python-2.6 to be selected as the default python interpreter ..."
Back to top
View user's profile Send private message
piligri
n00b
n00b


Joined: 26 Oct 2009
Posts: 2

PostPosted: Tue Oct 27, 2009 5:19 am    Post subject: Reply with quote

Quote:
профиль hardened?
selinux включен?

два раза нет :)

Quote:
А почему вы делаете
Код:
eselect set python2.5
если emerge вам говорит прямым текстом
Код:

Потому что других в системе не было :)

Проблему решил установой питона 2.6 и сбором портежа
Хотя похоже сам дурак, там USE был python3 ...

Всем спасибо за ответы
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian 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