Skip to content
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

script fails with below error. #3

Open
protoss1232001 opened this issue Jun 18, 2021 · 1 comment
Open

script fails with below error. #3

protoss1232001 opened this issue Jun 18, 2021 · 1 comment

Comments

@protoss1232001
Copy link

See below. Am I missing any modules for this?

./svc2influxdb.py svc2influxdb.conf

Traceback (most recent call last):
File "./svc2influxdb.py", line 242, in
series += svc_volume.collect()
File "./svc2influxdb.py", line 210, in collect
return [self._builder.parse(line, 'volume') for line in volume_details]
File "./svc2influxdb.py", line 210, in
return [self._builder.parse(line, 'volume') for line in volume_details]
File "./svc2influxdb.py", line 105, in parse
prefix=prefix))
File "./svc2influxdb.py", line 82, in _build_series
'fields': {'value': int(value)}}
ValueError: invalid literal for int() with base 10: ''

@jbrt
Copy link
Owner

jbrt commented Jun 19, 2021

Hi @protoss1232001

It seems not. Are you sure that your are using the right version of Python (3.x)?
You should put a break point between lines 101 and 102 and try to understand why the value of measurement seems to be not good.

I don't work anymore with SVC products and, of course, the software has evolved. Maybe the newer versions are incomptible with that code.

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants