Re: [Mailman-Users] Mailman 2.1.12 - Python 2.4.[456]incompatibility

2009-04-23 Thread Mark Sapiro
Barry Finkel wrote:
>
>My Python version is 2.4.3, and I ran a modified conftest.py program
>from the configure script to determine that the email package is 3.0.1.
>I could not determine the package  version number from looking at the
>.py modules in /usr/lib/python2.4/email on my Ubuntu Mailman machine.


A normal ./configure, make install of Mailman 2.1.12 should work with
Python 2.4.3/email 3.0.1 without any additional patches.

There are at least two ways to directly determine the email package
version in a Python installation:

[m...@sbh16 ~]$ grep version /usr/lib/python2.4/email/__init__.py
__version__ = '3.0.1'
[m...@sbh16 ~]$ python
Python 2.4.3 (#1, Mar 14 2007, 18:51:08)
[GCC 4.1.1 20070105 (Red Hat 4.1.1-52)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import email
>>> email.__version__
'3.0.1'
>>>
[m...@sbh16 ~]$

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] Mailman 2.1.12 - Python 2.4.[456]incompatibility

2009-04-23 Thread Barry Finkel
I wrote, in part:
>>Or do I have to specify something to get the Mailman-supplied
>>e-mail package untarred?  Thanks.

and Mark Sapiro replied:
>That would be another approach. After running ./configure and before
>running any make commands, you could edit misc/Makefile to replace the
>line
>
> EMAILPKG=
>
>with
>
> EMAILPKG=   email-2.5.8
>
>to install email 2.5.8 in Mailman's pythonlib. Then you wouldn't need
>to patch anything. But, how this fits with the Ubuntu package, I don't
>know.
>
>Note that the only Charset.py that needs patching is the one from email
>3.0.2 which shipped only with Python 2.4.4 through python 2.4.6

My Python version is 2.4.3, and I ran a modified conftest.py program
from the configure script to determine that the email package is 3.0.1.
I could not determine the package  version number from looking at the
.py modules in /usr/lib/python2.4/email on my Ubuntu Mailman machine.
--
Barry S. Finkel
Computing and Information Systems Division
Argonne National Laboratory  Phone:+1 (630) 252-7277
9700 South Cass Avenue   Facsimile:+1 (630) 252-4601
Building 222, Room D209  Internet: bsfin...@anl.gov
Argonne, IL   60439-4828 IBMMAIL:  I1004994

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] Mailman 2.1.12 - Python 2.4.[456]incompatibility

2009-04-22 Thread Mark Sapiro
Barry Finkel wrote:

>On Mon, 16 Mar 2009 10:52:05 Mark Sapiro wrote:
>
>>There is an internal inconsistency in the 3.0.2 email package that
>>shipped with Python 2.4.4 through 2.4.6. This has to do with the
>>Charset.Charset() constructor setting input_charset to a unicode which
>>then causes TypeError: decoding Unicode is not supported exceptions in
>>other parts of the email package. This problem does not seem to occur
>>with email 3.0.1 and Python 2.4.[123].
>>
>>This (along with other stuff) is discussed in the bug report at
>> and there is a patch
>>for email/Charset.py at
>>
>>
>>At this point, the best advice seems to be use Python 2.5 or 2.6 with
>>Mailman 2.1.12.
>
>The patch is to module Charset.py.  I was looking for that in my
>2.1.12 directories, and I cannot find it.  In comparing my 2.1.11
>directories with my 2.1.12 directories I find the "problem".
>These directories are where I built my Ubuntu packages from the
>SourceForge source.


Charset.py is not a Mailman module; it is a Python email module.

In 2.1.11, we actually install email 2.5.8 in Mailman's pythonlib.
Beginning in 2.1.12, we import email during configure, and if it is
new enough, we do not install email 2.5.8 in pythonlib.

This is where the problem arises. If you have a python installed that
includes email 3.0.2 (python 2.4.4 - 2.4.6), we will accept that, and
it is that email library that has the inconsistency.


[various observations snipped]
>
>I am confused.  Is the 2.1.12 build using the Python-supplied e-mail
>library, and thus the patch to Charset.py has to be made there?


Yes. That's exactly the issue.


>Or do I have to specify something to get the Mailman-supplied
>e-mail package untarred?  Thanks.


That would be another approach. After running ./configure and before
running any make commands, you could edit misc/Makefile to replace the
line

 EMAILPKG=

with

 EMAILPKG=   email-2.5.8

to install email 2.5.8 in Mailman's pythonlib. Then you wouldn't need
to patch anything. But, how this fits with the Ubuntu package, I don't
know.

