CJReinforce / PikPakAutoOfflineDownloadBot

自动PikPak离线下载+aria2下载+释放网盘空间的TG机器人
431 stars 82 forks source link

好像不能使用了? #28

Open vvlaw opened 3 weeks ago

vvlaw commented 3 weeks ago

File "/usr/local/lib/python3.7/threading.py", line 917, in _bootstrap_inner self.run() File "/usr/local/lib/python3.7/threading.py", line 865, in run self._target(*self._args, **self._kwargs) File "pikpakTgBot.py", line 420, in main login(each_account) # 指定用哪个账户登录 File "pikpakTgBot.py", line 135, in login headers['Authorization'] = f"Bearer {info['access_token']}" KeyError: 'access_token'

xingfanxia commented 3 weeks ago

+1

xingfanxia commented 3 weeks ago

api的定义好像改了

xingfanxia commented 3 weeks ago
    info = requests.post(url=login_url, json=login_data, headers=login_headers, timeout=5).json()
    logging.info(f"api登录信息:{info}")

2024-08-20 17:55:13,599 - INFO - api登录信息:{'error': 'invalid_argument', 'error_code': 3, 'error_description': 'currently not supported', 'details': []}

api改了

xingfanxia commented 3 weeks ago

@huanity @CJReinforce any ideas?

xingfanxia commented 3 weeks ago

PIKPAK_USER_URL = "https://user.mypikpak.com" 原来的登录URL 404了

新的好像是这个 https://mypikpak.com/drive/login

huanity commented 3 weeks ago

问题已收到,有空会看一下

xingfanxia commented 3 weeks ago

好的,研究了一下这个接口还存在

https://user.mypikpak.com/v1/auth/signin
xingfanxia commented 3 weeks ago

token那个接口似乎就currently unsupported

huanity commented 2 weeks ago

已进行问题修复,请更新代码后使用😊

vvlaw commented 2 weeks ago

好像不能运行了

Traceback (most recent call last): File "pikpakTgBot.py", line 7, in

from pikpakapi import PikPakApi ModuleNotFoundError: No module named 'pikpakapi' On Sun, 25 Aug 2024 at 3:43 PM, huanity ***@***.***> wrote: > 已进行问题修复,请更新代码后使用😊 > > — > Reply to this email directly, view it on GitHub > , > or unsubscribe > > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
huanity commented 2 weeks ago

请安装pikpakapi包 pip install pikpakapi

