tftpy 0.41 errors

M

manhhle

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.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))
^
SyntaxError: invalid syntax
What am I missing? Any pointer is much appreciated.

I installed the tftpy package using the standard command line:

sudo python setup.py install
 
C

Carsten Haese

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.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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,149
Members
46,695
Latest member
StanleyDri

Latest Threads

Top