It works for me on Ubuntu 9.04. Dan - would you be happy for this to be made available on the wiki? On 24 February 2010 17:27, Daniel Dehennin <daniel.dehennin at ac-caen.fr>wrote: > Justin Brinegar <brinegar at physics.unc.edu> writes: > > > What version of python must I use to use this? > > > > I get this: > > > > (11:15:33) 1005 /Users/brinegar/Desktop % > python wpkg-pass.py -c > > 'BJ+xWYhfskAD2lbx' > > File "wpkg-pass.py", line 4 > > From struct import pack, unpack > > ^ > > SyntaxError: invalid syntax > > > > I tried this with 2.6.1 and 2.4.4. > > I use what comes in debian sid: python 2.5.5. > > It seems to be a standard library module[1]. I wonder why you have: > > --8<---------------cut here---------------start------------->8--- > From struct import pack, unpack > ^ > SyntaxError: invalid syntax > --8<---------------cut here---------------end--------------->8--- > > And not: > > --8<---------------cut here---------------start------------->8--- > from struct import pack, unpack > ^ > SyntaxError: invalid syntax > --8<---------------cut here---------------end--------------->8--- > > Maybe the line ending? > > Footnotes: > [1] http://docs.python.org/library/struct.html > > -- > Daniel Dehennin > RAIP de l'Orne > > ------------------------------------------------------------------------- > wpkg-users mailing list archives >> > http://lists.wpkg.org/pipermail/wpkg-users/ > _______________________________________________ > wpkg-users mailing list > wpkg-users at lists.wpkg.org > http://lists.wpkg.org/mailman/listinfo/wpkg-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20100224/915ab5a4/attachment.html> |