---原始邮件--- 发件人: @.> 发送时间: 2024年8月28日(周三) 下午5:48 收件人: @.>; 抄送: @.**@.>; 主题: Re: [CJReinforce/PikPakAutoOfflineDownloadBot] 好像不能使用了? (Issue #28)

好像不能运行了

Traceback (most recent call last): File "pikpakTgBot.py", line 7, in <module> from pikpakapi import PikPakApi ModuleNotFoundError: No module named 'pikpakapi'

On Sun, 25 Aug 2024 at 3:43 PM, huanity @.***> wrote:

> 已进行问题修复,请更新代码后使用😊 > > — > Reply to this email directly, view it on GitHub > <https://github.com/CJReinforce/PikPakAutoOfflineDownloadBot/issues/28#issuecomment-2308664556&gt;, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AQRB4ZTIP73CVHVVDVAL7IDZTFVILAVCNFSM6AAAAABMZLYZT2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBYGY3DINJVGY&gt; > . > You are receiving this because you authored the thread.Message ID: > @.***> >

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

vvlaw commented 2 weeks ago

谢谢 回复

安装失败...

pip3 install pikpakapi WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly. ERROR: Ignored the following versions that require a different python version: 0.0.1 Requires-Python >=3.8.3,<4.0.0; 0.0.2 Requires-Python >=3.8.3,<4.0.0; 0.0.3 Requires-Python >=3.8.3,<4.0.0; 0.0.4 Requires-Python >=3.8.3,<4.0.0; 0.0.5 Requires-Python >=3.8.3,<4.0.0; 0.0.6 Requires-Python >=3.8.3,<4.0.0; 0.0.7 Requires-Python >=3.8.3,<4.0.0; 0.1.0 Requires-Python >=3.8.3,<4.0.0; 0.1.1 Requires-Python >=3.8.3,<4.0.0; 0.1.10 Requires-Python <4.0.0,>=3.8.3; 0.1.2 Requires-Python

=3.8.3,<4.0.0; 0.1.3 Requires-Python >=3.8.3,<4.0.0; 0.1.5 Requires-Python =3.8.3,<4.0.0; 0.1.6 Requires-Python >=3.8.3,<4.0.0; 0.1.9 Requires-Python <4.0.0,>=3.8.3 ERROR: Could not find a version that satisfies the requirement pikpakapi (from versions: none) ERROR: No matching distribution found for pikpakapi

python版本过低...

Python 3.7.0 (default, Jan 3 2023, 07:41:35) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux Type "help", "copyright", "credits" or "license" for more information. import 'atexit' # <class '_frozen_importlib.BuiltinImporter'> >>>

好像要升到3.8.3

On Wed, 28 Aug 2024 at 7:52 PM, huanity @.***> wrote:

请安装pikpakapi包 pip install pikpakapi

---原始邮件--- 发件人: @.> 发送时间: 2024年8月28日(周三) 下午5:48 收件人: @.>; 抄送: @.**@.>; 主题: Re: [CJReinforce/PikPakAutoOfflineDownloadBot] 好像不能使用了? (Issue #28)

好像不能运行了

Traceback (most recent call last): File "pikpakTgBot.py", line 7, in <module> from pikpakapi import PikPakApi ModuleNotFoundError: No module named 'pikpakapi'

On Sun, 25 Aug 2024 at 3:43 PM, huanity @.***> wrote:

> 已进行问题修复,请更新代码后使用😊 > > — > Reply to this email directly, view it on GitHub > < https://github.com/CJReinforce/PikPakAutoOfflineDownloadBot/issues/28#issuecomment-2308664556&gt;,

> or unsubscribe > < https://github.com/notifications/unsubscribe-auth/AQRB4ZTIP73CVHVVDVAL7IDZTFVILAVCNFSM6AAAAABMZLYZT2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBYGY3DINJVGY&gt;

> . > You are receiving this because you authored the thread.Message ID: > @.***> >

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/CJReinforce/PikPakAutoOfflineDownloadBot/issues/28#issuecomment-2314859002, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQRB4ZUQTVHFTITVDRTDDALZTWMVTAVCNFSM6AAAAABMZLYZT2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJUHA2TSMBQGI . You are receiving this because you authored the thread.Message ID: @.***>

vvlaw commented 1 week ago

你好,我已经更新到了3.14版本和PikpakAPI

不过好像还是出现个模块没能加载,请问该如何解决,谢谢。 [root@vvlaw PikPakAutoOfflineDownloadBot]# python3 pikpakTgBot.py /root/PikPakAutoOfflineDownloadBot/pikpakTgBot.py:779: SyntaxWarning: invalid escape sequence '[' print_info += f' {each_user}[{flag}]\n' /root/PikPakAutoOfflineDownloadBot/pikpakTgBot.py:803: SyntaxWarning: invalid escape sequence '[' print_info += f'{key}[{value}]\n' /root/PikPakAutoOfflineDownloadBot/pikpakTgBot.py:865: SyntaxWarning: invalid escape sequence '[' '罗列账号:/account l/list [pd][vip][status]\n' /root/PikPakAutoOfflineDownloadBot/pikpakTgBot.py:1126: SyntaxWarning: invalid escape sequence '\?' magnet_handler = MessageHandler(Filters.regex('^magnet:\?xt=urn:btih:[0-9a-fA-F]{40,}.*$'), pikpak) Traceback (most recent call last): File "/root/PikPakAutoOfflineDownloadBot/pikpakTgBot.py", line 10, in import telegram File "/usr/local/python3.14/lib/python3.14/site-packages/telegram/init.py", line 68, in from .files.inputfile import InputFile File "/usr/local/python3.14/lib/python3.14/site-packages/telegram/files/inputfile.py", line 22, in import imghdr ModuleNotFoundError: No module named 'imghdr'

vvlaw commented 1 week ago

奇怪的是imghdr是自带的模块,为啥显示没有呢?

huanity commented 1 week ago

你好,我已经更新到了3.14版本和PikpakAPI

不过好像还是出现个模块没能加载,请问该如何解决,谢谢。 [root@vvlaw PikPakAutoOfflineDownloadBot]# python3 pikpakTgBot.py /root/PikPakAutoOfflineDownloadBot/pikpakTgBot.py:779: SyntaxWarning: invalid escape sequence '[' print_info += f' {each_user}[{flag}]\n' /root/PikPakAutoOfflineDownloadBot/pikpakTgBot.py:803: SyntaxWarning: invalid escape sequence '[' print_info += f'{key}[{value}]\n' /root/PikPakAutoOfflineDownloadBot/pikpakTgBot.py:865: SyntaxWarning: invalid escape sequence '[' '罗列账号:/account l/list [pd][vip][status]\n' /root/PikPakAutoOfflineDownloadBot/pikpakTgBot.py:1126: SyntaxWarning: invalid escape sequence '?' magnet_handler = MessageHandler(Filters.regex('^magnet:?xt=urn:btih:[0-9a-fA-F]{40,}.*$'), pikpak) Traceback (most recent call last): File "/root/PikPakAutoOfflineDownloadBot/pikpakTgBot.py", line 10, in import telegram File "/usr/local/python3.14/lib/python3.14/site-packages/telegram/init.py", line 68, in from .files.inputfile import InputFile File "/usr/local/python3.14/lib/python3.14/site-packages/telegram/files/inputfile.py", line 22, in import imghdr ModuleNotFoundError: No module named 'imghdr'

请确保运行环境为: python-telegram-bot==13.12 requests==2.27.1 PikPakAPI

python版本尝试降级?目前python3.10-3.12都正常运行

vvlaw commented 1 week ago

谢谢 Huanity

果然是版本太新

重新编译了下3.10 就可以了

On Sat, 31 Aug 2024 at 10:08 PM, huanity @.***> wrote:

你好,我已经更新到了3.14版本和PikpakAPI

不过好像还是出现个模块没能加载,请问该如何解决,谢谢。 @.** PikPakAutoOfflineDownloadBot]# python3 pikpakTgBot.py /root/PikPakAutoOfflineDownloadBot/pikpakTgBot.py:779: SyntaxWarning: invalid escape sequence '[' print_info += f' {each_user}[{flag}]\n' /root/PikPakAutoOfflineDownloadBot/pikpakTgBot.py:803: SyntaxWarning: invalid escape sequence '[' print_info += f'{key}[{value}]\n' /root/PikPakAutoOfflineDownloadBot/pikpakTgBot.py:865: SyntaxWarning: invalid escape sequence '[' '罗列账号:/account l/list [pd][vip][status]\n' /root/PikPakAutoOfflineDownloadBot/pikpakTgBot.py:1126: SyntaxWarning: invalid escape sequence '?' magnet_handler = MessageHandler(Filters.regex('^magnet:?xt=urn:btih:[0-9a-fA-F]{40,}.$'), pikpak) Traceback (most recent call last): File "/root/PikPakAutoOfflineDownloadBot/pikpakTgBot.py", line 10, in import telegram File "/usr/local/python3.14/lib/python3.14/site-packages/telegram/ init.py", line 68, in from .files.inputfile import InputFile File "/usr/local/python3.14/lib/python3.14/site-packages/telegram/files/inputfile.py", line 22, in import imghdr ModuleNotFoundError: No module named 'imghdr'

请确保运行环境为: python-telegram-bot==13.12 requests==2.27.1 PikPakAPI

python版本尝试降级?目前python3.10-3.12都正常运行

— Reply to this email directly, view it on GitHub https://github.com/CJReinforce/PikPakAutoOfflineDownloadBot/issues/28#issuecomment-2322877872, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQRB4ZVZTNUB2JG2VJKRW63ZUGW3FAVCNFSM6AAAAABMZLYZT2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRSHA3TOOBXGI . You are receiving this because you authored the thread.Message ID: @.***>