[Mailman-Users] Re: Traceback on CVS upgrade

Marc MERLIN marc_news at merlins.org
Mon Aug 5 20:34:39 CEST 2002


[Cced back to the list]

On Mon, Aug 05, 2002 at 01:39:59PM -0400, Barry A. Warsaw wrote:
> 
> >>>>> "MM" == Marc MERLIN <marc_news at merlins.org> writes:
> 
>     MM> Err, I sent it to you twice already :-)
> 
> Are you sure?  Neither of your previous messages had the attachment!
 
It was inline, the last of the two messages was:

Date: Sun, 4 Aug 2002 08:49:12 -0700
From: Marc MERLIN <marc at merlins.org>
To: barry at wooz.org
Subject: Re: Ooops CVS upgrade -> lists down
Message-ID: <20020804154912.GE12671 at merlins.org>

2002-08-04 08:49:15 17bNd4-0004pE-00 <= merlin at merlins.org H=saroumane.merlins.org (gandalf.merlins.org) [198.144.206.12]:43295 I=[204.80.101.251]:25 P=asmtp X=TLSv1:DES-CBC3-SHA:168 A=fixed_plain:gandalf.merlins.org S=1789 id=20020804154912.GE12671 at merlins.org T="Re: Ooops CVS upgrade -> lists down" from <merlin at merlins.org> for barry at wooz.org 
(contact me off list if you'd like more details)
 
>     MM> type()) Aug 02 19:05:33 2002 qrunner(14845): AttributeError:
>     MM> Message instance has no att ribute 'get_default_type' Aug 02
>     MM> 19:05:33 2002 (14845) CORRUPT ARCHIVE FOR LIST: test
> 
> When you updated to cvs did you install the email 2.2 package, and did
> you mailmanctl restart?  This error has all the earmarks of a partial
> update (i.e. Scrubber.py was updated, but you don't have email 2.2
> installed).

Sure enough. I turned my head for a few seconds during the make install:
make[1]: Entering directory `/var/local/src/mailman-cvs/misc'
for p in email-2.2 JapaneseCodecs-1.4.7 KoreanCodecs-2.0.4; \
do \
    gunzip -c $p.tar.gz | tar xf -; \
    (cd $p ; PYTHONPATH=/var/local/mailman/pythonlib /usr/bin/python setup.py --quiet install --install-lib /var/local/mailman/pythonlib --install-purelib /var/local/mailman/pythonlib --install-data /var/local/mailman/pythonlib); \
done
Traceback (most recent call last):
  File "setup.py", line 14, in ?
    from distutils.core import setup
ImportError: No module named distutils.core
Traceback (most recent call last):
  File "setup.py", line 5, in ?
    from distutils.core import setup, Extension
ImportError: No module named distutils.core
Traceback (most recent call last):
  File "setup.py", line 5, in ?
    from distutils.core import setup, Extension
ImportError: No module named distutils.core
make[1]: *** [install-packages] Error 1


Mmmh, let's see:
svlug:/var/local/src/mailman-cvs/misc/email-2.2# python setup.py install
Traceback (most recent call last):
  File "setup.py", line 14, in ?
    from distutils.core import setup
ImportError: No module named distutils.core

python -v reports:
Python 2.2.1 (#1, Apr 21 2002, 08:38:44) 

Mmmh.... 

Ok, I  found the problem, I  had to install python2.2-dev  on debian, that's
where /usr/lib/python2.2/distutils/ comes from.

I still get:
    (cd $p ; PYTHONPATH=/var/local/mailman/pythonlib /usr/bin/python setup.py --quiet install --install-lib /var/local/mailman/pythonlib --install-purelib /var/local/mailman/pythonlib --install-data /var/local/mailman/pythonlib); \
done
  File "/var/local/mailman/pythonlib/japanese/mappings/jis_x_0208.py", line 6234
    "\x6d\x
          ^
SyntaxError: invalid token

but at least email-2.2 installs correctly and mailman is happy again.

Thanks,
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking 
Home page: http://marc.merlins.org/   |   Finger marc_f at merlins.org for PGP key




More information about the Mailman-Users mailing list