gmailR error“jython当前只支持AF帴INET套接字”

2024-06-17 10:15:18 发布

您现在位置:Python中文网/ 问答频道 /正文

我一直在R中使用gmailR从R发送电子邮件,没有问题,但从一个星期以来,它就出现了故障。有时它能起作用,但大多数时候却不行。这是github的Trinker包(而不是crangmailr!):https://github.com/trinker/gmailR

这是我的剧本:

library(gmailR)
chartime <- as.character(Sys.time())
email_test <- function(chartime){
  gmail("sjorsvanheuveln@gmail.com", password="************", subject = "Test No New Projects",
        message = paste("Testing time at",chartime), from = "sjorsvanheuveln@gmail.com",
        attachment = NULL, server = "smtp.gmail.com:587", username = "sjorsvanheuveln@gmail.com",
        confirmBeforeSend = FALSE, clear.username = FALSE)}
email_test(chartime)

错误就在这里:

^{pr2}$

这是我的会话信息:

   R version 3.1.3 (2015-03-09)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.10.5 (Yosemite)

locale:
[1] nl_NL.UTF-8/nl_NL.UTF-8/nl_NL.UTF-8/C/nl_NL.UTF-8/nl_NL.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] gmailR_1.0    rJython_0.0-4 rjson_0.2.15  rJava_0.9-7  

loaded via a namespace (and not attached):
[1] tools_3.1.3  XML_3.98-1.3

我该怎么解决这个问题?在


Tags: testgithubcomfalsetimeemailnlusername
1条回答
网友
1楼 · 发布于 2024-06-17 10:15:18

Jython 2.5.2修复了不支持AF_INET6的问题,请参见http://bugs.jython.org/issue1210(您的问题出现在不同的路由器上,这说明它是IPv4对IPv6。)但是,rJython捆绑了一个旧版本的jythonjar。也许这可以升级,即使不能升级到2.7?在

与rJython包的维护人员联系是值得的。在

相关问题 更多 >