Giter Site home page Giter Site logo

Comments (2)

ldo avatar ldo commented on June 18, 2024

If you want to connect to a server that does not go through the D-Bus daemon, use the Ravel connect_server/connect_server_async calls. There is an example of this in my dbussy_examples repo. Also, libdbus and threading do not mix very well. Keep your use of threading strictly controlled, as in this example, or avoid completely.

from dbussy.

ydirson avatar ydirson commented on June 18, 2024

That does not seem to work out of the box:

Traceback (most recent call last):
  File "/home/yann/perso/omaha/uitest/./atspi-dbussy.py", line 15, in <module>
    conn = ravel.connect_server(address=a11y_busname, private=True)
  File "/usr/lib/python3/dist-packages/ravel.py", line 1510, in connect_server
    Connection(dbus.Connection.open(address, private = False)) \
  File "/usr/lib/python3/dist-packages/ravel.py", line 230, in __new__
    assert unique_name != None, "connection not yet registered"
AssertionError: connection not yet registered

Now this really looks like the problem that lead lrusak write this - and I noticed he also has another patch which seems to deal with another related issue.

Keep your use of threading strictly controlled, as in this example, or avoid completely.

Not sure why you're mentionning this, I'm not using any theading here.

Also, don't you want to keep the ticket open for the segfault ?

from dbussy.

Related Issues (20)

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.