Giter Site home page Giter Site logo

Comments (5)

schuellerf avatar schuellerf commented on August 22, 2024 2

I guess this is related to python3 support #54 not being implemented yet
please try to use python2 (as you are in ubuntu 16.04)

from ldtp2.

linuxqiao avatar linuxqiao commented on August 22, 2024 1

@schuellerf, interesting! it works today!
I just type 'from ldtp import *' in my python3 shell like:

$ python3
Python 3.9.2 (default, Feb 20 2021, 00:00:00) 
[GCC 11.0.0 20210210 (Red Hat 11.0.0-0)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from ldtp import *
>>> 

from ldtp2.

schuellerf avatar schuellerf commented on August 22, 2024

Please check if #58 solves your problem

from ldtp2.

linuxqiao avatar linuxqiao commented on August 22, 2024

Hi schuellerf, looks #58 fix the module issue, but I find another issue:

>>> from ldtp import *

(-c:27134): dbind-ERROR **: 01:57:18.583: AT-SPI: Couldn't connect to accessibility bus. Is at-spi-bus-launcher running?
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.9/site-packages/ldtp-3.6.0-py3.9.egg/ldtp/__init__.py", line 594, in <module>
    _populateNamespace(globals())
  File "/usr/local/lib/python3.9/site-packages/ldtp-3.6.0-py3.9.egg/ldtp/__init__.py", line 247, in _populateNamespace
    for method in client._client.system.listMethods():
  File "/usr/lib64/python3.9/xmlrpc/client.py", line 1116, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python3.9/xmlrpc/client.py", line 1456, in __request
    response = self.__transport.request(
  File "/usr/local/lib/python3.9/site-packages/ldtp-3.6.0-py3.9.egg/ldtp/client.py", line 156, in request
    h=self.send_request(host, handler, request_body, bool(verbose))
  File "/usr/lib64/python3.9/xmlrpc/client.py", line 1285, in send_request
    self.send_content(connection, request_body)
  File "/usr/lib64/python3.9/xmlrpc/client.py", line 1315, in send_content
    connection.endheaders(request_body)
  File "/usr/lib64/python3.9/http/client.py", line 1250, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.9/http/client.py", line 1010, in _send_output
    self.send(msg)
  File "/usr/lib64/python3.9/http/client.py", line 950, in send
    self.connect()
  File "/usr/lib64/python3.9/http/client.py", line 921, in connect
    self.sock = self._create_connection(
  File "/usr/lib64/python3.9/socket.py", line 843, in create_connection
    raise err
  File "/usr/lib64/python3.9/socket.py", line 831, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

from ldtp2.

schuellerf avatar schuellerf commented on August 22, 2024

@linuxqiao the "Connection refused" happened to me often when the ldtp backend dies.
I didn't find all the reasons why ldtp sometimes dies, but how did you start ldtp?
Does ldtp have some debug output when you run it in a terminal and this happens?
(or run even with "ldtp -v" to check...)

from ldtp2.

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.