-
Notifications
You must be signed in to change notification settings - Fork 7
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
ValueError: invalid literal for int() with base 10: '141-252' #3
Comments
Ah.. That's in the code that parses /etc/protocols. Your protocols file I need to see if that code is still needed or if newer versions of python
|
Hey Justin, Thanks for getting back to me so quickly. If you would like me to send the /etc/protocols file to you, let me know. This is a default Cent install with very few changes. Just messing around with our flow data where I work. :) --Nick ----- Original Message ----- From: "Justin" notifications@github.com Ah.. That's in the code that parses /etc/protocols. Your protocols file I need to see if that code is still needed or if newer versions of python
— |
Ah, It is from a comment:
|
CentOS 6.4
Python 2.6.6
It seems that what ever I try, I get the following error.
In [4]: d=pynfdump.nfdump.Dumper()
ValueError Traceback (most recent call last)
in ()
----> 1 d=pynfdump.nfdump.Dumper()
/usr/lib/python2.6/site-packages/pynfdump-0.4.0dev-py2.6.egg/pynfdump/nfdump.pyc in init(self, datadir, profile, sources, remote_host)
119 self.remote_host = remote_host
120 self.set_where()
--> 121 self.protocols = load_protocols()
122
123 def set_where(self, start=None, end=None, filename=None,dirfiles=None, stdin=False):
/usr/lib/python2.6/site-packages/pynfdump-0.4.0dev-py2.6.egg/pynfdump/nfdump.pyc in load_protocols()
31 if not line.strip(): break
32 proto, num,_ = line.split(None,2)
---> 33 protocols[int(num)] = proto
34 protocols[0]='ip'
35 f.close()
ValueError: invalid literal for int() with base 10: '141-252'
In [5]:
The text was updated successfully, but these errors were encountered: