I am running in Ride and it shows the following error:
Error in library ‘RemoteSwingLibrary’: Adding keyword ‘system_exit’ failed: Calling dynamic method ‘get_keyword_arguments’ failed: AttributeError: module ‘inspect’ has no attribute ‘getargspec’
…
TestRunnerAgent: Running under CPython 3.11.4
The code:
*** Settings ***
Library OperatingSystem
Library RemoteSwingLibrary
Library Process
*** Test Cases ***
Prueba002
[Timeout] 3 seconds
Start Application app javaws "C:\programas\RIDE\app\SimpleTableDemo.jnlp timeout=10s remote_port=12345 remote_host=127.0.0.1
What could be happening?
I think it may be some incompatibility with python 3.11.
I tried to run the example in the project page, and this is the errors I get:
command: robot -A /tmp/RIDE7i_n6g9d.d/argfile.txt --listener /home/helio/github/RIDE/src/robotide/contrib/testrunner/TestRunnerAgent.py:41655:False /home2/helio/Test/Robot/remoteswing_sshtest.robot
TestRunnerAgent: Running under CPython 3.11.4
[ ERROR ] Error in library 'RemoteSwingLibrary': Adding keyword 'system_exit' failed: Calling dynamic method 'get_keyword_arguments' failed: AttributeError: module 'inspect' has no attribute 'getargspec'
[ ERROR ] Error in library 'RemoteSwingLibrary': Adding keyword 'start_application' failed: Calling dynamic method 'get_keyword_arguments' failed: AttributeError: module 'inspect' has no attribute 'getargspec'
[ ERROR ] Error in library 'RemoteSwingLibrary': Adding keyword 'application_started' failed: Calling dynamic method 'get_keyword_arguments' failed: AttributeError: module 'inspect' has no attribute 'getargspec'
[ ERROR ] Error in library 'RemoteSwingLibrary': Adding keyword 'switch_to_application' failed: Calling dynamic method 'get_keyword_arguments' failed: AttributeError: module 'inspect' has no attribute 'getargspec'
[ ERROR ] Error in library 'RemoteSwingLibrary': Adding keyword 'ensure_application_should_close' failed: Calling dynamic method 'get_keyword_arguments' failed: AttributeError: module 'inspect' has no attribute 'getargspec'
[ ERROR ] Error in library 'RemoteSwingLibrary': Adding keyword 'log_java_system_properties' failed: Calling dynamic method 'get_keyword_arguments' failed: AttributeError: module 'inspect' has no attribute 'getargspec'
[ ERROR ] Error in library 'RemoteSwingLibrary': Adding keyword 'set_java_tool_options' failed: Calling dynamic method 'get_keyword_arguments' failed: AttributeError: module 'inspect' has no attribute 'getargspec'
[ ERROR ] Error in library 'RemoteSwingLibrary': Adding keyword 'reinitiate' failed: Calling dynamic method 'get_keyword_arguments' failed: AttributeError: module 'inspect' has no attribute 'getargspec'
===============================================================
Remoteswing Sshtest
===============================================================
Connecting to another machine | FAIL |
No keyword with name 'Application Started' found.
---------------------------------------------------------------
Remoteswing Sshtest | FAIL |
1 test, 0 passed, 1 failed
===============================================================
Output: /tmp/RIDE7i_n6g9d.d/output.xml
Log: /tmp/RIDE7i_n6g9d.d/log.html
Report: /tmp/RIDE7i_n6g9d.d/report.html
Test finished 20230828 16:32:35
rasjani
(not available)
3
getargspec has been deprecated for python 3 and probably now removed… There’s also a bug report about this in remoteswinglibrary github.
You could either fix the issue to use getfullargspec or downgrade your python…
What version of Python do you recommend?
rasjani
(not available)
5
getargspec has been removed in 3.11 alpha 2 – anything older ?
1 Like