Git Product home page Git Product logo

djehouty's People

Contributors

angt avatar cdumay avatar dvazar avatar excaliburzero avatar pdepaepe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

djehouty's Issues

The socket closes each time when emit a log record

The return value of the select.select function is a triple of lists of objects that are ready: subsets of the first three arguments, not just rlist.

def checkSocket(self):
"""checkSocket"""
try:
rlist = select.select([self.sock], (), (), 0)
if len(rlist) > 0:
data = bytearray(1024)
nbytes = rlist[0].recv_into(data, 1024)
if nbytes == 0:
return False
return True
except:
return False

Therefore, checking the condition len (rlist)> 0 in this case will always return a value greater than zero. As a consequence, the function checkSocket will always return False, since rlist [0] .recv_into (data, 1024) always raises the AttributeError exception.
if self.checkSocket() is False:
try:
self.sock.close()
except:
pass
self.sock = None

Thus, the emit function will always close the socket, before sending the next portion of logs.

Fixed in #9

Running setup.py bdist_wheel for 'distribute' fails

We cannot build djehouty anymore because its dependency distribute fails to build. Can you remove distribute from the dependencies in setup.py please? distribute is deprecated and is now just a wrapper around setuptools which should be installed to run the installation process anyway (meaning adding it as a dependency is moot).

Collecting distribute (from djehouty==0.1.3->-r requirements/common.txt (line 31))
  Downloading distribute-0.7.3.zip (145kB)
...
Running setup.py bdist_wheel for distribute: started
Running setup.py bdist_wheel for distribute: finished with status 'error'
Complete output from command /tmp/env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a_5yoqj4/distribute/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpm43h1x8jpip-wheel- --python-tag cp34:
error   01-Mar-2016 18:15:00      Failed building wheel for distribute
Traceback (most recent call last):
  File "/tmp/pip-build-a_5yoqj4/distribute/pkg_resources.py", line 2680, in _dep_map
    return self.__dep_map
  File "/tmp/pip-build-a_5yoqj4/distribute/pkg_resources.py", line 2525, in __getattr__
    raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-a_5yoqj4/distribute/setup.py", line 58, in <module>
    setuptools.setup(**setup_params)
  File "/usr/lib/python3.4/distutils/core.py", line 134, in setup
    ok = dist.parse_command_line()
  File "/tmp/pip-build-a_5yoqj4/distribute/setuptools/dist.py", line 276, in parse_command_line
    result = _Distribution.parse_command_line(self)
  File "/usr/lib/python3.4/distutils/dist.py", line 471, in parse_command_line
    args = self._parse_command_opts(parser, args)
  File "/tmp/pip-build-a_5yoqj4/distribute/setuptools/dist.py", line 602, in _parse_command_opts
    nargs = _Distribution._parse_command_opts(self, parser, args)
  File "/usr/lib/python3.4/distutils/dist.py", line 527, in _parse_command_opts
    cmd_class = self.get_command_class(command)
  File "/tmp/pip-build-a_5yoqj4/distribute/setuptools/dist.py", line 406, in get_command_class
    ep.require(installer=self.fetch_build_egg)
  File "/tmp/pip-build-a_5yoqj4/distribute/pkg_resources.py", line 2254, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer)))
  File "/tmp/pip-build-a_5yoqj4/distribute/pkg_resources.py", line 2471, in requires
    dm = self._dep_map
  File "/tmp/pip-build-a_5yoqj4/distribute/pkg_resources.py", line 2682, in _dep_map
    self.__dep_map = self._compute_dependencies()
  File "/tmp/pip-build-a_5yoqj4/distribute/pkg_resources.py", line 2699, in _compute_dependencies
    from _markerlib import compile as compile_marker
ImportError: No module named '_markerlib'

----------------------------------------
Running setup.py clean for distribute

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.