-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python 2.6: RuntimeError: dictionary changed size during iteration #62
Comments
From dugsong on January 06, 2011 07:45:41 I can't reproduce this? |
From jeggles...@gmail.com on March 01, 2011 13:13:25 I just ran into this on OS X. [joe@deepwater-2:~]$ python -c 'import dpkt' However, it's not consistent. Not sure what triggers it. |
From joed...@gmail.com on September 12, 2012 13:53:26 Alternate fix: --- dpkt/ip.py ( revision 84 ) """Internet Protocol.""" +import copy class IP(dpkt.Packet): XXX - auto-load IP dispatch table from IP_PROTO_* definitionsdef __load_protos():
|
From dan...@lacoon.com on May 13, 2013 01:59:26 So I had the same problem and I dug in and I notice that the problem is that the import in that loop is not relative. Meaning that you might import a non-relevant package by accident (in my case mtp). The solution is:
This should be commited to head |
A quick glance makes #61 seem to be a related issue |
From y.dmi...@gmail.com on July 06, 2010 12:00:21
Python 2.6.5 (release26-maint, Jun 23 2010, 10:41:00)
[GCC 4.3.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Quick fix:
--- /usr/lib/python2.6/site-packages/dpkt/ip.py~ 2010-03-26 04:53:51.000000000 +0200
+++ /usr/lib/python2.6/site-packages/dpkt/ip.py 2010-07-06 18:54:05.013117134 +0300
@@ -242,7 +242,7 @@
XXX - auto-load IP dispatch table from IP_PROTO_* definitions
def __load_protos():
g = globals()
if k.startswith('IP_PROTO_'):
name = k[9:].lower()
try:
Original issue: http://code.google.com/p/dpkt/issues/detail?id=35
The text was updated successfully, but these errors were encountered: