Comments (5)
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.
@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.
Please check if #58 solves your problem
from ldtp2.
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.
@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)
- Creating an LDTP recipe for meta-python Yocto build image HOT 4
- enterstring method does not work with "<" character HOT 1
- ooldtp has no attribute 'context' HOT 4
- LDTP in bugzilla.gnome.org will be gone soon, do you want its bugs here? HOT 6
- Help getting ldtp2 code example working HOT 1
- python-gnome deprecated
- pip install ldtp fails because there is no setup.py
- Any idea how to get a list of menu items in GEdit ?
- freedesktop link on pypi doesn't work HOT 1
- LDTP2 engine is crashing and ldtp client is reporting connection refused 111 error
- Python 3 HOT 14
- General Q: Getting text from Windows
- Status of project and repository unclear
- atspi_error: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" could not be processed as object /org/a11y/atspi/accessible/775 does not exist\n (1)'>
- sudo python setup.py install returns an error
- Issues on Dependencies
- TypeError: Cannot create a consistent method resolution order (MRO) for bases Utils, LayeredPane
- Note: If your GNOME version is less than or equal to 2.24, then use LDTPv1 (1.7.x)
- Typeerror: Cannot Create A Consistent Method Resolution Order (Mro) when trying to launch ldtp daemon via "#ldtp -s" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ldtp2.