* python 2.6 warning
@ 2009-05-11 9:22 Robert Schuster
2009-05-11 10:10 ` Michael 'Mickey' Lauer
2009-05-11 14:19 ` Marcin Juszkiewicz
0 siblings, 2 replies; 9+ messages in thread
From: Robert Schuster @ 2009-05-11 9:22 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 498 bytes --]
Hi all,
those who are using bitbake with Python 2.6 (e.g. Ubuntu 09.04, Debian
sid) will notice this warning:
/home/rschus/oe/bitbake/lib/bb/COW.py:29: DeprecationWarning: the sets
module is deprecated
import types, sets
Is anyone from OE in the know how to fix that properly? I know its only
a warning but imagine an OE newbie reading this .... I would like to fix
it myself but even after years of contributing to OE my Pyhton skills
are severely limited. :|
Regards
Robert
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 268 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: python 2.6 warning
2009-05-11 9:22 python 2.6 warning Robert Schuster
@ 2009-05-11 10:10 ` Michael 'Mickey' Lauer
2009-05-11 11:39 ` Philip Balister
2009-05-11 14:19 ` Marcin Juszkiewicz
1 sibling, 1 reply; 9+ messages in thread
From: Michael 'Mickey' Lauer @ 2009-05-11 10:10 UTC (permalink / raw)
To: openembedded-devel
On Monday 11 May 2009 11:22:56 Robert Schuster wrote:
> Hi all,
> those who are using bitbake with Python 2.6 (e.g. Ubuntu 09.04, Debian
> sid) will notice this warning:
>
> /home/rschus/oe/bitbake/lib/bb/COW.py:29: DeprecationWarning: the sets
> module is deprecated
> import types, sets
>
> Is anyone from OE in the know how to fix that properly?
Basically you need to rewrite COW.py to work with the new built-in sets. Might
be a chance to get another BitBake release out.
:M:
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: python 2.6 warning
2009-05-11 10:10 ` Michael 'Mickey' Lauer
@ 2009-05-11 11:39 ` Philip Balister
2009-05-11 12:54 ` Richard Purdie
0 siblings, 1 reply; 9+ messages in thread
From: Philip Balister @ 2009-05-11 11:39 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 592 bytes --]
Michael 'Mickey' Lauer wrote:
> On Monday 11 May 2009 11:22:56 Robert Schuster wrote:
>> Hi all,
>> those who are using bitbake with Python 2.6 (e.g. Ubuntu 09.04, Debian
>> sid) will notice this warning:
>>
>> /home/rschus/oe/bitbake/lib/bb/COW.py:29: DeprecationWarning: the sets
>> module is deprecated
>> import types, sets
>>
>> Is anyone from OE in the know how to fix that properly?
>
> Basically you need to rewrite COW.py to work with the new built-in sets. Might
> be a chance to get another BitBake release out.
Will this still work with python 2.5?
Philip
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3303 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: python 2.6 warning
2009-05-11 11:39 ` Philip Balister
@ 2009-05-11 12:54 ` Richard Purdie
0 siblings, 0 replies; 9+ messages in thread
From: Richard Purdie @ 2009-05-11 12:54 UTC (permalink / raw)
To: openembedded-devel
On Mon, 2009-05-11 at 07:39 -0400, Philip Balister wrote:
> Michael 'Mickey' Lauer wrote:
> > On Monday 11 May 2009 11:22:56 Robert Schuster wrote:
> >> Hi all,
> >> those who are using bitbake with Python 2.6 (e.g. Ubuntu 09.04, Debian
> >> sid) will notice this warning:
> >>
> >> /home/rschus/oe/bitbake/lib/bb/COW.py:29: DeprecationWarning: the sets
> >> module is deprecated
> >> import types, sets
> >>
> >> Is anyone from OE in the know how to fix that properly?
> >
> > Basically you need to rewrite COW.py to work with the new built-in sets. Might
> > be a chance to get another BitBake release out.
>
> Will this still work with python 2.5?
There were patches for this on the bitbake list. I suspect 2.5 will be
fine, not sure about 2.4 or earlier. I've not had a chance to look into
this yet :(
Cheers,
Richard
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: python 2.6 warning
2009-05-11 9:22 python 2.6 warning Robert Schuster
2009-05-11 10:10 ` Michael 'Mickey' Lauer
@ 2009-05-11 14:19 ` Marcin Juszkiewicz
2009-05-11 22:37 ` Richard Purdie
1 sibling, 1 reply; 9+ messages in thread
From: Marcin Juszkiewicz @ 2009-05-11 14:19 UTC (permalink / raw)
To: openembedded-devel
Dnia poniedziałek, 11 maja 2009 o 11:22:56 Robert Schuster napisał(a):
> Hi all,
> those who are using bitbake with Python 2.6 (e.g. Ubuntu 09.04,
> Debian sid) will notice this warning:
>
> /home/rschus/oe/bitbake/lib/bb/COW.py:29: DeprecationWarning: the
> sets module is deprecated
> import types, sets
>
> Is anyone from OE in the know how to fix that properly? I know its
> only a warning but imagine an OE newbie reading this .... I would
> like to fix it myself but even after years of contributing to OE my
> Pyhton skills are severely limited. :|
BitBake trunk has it fixed by me. Backporting to 1.8.x and to
stable/2009 are on my todolist. And yes - it works fine with Python 2.5
and even should with Python 2.4 which is minimal required version
(should works with 2.3 but we do not support it).
Regards,
--
JID: hrw@jabber.org
Website: http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: python 2.6 warning
2009-05-11 14:19 ` Marcin Juszkiewicz
@ 2009-05-11 22:37 ` Richard Purdie
2009-05-12 0:11 ` Otavio Salvador
0 siblings, 1 reply; 9+ messages in thread
From: Richard Purdie @ 2009-05-11 22:37 UTC (permalink / raw)
To: openembedded-devel
On Mon, 2009-05-11 at 16:19 +0200, Marcin Juszkiewicz wrote:
> Dnia poniedziałek, 11 maja 2009 o 11:22:56 Robert Schuster napisał(a):
> > Hi all,
> > those who are using bitbake with Python 2.6 (e.g. Ubuntu 09.04,
> > Debian sid) will notice this warning:
> >
> > /home/rschus/oe/bitbake/lib/bb/COW.py:29: DeprecationWarning: the
> > sets module is deprecated
> > import types, sets
> >
> > Is anyone from OE in the know how to fix that properly? I know its
> > only a warning but imagine an OE newbie reading this .... I would
> > like to fix it myself but even after years of contributing to OE my
> > Pyhton skills are severely limited. :|
>
> BitBake trunk has it fixed by me. Backporting to 1.8.x and to
> stable/2009 are on my todolist. And yes - it works fine with Python 2.5
> and even should with Python 2.4 which is minimal required version
> (should works with 2.3 but we do not support it).
It won't work with 2.3 but we don't care about 2.3, it will work with
2.4 onwards. I have no idea why we were using long deprecated stuff :/.
I've backported it to bitbake 1.8 and it seems to work along with
merging a number of fixes lurking in Poky.
I'm also intending to merge the virtual class extension stuff soon
unless anyone has a major objection (none were raised previously when I
proposed this).
Cheers,
Richard
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: python 2.6 warning
2009-05-11 22:37 ` Richard Purdie
@ 2009-05-12 0:11 ` Otavio Salvador
2009-05-12 10:54 ` Roman I Khimov
2009-05-12 14:32 ` Richard Purdie
0 siblings, 2 replies; 9+ messages in thread
From: Otavio Salvador @ 2009-05-12 0:11 UTC (permalink / raw)
To: openembedded-devel; +Cc: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 429 bytes --]
Hello Richard,
On Mon, May 11, 2009 at 7:37 PM, Richard Purdie <rpurdie@rpsys.net> wrote:
> I've backported it to bitbake 1.8 and it seems to work along with
> merging a number of fixes lurking in Poky.
Please push the attached fix too.
--
Otavio Salvador O.S. Systems
E-mail: otavio@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: proper-skip-regext.diff --]
[-- Type: text/x-diff; name="proper-skip-regext.diff", Size: 625 bytes --]
Index: lib/bb/providers.py
===================================================================
--- lib/bb/providers.py (revisão 1178)
+++ lib/bb/providers.py (cópia de trabalho)
@@ -297,9 +297,8 @@
# Only search dynamic packages if we can't find anything in other variables
for pattern in dataCache.packages_dynamic:
- pattern = pattern.replace('+', "\+")
try:
- regexp = re.compile(pattern)
+ regexp = re.compile(pattern.replace('+', "\+"))
except:
bb.msg.error(bb.msg.domain.Provider, "Error parsing re expression: %s" % pattern)
raise
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-05-12 14:39 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-11 9:22 python 2.6 warning Robert Schuster
2009-05-11 10:10 ` Michael 'Mickey' Lauer
2009-05-11 11:39 ` Philip Balister
2009-05-11 12:54 ` Richard Purdie
2009-05-11 14:19 ` Marcin Juszkiewicz
2009-05-11 22:37 ` Richard Purdie
2009-05-12 0:11 ` Otavio Salvador
2009-05-12 10:54 ` Roman I Khimov
2009-05-12 14:32 ` Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.