Issue 116 in dpkt: dpkt 1.8 does not build with python 2.4

10 views
Skip to first unread message

dp...@googlecode.com

unread,
Oct 22, 2013, 4:35:52 AM10/22/13
to dp...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 116 by ryandesi...@gmail.com: dpkt 1.8 does not build with python
2.4
http://code.google.com/p/dpkt/issues/detail?id=116

What steps will reproduce the problem?
1. run "python2.4 setup.py build"

What is the expected output? What do you see instead?
Expected successful build but got:

Traceback (most recent call last):
File "setup.py", line 4, in ?
import dpkt

File "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_python_py-dpkt/py24-dpkt/work/dpkt-1.8/dpkt/__init__.py",
line 62, in ?
import ssl

File "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_python_py-dpkt/py24-dpkt/work/dpkt-1.8/dpkt/ssl.py",
line 149
padding = '\x00' if lenbytes == 3 else ''
^
SyntaxError: invalid syntax

What version of the product are you using? On what operating system?
dpkt 1.8 on OS X 10.8.5

Please provide any additional information below.
dpkt 1.7 built fine with Python 2.4 and the CHANGES file does not mention
any change in requirements for version 1.8. So this is either a request to
fix compatibility with python 2.4 or document that python 2.5 is now
required.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

dp...@googlecode.com

unread,
Dec 29, 2014, 3:45:18 PM12/29/14
to dp...@googlegroups.com
Updates:
Status: Accepted
Owner: kba...@in2void.com

Comment #1 on issue 116 by kba...@in2void.com: dpkt 1.8 does not build
with python 2.4
https://code.google.com/p/dpkt/issues/detail?id=116

This was introduced in ssl.py (in r83, older was r46). This is PEP 308
style code and now requires python2.5 or later to work.
I propose we fix this to make it work with python2.4
Reply all
Reply to author
Forward
0 new messages