Skip to content

Errors while trying -- python3 setup.py Install & Execute the Tests. #66

@iravikiran

Description

@iravikiran

Hello Team,

We are trying to build and enable the support for the same for the purpose of testing the GNOME Environment which is running over our own RISCV-64 development platform with Linux. While doing so we also found issue with installing the LDTP2 on our RISCV-64 Setup and caught up issues when trying to execute the tests provided within in the example/ directory.

Installation Log:

ravikiran@Ravikiran-K:~/LDTP/ldtp2$ sudo python3 setup.py install
running install
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running bdist_egg
running egg_info
writing ldtp.egg-info/PKG-INFO
writing dependency_links to ldtp.egg-info/dependency_links.txt
writing requirements to ldtp.egg-info/requires.txt
writing top-level names to ldtp.egg-info/top_level.txt
reading manifest file 'ldtp.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'COPYING'
adding license file 'AUTHORS'
writing manifest file 'ldtp.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/ldtp
copying build/lib/ldtp/state.py -> build/bdist.linux-x86_64/egg/ldtp
copying build/lib/ldtp/log.py -> build/bdist.linux-x86_64/egg/ldtp
copying build/lib/ldtp/__init__.py -> build/bdist.linux-x86_64/egg/ldtp
copying build/lib/ldtp/client_exception.py -> build/bdist.linux-x86_64/egg/ldtp
copying build/lib/ldtp/client.py -> build/bdist.linux-x86_64/egg/ldtp
creating build/bdist.linux-x86_64/egg/ooldtp
copying build/lib/ooldtp/state.py -> build/bdist.linux-x86_64/egg/ooldtp
copying build/lib/ooldtp/log.py -> build/bdist.linux-x86_64/egg/ooldtp
copying build/lib/ooldtp/__init__.py -> build/bdist.linux-x86_64/egg/ooldtp
copying build/lib/ooldtp/client_exception.py -> build/bdist.linux-x86_64/egg/ooldtp
creating build/bdist.linux-x86_64/egg/ldtpme
copying build/lib/ldtpme/__init__.py -> build/bdist.linux-x86_64/egg/ldtpme
creating build/bdist.linux-x86_64/egg/ldtputils
copying build/lib/ldtputils/__init__.py -> build/bdist.linux-x86_64/egg/ldtputils
creating build/bdist.linux-x86_64/egg/ldtpd
copying build/lib/ldtpd/keypress_actions.py -> build/bdist.linux-x86_64/egg/ldtpd
copying build/lib/ldtpd/value.py -> build/bdist.linux-x86_64/egg/ldtpd
copying build/lib/ldtpd/log.py -> build/bdist.linux-x86_64/egg/ldtpd
copying build/lib/ldtpd/text.py -> build/bdist.linux-x86_64/egg/ldtpd
copying build/lib/ldtpd/xmlrpc_daemon.py -> build/bdist.linux-x86_64/egg/ldtpd
copying build/lib/ldtpd/mouse.py -> build/bdist.linux-x86_64/egg/ldtpd
copying build/lib/ldtpd/constants.py -> build/bdist.linux-x86_64/egg/ldtpd
copying build/lib/ldtpd/combo_box.py -> build/bdist.linux-x86_64/egg/ldtpd
copying build/lib/ldtpd/sequence_step.py -> build/bdist.linux-x86_64/egg/ldtpd
copying build/lib/ldtpd/server_exception.py -> build/bdist.linux-x86_64/egg/ldtpd
copying build/lib/ldtpd/generic.py -> build/bdist.linux-x86_64/egg/ldtpd
copying build/lib/ldtpd/menu.py -> build/bdist.linux-x86_64/egg/ldtpd
copying build/lib/ldtpd/__init__.py -> build/bdist.linux-x86_64/egg/ldtpd
copying build/lib/ldtpd/core.py -> build/bdist.linux-x86_64/egg/ldtpd
copying build/lib/ldtpd/table.py -> build/bdist.linux-x86_64/egg/ldtpd
copying build/lib/ldtpd/page_tab_list.py -> build/bdist.linux-x86_64/egg/ldtpd
copying build/lib/ldtpd/utils.py -> build/bdist.linux-x86_64/egg/ldtpd
copying build/lib/ldtpd/waiters.py -> build/bdist.linux-x86_64/egg/ldtpd
byte-compiling build/bdist.linux-x86_64/egg/ldtp/state.py to state.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtp/log.py to log.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtp/__init__.py to __init__.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtp/client_exception.py to client_exception.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtp/client.py to client.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ooldtp/state.py to state.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ooldtp/log.py to log.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ooldtp/__init__.py to __init__.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ooldtp/client_exception.py to client_exception.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtpme/__init__.py to __init__.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtputils/__init__.py to __init__.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtpd/keypress_actions.py to keypress_actions.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtpd/value.py to value.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtpd/log.py to log.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtpd/text.py to text.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtpd/xmlrpc_daemon.py to xmlrpc_daemon.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtpd/mouse.py to mouse.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtpd/constants.py to constants.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtpd/combo_box.py to combo_box.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtpd/sequence_step.py to sequence_step.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtpd/server_exception.py to server_exception.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtpd/generic.py to generic.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtpd/menu.py to menu.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtpd/__init__.py to __init__.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtpd/core.py to core.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtpd/table.py to table.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtpd/page_tab_list.py to page_tab_list.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtpd/utils.py to utils.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ldtpd/waiters.py to waiters.cpython-310.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
installing scripts to build/bdist.linux-x86_64/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts-3.10/ldtp -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/ldtp to 755
copying ldtp.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ldtp.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ldtp.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ldtp.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ldtp.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
ldtp.__pycache__.__init__.cpython-310: module references __file__
creating 'dist/ldtp-3.5.1-py3.10.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing ldtp-3.5.1-py3.10.egg
removing '/usr/local/lib/python3.10/dist-packages/ldtp-3.5.1-py3.10.egg' (and everything under it)
creating /usr/local/lib/python3.10/dist-packages/ldtp-3.5.1-py3.10.egg
Extracting ldtp-3.5.1-py3.10.egg to /usr/local/lib/python3.10/dist-packages
ldtp 3.5.1 is already the active version in easy-install.pth
Installing ldtp script to /usr/local/bin

