* [gentoo-user] python 3.1 safe as default python?
@ 2009-08-02 15:17 Doug Hunley
2009-08-02 16:25 ` [gentoo-user] " Nikos Chantziaras
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: Doug Hunley @ 2009-08-02 15:17 UTC (permalink / raw
To: gentoo-user
I noticed that my 'emerge world' wants to replace python 2.6.2 with
python 3.1 (I run ~x86). Is it safe to do so or will portage (and
everything else) freak out? If it is, in fact, safe are there any
extra (special) steps needed to ensure continued operation of things?
Thanks.
--
Douglas J Hunley, RHCT
doug.hunley@gmail.com : http://douglasjhunley.com : Twitter: @hunleyd
Obsessively opposed to the typical.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [gentoo-user] Re: python 3.1 safe as default python?
2009-08-02 15:17 [gentoo-user] python 3.1 safe as default python? Doug Hunley
@ 2009-08-02 16:25 ` Nikos Chantziaras
2009-08-02 16:26 ` [gentoo-user] " Neil Bothwick
2009-08-02 16:46 ` Albert Hopkins
2 siblings, 0 replies; 14+ messages in thread
From: Nikos Chantziaras @ 2009-08-02 16:25 UTC (permalink / raw
To: gentoo-user
On 08/02/2009 06:17 PM, Doug Hunley wrote:
> I noticed that my 'emerge world' wants to replace python 2.6.2 with
> python 3.1 (I run ~x86).
Nope, it does not :) It only wants to install it alongside 2.6.x, not
replace it.
> Is it safe to do so or will portage (and
> everything else) freak out? If it is, in fact, safe are there any
> extra (special) steps needed to ensure continued operation of things?
> Thanks.
No danger. The default will still be 2.6.x. If you don't specifically
need 3.1 though, you can simply mask it since the only thing it will do
in your case is take up disk space.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] python 3.1 safe as default python?
2009-08-02 15:17 [gentoo-user] python 3.1 safe as default python? Doug Hunley
2009-08-02 16:25 ` [gentoo-user] " Nikos Chantziaras
@ 2009-08-02 16:26 ` Neil Bothwick
2009-08-02 16:46 ` Albert Hopkins
2 siblings, 0 replies; 14+ messages in thread
From: Neil Bothwick @ 2009-08-02 16:26 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 786 bytes --]
On Sun, 2 Aug 2009 11:17:22 -0400, Doug Hunley wrote:
> I noticed that my 'emerge world' wants to replace python 2.6.2 with
> python 3.1 (I run ~x86). Is it safe to do so or will portage (and
> everything else) freak out? If it is, in fact, safe are there any
> extra (special) steps needed to ensure continued operation of things?
t does not replace python 2.6, it installs in a separate slot. Python 2.6
remains the default as many modules don't yet work with 3.
This is given in the elog message, but of course you have to be
brave/foolish enough to emerge it to see that. So yes, it is safe to
allow python 3.1 to install.
--
Neil Bothwick
I thought I saw the light at the end of the tunnel...
but it was just some sod with a torch bringing me more work!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] python 3.1 safe as default python?
2009-08-02 15:17 [gentoo-user] python 3.1 safe as default python? Doug Hunley
2009-08-02 16:25 ` [gentoo-user] " Nikos Chantziaras
2009-08-02 16:26 ` [gentoo-user] " Neil Bothwick
@ 2009-08-02 16:46 ` Albert Hopkins
2009-08-02 17:20 ` [gentoo-user] " Christer Ekholm
2 siblings, 1 reply; 14+ messages in thread
From: Albert Hopkins @ 2009-08-02 16:46 UTC (permalink / raw
To: gentoo-user
On Sun, 2009-08-02 at 11:17 -0400, Doug Hunley wrote:
> I noticed that my 'emerge world' wants to replace python 2.6.2 with
> python 3.1 (I run ~x86).
It doesn't "replace" 2.6.2. It's slotted.
> Is it safe to do so or will portage (and
> everything else) freak out?
I would think (hope) that the python maintainers were smart enough to
know whether installing Python 3 would break portage. Then again, this
is Gentoo ;-)
> If it is, in fact, safe are there any
> extra (special) steps needed to ensure continued operation of things?
> Thanks.
>From the ebuild's post-install:
WARNING!
Many Python modules haven't been ported yet to Python 3.*.
/usr/bin/python hasn't been updated and still references your
old Python installation.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [gentoo-user] Re: python 3.1 safe as default python?
2009-08-02 16:46 ` Albert Hopkins
@ 2009-08-02 17:20 ` Christer Ekholm
2009-08-02 21:07 ` Keith Dart
2009-08-03 0:15 ` Adam Carter
0 siblings, 2 replies; 14+ messages in thread
From: Christer Ekholm @ 2009-08-02 17:20 UTC (permalink / raw
To: gentoo-user
Albert Hopkins <marduk@letterboxes.org> writes:
> On Sun, 2009-08-02 at 11:17 -0400, Doug Hunley wrote:
> I would think (hope) that the python maintainers were smart enough to
> know whether installing Python 3 would break portage. Then again, this
> is Gentoo ;-)
Just installing it doesn't break portage. But using it does! :)
19:14:44 poke:~ $ eselect python list
Available python interpreters:
[1] python2.6
[2] python3.1
19:17:24 poke:~ $ sudo eselect python set 2
19:17:31 poke:~ $ emerge --info
File "/usr/bin/emerge", line 41
except PermissionDenied, e:
^
SyntaxError: invalid syntax
--
Christer
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: python 3.1 safe as default python?
2009-08-02 17:20 ` [gentoo-user] " Christer Ekholm
@ 2009-08-02 21:07 ` Keith Dart
2009-08-02 23:35 ` Doug Hunley
2009-08-03 0:15 ` Adam Carter
1 sibling, 1 reply; 14+ messages in thread
From: Keith Dart @ 2009-08-02 21:07 UTC (permalink / raw
To: gentoo-user
=== On Sun, 08/02, Christer Ekholm wrote: ===
> Just installing it doesn't break portage. But using it does! :)
===
That's probably why it's there now. ;-)
Thanks for the clarification everyone. I was wondering the same thing.
-- Keith Dart
--
-- --------------------
Keith Dart
<keith@dartworks.biz>
=======================
^ permalink raw reply [flat|nested] 14+ messages in thread
* [gentoo-user] Re: python 3.1 safe as default python?
2009-08-02 21:07 ` Keith Dart
@ 2009-08-02 23:35 ` Doug Hunley
2009-08-03 0:01 ` Dale
2009-08-03 0:35 ` Neil Bothwick
0 siblings, 2 replies; 14+ messages in thread
From: Doug Hunley @ 2009-08-02 23:35 UTC (permalink / raw
To: gentoo-user
On Sun, Aug 2, 2009 at 17:07, Keith Dart<keith@dartworks.biz> wrote:
>> Just installing it doesn't break portage. But using it does! :)
>
Exactly. When I ran this (and then went for breakfast and coffee):
/usr/bin/eix-sync
/usr/bin/emerge --update --newuse --deep --keep-going --with-bdeps
y/usr/bin/emerge --update --newuse --deep --keep-going --with-bdeps y
world
/usr/bin/emerge --depclean
/usr/bin/revdep-rebuild -C -P
I ended up with Python 3.1 and no 2.x which made a horrible mess. I
ended up having to manually download and install Python 2.x into /opt
and pointing /usr/bin/python to it to get things functional enough
again to re-emerge the 2.6 release. So, ok, maybe it doesn't 'replace'
it, but something sure as hell removed it, which is clearly the wrong
behavior since emerge depends on it. Please enlighten me where I went
wrong as I'd rather not have such surprises in the morn. :)
--
Douglas J Hunley, RHCT
doug.hunley@gmail.com : http://douglasjhunley.com : Twitter: @hunleyd
Obsessively opposed to the typical.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: python 3.1 safe as default python?
2009-08-02 23:35 ` Doug Hunley
@ 2009-08-03 0:01 ` Dale
2009-08-03 0:17 ` Mike Kazantsev
2009-08-03 0:35 ` Neil Bothwick
1 sibling, 1 reply; 14+ messages in thread
From: Dale @ 2009-08-03 0:01 UTC (permalink / raw
To: gentoo-user
Doug Hunley wrote:
> On Sun, Aug 2, 2009 at 17:07, Keith Dart<keith@dartworks.biz> wrote:
>
>>> Just installing it doesn't break portage. But using it does! :)
>>>
>
> Exactly. When I ran this (and then went for breakfast and coffee):
> /usr/bin/eix-sync
> /usr/bin/emerge --update --newuse --deep --keep-going --with-bdeps
> y/usr/bin/emerge --update --newuse --deep --keep-going --with-bdeps y
> world
> /usr/bin/emerge --depclean
> /usr/bin/revdep-rebuild -C -P
>
> I ended up with Python 3.1 and no 2.x which made a horrible mess. I
> ended up having to manually download and install Python 2.x into /opt
> and pointing /usr/bin/python to it to get things functional enough
> again to re-emerge the 2.6 release. So, ok, maybe it doesn't 'replace'
> it, but something sure as hell removed it, which is clearly the wrong
> behavior since emerge depends on it. Please enlighten me where I went
> wrong as I'd rather not have such surprises in the morn. :)
>
Most likely the --depclean removed it. As someone else found out the
hard way, not all Gentoo package managers need python. Therefore python
can be unmerged which causes a mess. This is a good reason to NEVER
trust --depclean without giving the list a good looking over.
Personally, I think there needs to be a way to tell portage that if you
have portage installed, python can not be removed without one heck of a
fuss by portage.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: [gentoo-user] Re: python 3.1 safe as default python?
2009-08-02 17:20 ` [gentoo-user] " Christer Ekholm
2009-08-02 21:07 ` Keith Dart
@ 2009-08-03 0:15 ` Adam Carter
2009-08-03 0:27 ` Christer Ekholm
2009-08-03 0:28 ` Mike Kazantsev
1 sibling, 2 replies; 14+ messages in thread
From: Adam Carter @ 2009-08-03 0:15 UTC (permalink / raw
To: gentoo-user@lists.gentoo.org
> Just installing it doesn't break portage. But using it does! :)
>
> 19:14:44 poke:~ $ eselect python list
> Available python interpreters:
> [1] python2.6
> [2] python3.1
> 19:17:24 poke:~ $ sudo eselect python set 2
> 19:17:31 poke:~ $ emerge --info
> File "/usr/bin/emerge", line 41
> except PermissionDenied, e:
> ^
> SyntaxError: invalid syntax
Did you try it as root? Is your user in the portage group?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: python 3.1 safe as default python?
2009-08-03 0:01 ` Dale
@ 2009-08-03 0:17 ` Mike Kazantsev
0 siblings, 0 replies; 14+ messages in thread
From: Mike Kazantsev @ 2009-08-03 0:17 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 567 bytes --]
On Sun, 02 Aug 2009 19:01:20 -0500
Dale <rdalek1967@gmail.com> wrote:
> Most likely the --depclean removed it. As someone else found out the
> hard way, not all Gentoo package managers need python. Therefore python
> can be unmerged which causes a mess. This is a good reason to NEVER
> trust --depclean without giving the list a good looking over.
For that to happen, emerge must've set it as "default python" instead
of 2.6, otherwise dependencies (e.g. from sys-apps/portage itself)
wouldn't let this happen.
--
Mike Kazantsev // fraggod.net
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* [gentoo-user] Re: python 3.1 safe as default python?
2009-08-03 0:15 ` Adam Carter
@ 2009-08-03 0:27 ` Christer Ekholm
2009-08-03 5:09 ` Keith Dart
2009-08-03 0:28 ` Mike Kazantsev
1 sibling, 1 reply; 14+ messages in thread
From: Christer Ekholm @ 2009-08-03 0:27 UTC (permalink / raw
To: gentoo-user
Adam Carter <Adam.Carter@optus.com.au> writes:
>> Just installing it doesn't break portage. But using it does! :)
>>
>> 19:14:44 poke:~ $ eselect python list
>> Available python interpreters:
>> [1] python2.6
>> [2] python3.1
>> 19:17:24 poke:~ $ sudo eselect python set 2
>> 19:17:31 poke:~ $ emerge --info
>> File "/usr/bin/emerge", line 41
>> except PermissionDenied, e:
>> ^
>> SyntaxError: invalid syntax
>
> Did you try it as root? Is your user in the portage group?
Yes, and yes.
02:03:10 poke:~ $eselect python list
Available python interpreters:
[1] python2.6
[2] python3.1
02:22:30 poke:~ $sudo eselect python set 2
02:22:39 poke:~ $sudo emerge --info
File "/usr/bin/emerge", line 41
except PermissionDenied, e:
^
SyntaxError: invalid syntax
02:22:50 poke:~ $id
uid=1001(che) gid=100(users) groups=4(adm),10(wheel),16(cron),18(audio),19(cdrom),27(video),35(games),81(apache),100(users),250(portage)
I think that the comma on line 41 in /usr/bin/emerge is simply not valid
in python-3
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: python 3.1 safe as default python?
2009-08-03 0:15 ` Adam Carter
2009-08-03 0:27 ` Christer Ekholm
@ 2009-08-03 0:28 ` Mike Kazantsev
1 sibling, 0 replies; 14+ messages in thread
From: Mike Kazantsev @ 2009-08-03 0:28 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 864 bytes --]
On Mon, 3 Aug 2009 10:15:19 +1000
Adam Carter <Adam.Carter@optus.com.au> wrote:
> > Just installing it doesn't break portage. But using it does! :)
> >
> > 19:14:44 poke:~ $ eselect python list
> > Available python interpreters:
> > [1] python2.6
> > [2] python3.1
> > 19:17:24 poke:~ $ sudo eselect python set 2
> > 19:17:31 poke:~ $ emerge --info
> > File "/usr/bin/emerge", line 41
> > except PermissionDenied, e:
> > ^
> > SyntaxError: invalid syntax
>
> Did you try it as root? Is your user in the portage group?
It really is python SyntaxError, not permission problem: python3 doesn't
even began to execute this code and it won't do that, as long as code
contains that line, since it should be "except PermissionDenied as e"
for py3.
--
Mike Kazantsev // fraggod.net
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: python 3.1 safe as default python?
2009-08-02 23:35 ` Doug Hunley
2009-08-03 0:01 ` Dale
@ 2009-08-03 0:35 ` Neil Bothwick
1 sibling, 0 replies; 14+ messages in thread
From: Neil Bothwick @ 2009-08-03 0:35 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 536 bytes --]
On Sun, 2 Aug 2009 19:35:52 -0400, Doug Hunley wrote:
> Please enlighten me where I went
> wrong as I'd rather not have such surprises in the morn. :)
Updating world without first checking to see what will happen is asking
for trouble, running emerge --depclean without checking is sending it a
hand-delivered invitation on a velvet cushion..
Having said that, as Mike said, this should not have removed
python:2.6, ad it didn't try to do so here.
--
Neil Bothwick
OPERATOR ERROR: Nyah, Nyah, Nyah, Nyah, Nyah!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: python 3.1 safe as default python?
2009-08-03 0:27 ` Christer Ekholm
@ 2009-08-03 5:09 ` Keith Dart
0 siblings, 0 replies; 14+ messages in thread
From: Keith Dart @ 2009-08-03 5:09 UTC (permalink / raw
To: gentoo-user
=== On Mon, 08/03, Christer Ekholm wrote: ===
> I think that the comma on line 41 in /usr/bin/emerge is simply not
> valid in python-3
===
Right.
http://docs.python.org/3.1/whatsnew/3.0.html
-- Keith Dart
--
-- --------------------
Keith Dart
<keith@dartworks.biz>
=======================
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2009-08-03 5:09 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-02 15:17 [gentoo-user] python 3.1 safe as default python? Doug Hunley
2009-08-02 16:25 ` [gentoo-user] " Nikos Chantziaras
2009-08-02 16:26 ` [gentoo-user] " Neil Bothwick
2009-08-02 16:46 ` Albert Hopkins
2009-08-02 17:20 ` [gentoo-user] " Christer Ekholm
2009-08-02 21:07 ` Keith Dart
2009-08-02 23:35 ` Doug Hunley
2009-08-03 0:01 ` Dale
2009-08-03 0:17 ` Mike Kazantsev
2009-08-03 0:35 ` Neil Bothwick
2009-08-03 0:15 ` Adam Carter
2009-08-03 0:27 ` Christer Ekholm
2009-08-03 5:09 ` Keith Dart
2009-08-03 0:28 ` Mike Kazantsev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox