On Mon, 2007-04-23 at 12:17 -0700, [EMAIL PROTECTED] wrote: > When trying to import the tftpy package, I've gotten the following > error messages: > > Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02) > [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import tftpy > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib/python2.4/site-packages/tftpy/__init__.py", line 18, > in ? > from TftpServer import * > File "/usr/lib/python2.4/site-packages/tftpy/TftpServer.py", line 50 > % (listenip if listenip else '0.0.0.0', listenport))
That if-else expression is Python 2.5 syntax. Apparently the tftpy package gave you false hope by erroneously allowing you to install it as a Python 2.4 package. -Carsten -- http://mail.python.org/mailman/listinfo/python-list