urllib.error.HTTPError: HTTP 错误 404: Not Found ,代码在我的本地机器上正确运行,但在 Ubuntu 上出现 404 错误

urllib.error.HTTPError: HTTP 错误 404: Not Found ,代码在我的本地机器上正确运行,但在 Ubuntu 上出现 404 错误
  File "Humo.py", line 236, in <module>
    bot.polling()
  File "/home/ubuntu/.local/lib/python3.6/site-packages/telebot/__init__.py", line 196, in polling
    self.__threaded_polling(none_stop, interval, timeout)
  File "/home/ubuntu/.local/lib/python3.6/site-packages/telebot/__init__.py", line 220, in __threaded_polling
    self.worker_pool.raise_exceptions()
  File "/home/ubuntu/.local/lib/python3.6/site-packages/telebot/util.py", line 103, in raise_exceptions
    six.reraise(self.exc_info[0], self.exc_info[1], self.exc_info[2])
  File "/home/ubuntu/.local/lib/python3.6/site-packages/six.py", line 703, in reraise
    raise value
  File "/home/ubuntu/.local/lib/python3.6/site-packages/telebot/util.py", line 54, in run
    task(*args, **kwargs)
  File "Humo.py", line 210, in send_welcome
    engine='python')
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pandas/io/parsers.py", line 676, in parser_f
    return _read(filepath_or_buffer, kwds)
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pandas/io/parsers.py", line 431, in _read
    filepath_or_buffer, encoding, compression
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pandas/io/common.py", line 172, in get_filepath_or_buffer
    req = urlopen(filepath_or_buffer)
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pandas/io/common.py", line 141, in urlopen
    return urllib.request.urlopen(*args, **kwargs)
  File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.6/urllib/request.py", line 532, in open
    response = meth(req, response)
  File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.6/urllib/request.py", line 570, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

我正在尝试使用 ubuntu 在 AWS 上部署一个机器人,问题是代码在我的计算机上可以正常运行,但在 ubuntu 上却不行,也许是依赖性问题,但我不确定或安全问题,我正在尝试访问此 URL。我不想使用 reuqirements.txt,因为即使我删除 (pywin) 也会出现错误。

https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/04-20-2020.csv

raw.githubusercontent.com 的 DIG 结果:-

; <<>> DiG 9.11.3-1ubuntu1.11-Ubuntu <<>> raw.githubusercontent.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27399
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;raw.githubusercontent.com.     IN      A

;; ANSWER SECTION:
raw.githubusercontent.com. 30   IN      CNAME   github.map.fastly.net.
github.map.fastly.net.  29      IN      A       151.101.248.133

;; Query time: 22 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Tue Apr 21 04:26:48 UTC 2020
;; MSG SIZE  rcvd: 105

相关内容