Installed /usr/local/lib/python3.10/dist-packages/ldtp-3.5.1-py3.10.egg
Processing dependencies for ldtp==3.5.1
Searching for zope-interface>=5
Reading https://pypi.org/simple/zope-interface/
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning:  is an invalid version and will not be supported in a future release
  warnings.warn(
Downloading https://files.pythonhosted.org/packages/e4/1f/8bb0739aba9a8909bcfa2e12dc20443ebd5bd773b6796603f1a126211e18/zope_interface-7.1.0.tar.gz#sha256=3f005869a1a05e368965adb2075f97f8ee9a26c61898a9e52a9764d93774f237
Best match: zope-interface 7.1.0
Processing zope_interface-7.1.0.tar.gz
Writing /tmp/easy_install-bmrqlupx/zope_interface-7.1.0/setup.cfg
Running zope_interface-7.1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-bmrqlupx/zope_interface-7.1.0/egg-dist-tmp-5qr7hgur
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
removing '/usr/local/lib/python3.10/dist-packages/zope.interface-7.1.0-py3.10-linux-x86_64.egg' (and everything under it)
creating /usr/local/lib/python3.10/dist-packages/zope.interface-7.1.0-py3.10-linux-x86_64.egg
Extracting zope.interface-7.1.0-py3.10-linux-x86_64.egg to /usr/local/lib/python3.10/dist-packages
zope.interface 7.1.0 is already the active version in easy-install.pth

Installed /usr/local/lib/python3.10/dist-packages/zope.interface-7.1.0-py3.10-linux-x86_64.egg
error: The 'zope-interface>=5' distribution was not found and is required by twisted

Though i've ensured the zope-interface is installed, it's still failing to be found by twisted, without which i notice all the tests simple returns an connection issue and i'm unable to run.

Test Error:

ravikiran@Ravikiran-K:~/GitSources/LDTP/ldtp2/examples$ sudo python3 gedit.py 
Traceback (most recent call last):
  File "/home/ravikiran/GitSources/LDTP/ldtp2/examples/gedit.py", line 20, in <module>
    import ldtp, ooldtp
  File "/usr/local/lib/python3.10/dist-packages/ldtp-3.5.1-py3.10.egg/ldtp/__init__.py", line 593, in <module>
    _populateNamespace(globals())
  File "/usr/local/lib/python3.10/dist-packages/ldtp-3.5.1-py3.10.egg/ldtp/__init__.py", line 247, in _populateNamespace
    for method in client._client.system.listMethods():
  File "/usr/lib/python3.10/xmlrpc/client.py", line 1122, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python3.10/xmlrpc/client.py", line 1464, in __request
    response = self.__transport.request(
  File "/usr/local/lib/python3.10/dist-packages/ldtp-3.5.1-py3.10.egg/ldtp/client.py", line 152, in request
    h=self.send_request(host, handler, request_body, bool(verbose))
  File "/usr/lib/python3.10/xmlrpc/client.py", line 1291, in send_request
    self.send_content(connection, request_body)
  File "/usr/lib/python3.10/xmlrpc/client.py", line 1321, in send_content
    connection.endheaders(request_body)
  File "/usr/lib/python3.10/http/client.py", line 1278, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.10/http/client.py", line 1038, in _send_output
    self.send(msg)
  File "/usr/lib/python3.10/http/client.py", line 976, in send
    self.connect()
  File "/usr/lib/python3.10/http/client.py", line 942, in connect
    self.sock = self._create_connection(
  File "/usr/lib/python3.10/socket.py", line 845, in create_connection
    raise err
  File "/usr/lib/python3.10/socket.py", line 833, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
ravikiran@Ravikiran-K:~/GitSources/LDTP/ldtp2/examples$ 

Setup Details:
OS - Linux (Ubuntu 22.04 Distribution)
Kernel - 5.10
GNOME - 42.9

Any support on this would be greatly appreciated, Thank you!

Regards,
Ravi Kiran

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions