Python “Gmail错误”;jython上目前只支持AF_INET套接字;
我一直在使用R中的Gmail从R发送电子邮件,没有任何问题,但从一周以来,它一直出现故障。有时有效,但大多数情况下无效。顺便说一下,这是github的Trinker包(而不是CRAN Gmail!): 这是我的剧本:Python “Gmail错误”;jython上目前只支持AF_INET套接字;,python,r,sockets,notifications,Python,R,Sockets,Notifications,我一直在使用R中的Gmail从R发送电子邮件,没有任何问题,但从一周以来,它一直出现故障。有时有效,但大多数情况下无效。顺便说一下,这是github的Trinker包(而不是CRAN Gmail!): 这是我的剧本: library(gmailR) chartime <- as.character(Sys.time()) email_test <- function(chartime){ gmail("sjorsvanheuveln@gmail.com", password="*
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)
这是我的会话信息:
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
如何解决此问题?Jython 2.5.2修复了不支持AF_INET6的问题,请参阅(您的问题出现在不同的路由器上这一事实非常表明它是IPv4与IPv6)。但是,rJython捆绑了较旧版本的Jython jar。也许这可以升级,即使不升级到2.7
与rJython软件包的维护人员联系可能是值得的。我发现这个错误可能只是在我工作时连接到另一个路由器时突然出现的。我如何克服这个问题并使它在那里工作?
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