地理编码器连接由同行重置

时间:2016-11-10 15:53:47

标签: python google-geocoder geopy

我尝试执行此代码:

from geopy.geocoders import GoogleV3
point = '51.523910, -0.158578'
geolocator = GoogleV3()
address = geolocator.reverse(point)

我收到此错误:

error: [Errno 104] Connection reset by peer

我在一个流浪汉机器中执行它,但是当我在我的本地机器上执行它时,它可以工作!!!

1 个答案:

答案 0 :(得分:1)

当网络设置为NAT时,这是VirtualBox(最可能是你的流浪者的提供者)设置错误校验和的最新一期。 可能的决定是:

  • 使用桥接网络代替NAT
  • 将您的VirtualBox更新为最近的test build(在我的情况下帮助了5.1.9)

您可以在跟踪器herehere

上阅读有关VirtalBox问题的更多信息
相关问题