offero / txtelegraf Goto Github PK
View Code? Open in Web Editor NEWTwisted Python Client for Telegraf/InfluxDB
License: Apache License 2.0
Twisted Python Client for Telegraf/InfluxDB
License: Apache License 2.0
Hi there. Super excited to use this in our async python environment but I can't seem to pip install the package.
Failed to build txtelegraf
Installing collected packages: txtelegraf
Running setup.py install for txtelegraf ... error
Complete output from command /home/mwarren/workspace/venv/myenv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-gyGYyg/txtelegraf/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-u_6F6B-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/mwarren/workspace/venv/myenv/include/site/python2.7/txtelegraf:
running install
running build
running build_py
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-gyGYyg/txtelegraf/setup.py", line 44, in <module>
'Programming Language :: Python :: Implementation :: PyPy',
File "/usr/lib64/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/mwarren/workspace/venv/myenv/lib/python2.7/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/lib64/python2.7/distutils/command/install.py", line 568, in run
self.run_command('build')
File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib64/python2.7/distutils/command/build.py", line 127, in run
self.run_command(cmd_name)
File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/mwarren/workspace/venv/myenv/lib/python2.7/site-packages/setuptools/command/build_py.py", line 46, in run
self.build_packages()
File "/usr/lib64/python2.7/distutils/command/build_py.py", line 373, in build_packages
self.build_module(module, module_file, package)
File "/home/mwarren/workspace/venv/myenv/lib/python2.7/site-packages/setuptools/command/build_py.py", line 65, in build_module
package)
File "/usr/lib64/python2.7/distutils/command/build_py.py", line 334, in build_module
"'package' must be a string (dot-separated), list, or tuple")
TypeError: 'package' must be a string (dot-separated), list, or tuple
----------------------------------------
Command "/home/mwarren/workspace/venv/myenv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-gyGYyg/txtelegraf/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-u_6F6B-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/mwarren/workspace/venv/myenv/include/site/python2.7/txtelegraf" failed with error code 1 in /tmp/pip-build-gyGYyg/txtelegraf/
(myenv) [auctioning@marshall-point] ~/workspace/py-scrapyd-lib/myenv >$
I have a dict of telegraf tags {u'status': u'success', u'priority': 5.0}
that chokes up the conversion to string.
Traceback (most recent call last):
[snip]
File "/home/mwarren/workspace/venv/lib/python2.7/site-packages/txtelegraf/measurement.py", line 129, in __str__
return unicode(self).encode('utf-8')
File "/home/mwarren/workspace/venv/lib/python2.7/site-packages/txtelegraf/measurement.py", line 118, in __unicode__
tags = format_tags(self.tags)
File "/home/mwarren/workspace/venv/lib/python2.7/site-packages/txtelegraf/measurement.py", line 69, in format_tags
return ",".join(("%s=%s" % (format_tag(k), format_tag(v)) for (k, v) in sorted(tags.items())))
File "/home/mwarren/workspace/venv/lib/python2.7/site-packages/txtelegraf/measurement.py", line 69, in <genexpr>
return ",".join(("%s=%s" % (format_tag(k), format_tag(v)) for (k, v) in sorted(tags.items())))
File "/home/mwarren/workspace/venv/lib/python2.7/site-packages/txtelegraf/measurement.py", line 46, in format_tag
s = s.replace(single_slash, underscore)
AttributeError: 'float' object has no attribute 'replace'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.