Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PyPtt get_post 失敗
- 不知道為何執行程式顯示錯誤的版本是 1.2.14
- 使用 pip show PyPtt 查詢版本時是 1.2.17
- Array
- (
- [0] => [06.10 15:09:09][PyPtt][INFO] PyPtt v 1.2.14 由 CodingMan 開發
- [1] => [06.10 15:09:09][PyPtt][INFO] PyPtt 初始化
- [2] => [06.10 15:09:09][PyPtt][INFO] 設定連線模式 ... WebSocket
- [3] => [06.10 15:09:09][PyPtt][INFO] 設定語言模組 ... 繁體中文
- [4] => [06.10 15:09:09][PyPtt][INFO] 設定連線主機 ... 批踢踢
- [5] => [06.10 15:09:09][PyPtt][INFO] PyPtt 初始化 ... 完成
- [6] => [06.10 15:09:09][PyPtt][INFO] 目前版本 1.2.14
- [7] => [06.10 15:09:09][PyPtt][INFO] 登入帳號 xxxxxxxx
- [8] => [06.10 15:09:09][PyPtt][INFO] 登入 ... 成功
- [9] => [06.10 15:09:09][PyPtt][INFO] 取得看板資訊 facelift
- [10] => [06.10 15:09:09][PyPtt][INFO] 取得看板資訊 facelift ... 成功
- [11] => [06.10 15:09:09][PyPtt][INFO] 推文
- [12] => [06.10 15:09:09][PyPtt][INFO] 推文 ... 成功
- [13] => 登入成功
- [14] => Traceback (most recent call last):
- [15] => File "push_ptt_article.py", line 163, in <module>
- [16] => main()
- [17] => File "push_ptt_article.py", line 153, in main
- [18] => result = verify(PTTBot, BoardKey, ID, Aid, Content)
- [19] => File "push_ptt_article.py", line 109, in verify
- [20] => post_info = PTTBot.get_post(BoardKey, aid=Aid)
- [21] => File "/usr/local/lib/python3.8/dist-packages/PyPtt/PTT.py", line 349, in get_post
- [22] => return _api_get_post.get_post(
- [23] => File "/usr/local/lib/python3.8/dist-packages/PyPtt/_api_get_post.py", line 53, in get_post
- [24] => if index > 0 and aid is not None:
- [25] => TypeError: '>' not supported between instances of 'NoneType' and 'int'
- )
- 1
- :~$ pip show PyPtt
- Name: pyptt
- Version: 1.2.17
- Summary: PyPtt
- Home-page: https://pyptt.cc/
- Author: CodingMan
- Author-email: pttcodingman@gmail.com
- License: None
- Location: /home/ubuntu/.local/lib/python3.8/site-packages
- Requires: requests, PyYAML, uao, progressbar2, websockets, AutoStrEnum
- Required-by:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement