[Mailman-Developers] 'make install' error in cvs

Marc MERLIN marc_news@vasoftware.com
Sat, 25 May 2002 16:40:36 -0700


On Sat, May 25, 2002 at 12:04:46PM -0400, Barry A. Warsaw wrote:
>     DG>   File "/usr/local/mailman/pythonlib/email/_compat22.py", line
>     DG> 21 yield self ^
>     | SyntaxError: invalid syntax
>     | ^C [ I killed it at this point ]
>     | interrupted
>     | make[1]: *** [install-packages] Error 1
>     | make: *** [doinstall] Interrupt
> 
>     DG> Ideas?
> 
> Yup, it's part of the (in)compatibility hacks to make the email
> package work with both python2.1 and python2.2.
 
Duh, that will teach me to post before finishing ot catch up on my folder
backlog.
 
> Question: why did you "kill it at this point"?  Did the installation
> process hang for you?
 
As far as I'm concerned, I paniced and killed it.

> I believe that if you just ignore this error everything should still
> work for you.  You can verify this by cd'ing to
> /root/mailman-2.1-beta/mailman/misc/email-2.0.4 and typing:
> 
>     % PYTHONPATH=/usr/local/mailman/pythonlib python test.py
> 
> If you see no errors, you're good to go.  Let me know if you do get
> errors.
> http://mail.python.org/mailman-21/listinfo/mailman-developers

svlug:/var/local/src/mailman-cvs/misc/email-2.0.4# PYTHONPATH=/var/local/mailman/pythonlib python test.py
...........................................................................................F......................
======================================================================
FAIL: test_parseaddr_empty (test_email.TestMiscellaneous)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_email.py", line 1189, in test_parseaddr_empty
    self.assertEqual(Utils.parseaddr('<>'), ('', ''))
  File "/usr/lib/python2.1/unittest.py", line 273, in failUnlessEqual
    raise self.failureException, (msg or '%s != %s' % (first, second))
AssertionError: ('', None) != ('', '')
----------------------------------------------------------------------
Ran 114 tests in 1.585s

FAILED (failures=1)

I then upgraded from python 2.1 to python 2.2 and got:
svlug:/var/local/src/mailman-cvs/misc/email-2.0.4# PYTHONPATH=/var/local/mailman/pythonlib python test.py
..................................................................................................................
----------------------------------------------------------------------
Ran 114 tests in 1.409s

OK


The unicode error also went away but I have this instaed now:
make[1]: Entering directory `/var/local/src/mailman-cvs/misc'
for p in email-2.0.4 JapaneseCodecs-1.4.5 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); \
done
Traceback (most recent call last):
  File "setup.py", line 11, 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

although it does complete and install

Marc
-- 
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
  
Home page: http://marc.merlins.org/   |   Finger marc_f@merlins.org for PGP key