Note that the only Charset.py that needs patching is the one from email
3.0.2 which shipped only with Python 2.4.4 through python 2.4.6

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] Mailman 2.1.12 - Python 2.4.[456] incompatibility

2009-04-22 Thread Barry Finkel
On Mon, 16 Mar 2009 10:52:05 Mark Sapiro wrote:

>There is an internal inconsistency in the 3.0.2 email package that
>shipped with Python 2.4.4 through 2.4.6. This has to do with the
>Charset.Charset() constructor setting input_charset to a unicode which
>then causes TypeError: decoding Unicode is not supported exceptions in
>other parts of the email package. This problem does not seem to occur
>with email 3.0.1 and Python 2.4.[123].
>
>This (along with other stuff) is discussed in the bug report at
> and there is a patch
>for email/Charset.py at
>
>
>At this point, the best advice seems to be use Python 2.5 or 2.6 with
>Mailman 2.1.12.

The patch is to module Charset.py.  I was looking for that in my
2.1.12 directories, and I cannot find it.  In comparing my 2.1.11
directories with my 2.1.12 directories I find the "problem".
These directories are where I built my Ubuntu packages from the
SourceForge source.

In
 build_mailman_2.1.11/mailman-2.1.11/misc/Makefile.in

I have

 EMAILPKG=   email-2.5.8
 JACODECSPKG=JapaneseCodecs-1.4.11
 KOCODECSPKG=KoreanCodecs-2.0.5

and I have the same in Makefile.in . But in

 build_mailman_2.1.12/mailman-2.1.12/misc/Makefile.in

I have

 EMAILPKG=   @EMAILPKG@
 JACODECSPKG=JapaneseCodecs-1.4.11
 KOCODECSPKG=KoreanCodecs-2.0.5

and in Makefile.in

 EMAILPKG=   
 JACODECSPKG=JapaneseCodecs-1.4.11
 KOCODECSPKG=KoreanCodecs-2.0.5

As a result, I have in the misc directory for 2.1.12

 email-2.5.8.tar.gz

and that tarball was not untarred, so I do not have Charset.py .
In the build process output for 2.1.11 I see

 for p in email-2.5.8 JapaneseCodecs-1.4.11 KoreanCodecs-2.0.5; \
 do \
 gunzip -c ./$p.tar.gz | (cd . ; tar xf -); \
 ...

and for 2.1.12 I see

 for p in  JapaneseCodecs-1.4.11 KoreanCodecs-2.0.5; \
 do \
 gunzip -c ./$p.tar.gz | (cd . ; tar xf -); \
 ...

In the 2.1.12 configure I see

# Should we rely on Python's own email package or use the pre-packaged version?

 if test "$needemailpkg" = "ok"
 then
 EMAILPKG=""
 else
 EMAILPKG=email-2.5.8
 fi
 echo "$as_me:$LINENO: result: $needemailpkg" >&5
 echo "${ECHO_T}$needemailpkg" >&6

and in the build output I see

 checking Python version... 2.4.3
 checking Python's email package... ok

I am confused.  Is the 2.1.12 build using the Python-supplied e-mail
library, and thus the patch to Charset.py has to be made there?
Or do I have to specify something to get the Mailman-supplied
e-mail package untarred?  Thanks.
--
Barry S. Finkel
Computing and Information Systems Division
Argonne National Laboratory  Phone:+1 (630) 252-7277
9700 South Cass Avenue   Facsimile:+1 (630) 252-4601
Building 222, Room D209  Internet: bsfin...@anl.gov
Argonne, IL   60439-4828 IBMMAIL:  I1004994

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


[Mailman-Users] Mailman 2.1.12 - Python 2.4.[456] incompatibility

2009-03-16 Thread Mark Sapiro
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

There is an internal inconsistency in the 3.0.2 email package that
shipped with Python 2.4.4 through 2.4.6. This has to do with the
Charset.Charset() constructor setting input_charset to a unicode which
then causes TypeError: decoding Unicode is not supported exceptions in
other parts of the email package. This problem does not seem to occur
with email 3.0.1 and Python 2.4.[123].

This (along with other stuff) is discussed in the bug report at
 and there is a patch
for email/Charset.py at


At this point, the best advice seems to be use Python 2.5 or 2.6 with
Mailman 2.1.12.

- --
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFJvpFfVVuXXpU7hpMRAt1PAKDJ6BY84Fx271paX1m4BrtUikMFvQCePbyg
8xyRMCTeV2GB5v0ZZhjCf7E=
=ji8z
-END PGP SIGNATURE-
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9