Coder Social home page Coder Social logo

pyeventdistr's Introduction

pyEventdistr

Stratum0 UDP event distribution system implementation in Python

pyeventdistr's People

Contributors

comawill avatar rohieb avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

rohieb

pyeventdistr's Issues

Unicode encode errors when sending packets

For example when using ./mpris2-nowplaying.py:

Now Playing: Bajofondo - Pulmón
ERROR:dbus.connection:Exception in handler for D-Bus signal:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 230, in maybe_handle_message
    self._handler(*args, **kwargs)
  File "./mpris2-nowplaying.py", line 20, in propChangedCallback
    eventdistr.now_playing(artist, title, area)
  File "/home/rohieb/Projects/pyEventdistr/eventdistr.py", line 54, in now_playing
    send_event(EVENT_NOW_PLAYING, "%s\x00%s\x00%s" % (area, artist, title))
  File "/home/rohieb/Projects/pyEventdistr/eventdistr.py", line 32, in send_event
    EVENTDISTR_PORT))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 40: ordinal not in range(128)

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.