Comments (3)
Ah.. That's in the code that parses /etc/protocols. Your protocols file
seems to have a range defined in it which I am not expecting.
I need to see if that code is still needed or if newer versions of python
have a function in the socket module to lookup a protocol by number. I can
fix this up in the next day or so.
On Apr 18, 2013 4:36 PM, "switchtower" [email protected] wrote:
CentOS 6.4
Python 2.6.6It 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]:
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/3
.
from pynfdump.
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" [email protected]
To: "JustinAzoff/pynfdump" [email protected]
Cc: "switchtower" [email protected]
Sent: Thursday, April 18, 2013 5:48:12 PM
Subject: Re: [pynfdump] ValueError: invalid literal for int() with base 10: '141-252' (#3)
Ah.. That's in the code that parses /etc/protocols. Your protocols file
seems to have a range defined in it which I am not expecting.
I need to see if that code is still needed or if newer versions of python
have a function in the socket module to lookup a protocol by number. I can
fix this up in the next day or so.
On Apr 18, 2013 4:36 PM, "switchtower" [email protected] wrote:
CentOS 6.4
Python 2.6.6It 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]:
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/3
.
—
Reply to this email directly or view it on GitHub .
from pynfdump.
Ah, It is from a comment:
# 141-252 Unassigned [IANA]
from pynfdump.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pynfdump.