Giter Club home page Giter Club logo

txtelegraf's People

Contributors

arslanmansha avatar offero avatar

Stargazers

 avatar

Watchers

 avatar

txtelegraf's Issues

Unable to pip install

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 >$ 

float object has no attribute replace

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.