我试图在linux机器中执行java sikuli脚本,但它抛出错误


{sdc@MRTEST}[103] java -jar SikluiTestingnonative.jar
Launching firefox1631707920583  mozrunner::runner       INFO    Running command: "/bin/firefox" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileVWjz6U"
console.error: Region.jsm: "Failed to fetch region" (new TypeError("NetworkError when attempting to fetch resource.", ""))
1631707926204   Marionette      INFO    Listening on port 44019
1631707926318   Marionette      WARN    TLS certificate errors will be ignored for this session
Sep 15, 2021 7:12:06 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
JavaScript error: resource://gre/modules/URIFixup.jsm, line 281: NS_ERROR_FAILURE: Should pass a non-null uri
1631707931477   Marionette      WARN    TimedPromise timed out after 5000 ms: stacktrace:
TimedPromise/<@chrome://marionette/content/sync.js:245:13
TimedPromise@chrome://marionette/content/sync.js:230:10
GeckoDriver.prototype.maximizeWindow@chrome://marionette/content/driver.js:3230:11
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.imgproc.Imgproc.matchTemplate_1(JJJI)V

看起来它不能计算出该机器上的区域设置,这些设置会影响软件认为的日期和时间。如果它不知道它在哪里,那么它就不知道如何依赖时钟,这在web服务器类型的程序中变得至关重要,特别是如果它们处理双因素身份验证……但是时间会影响网络资源等方面的各种事情. ...

你有没有试过在时钟不准的电脑上浏览网页?这些天你走不远的……时间同步对互联网软件的正常工作至关重要,如果软件不知道它在哪里,它就不能依赖时钟。

这里有几个链接可以查看…

https://timetoolsltd.com/time-sync/network-time-sync/

https://tldp.org/LDP/intro-linux/html/sect_07_05.html

https://www.tecmint.com/set-system-locales-in-linux/: ~:文本=如果% 20你% 20希望% 20 % 20的变化,和% 20删除% 20定义% 20 % 20语言。

最新更新