BiliUtil icon indicating copy to clipboard operation
BiliUtil copied to clipboard

已经配置好aria2c环境变量,但还是报错说没有配置

Open Litton-Lei opened this issue 6 years ago • 1 comments

已经配置好:C:\Users\leily>aria2c Specify at least one URL. Usage: aria2c [OPTIONS] [URI | MAGNET | TORRENT_FILE | METALINK_FILE]... See 'aria2c -h'.

C:\Users\leily>aria2c -v aria2 version 1.35.0 Copyright (C) 2006, 2019 Tatsuhiro Tsujikawa

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

** Configuration ** Enabled Features: Async DNS, BitTorrent, Firefox3 Cookie, GZip, HTTPS, Message Digest, Metalink, XML-RPC, SFTP Hash Algorithms: sha-1, sha-224, sha-256, sha-384, sha-512, md5, adler32 Libraries: zlib/1.2.11 expat/2.2.7 sqlite3/3.29.0 GMP/6.1.2 c-ares/1.15.0 libssh2/1.9.0 Compiler: mingw-w64 6.0.0 (alpha) / gcc 8.3-win32 20190709 built by x86_64-pc-linux-gnu targeting x86_64-w64-mingw32 on Oct 6 2019 10:22:20 System: Windows 6.2 (x86_64) (6.2)

Report bugs to https://github.com/aria2/aria2/issues Visit https://aria2.github.io/

但是启用: if name == 'main': ua = BiliUtil.User(uid='401935022') ua.get_user_info() ua.get_all_video_info()

之后就报错:

'aria2c' �����ڲ����ⲿ���Ҳ���ǿ����еij��� ���������ļ��� C:\Users\leily\AppData\Local\Programs\Python\Python37\lib\site-packages\BiliUtil_init_.py:26: UserWarning: QAQ~ 您未配置aria2c下载环境,Task, Filter, Fetcher类不可用 warnings.warn("QAQ~ 您未配置aria2c下载环境,Task, Filter, Fetcher类不可用") Traceback (most recent call last): File "C:\Users\leily\Desktop\python练习\Downbilibili.py", line 18, in ua.get_user_info()

这个应该是不是要放在同一目录下呢?

Litton-Lei avatar Jan 11 '20 15:01 Litton-Lei

应该是还是环境变量的问题,可能python的运行环境中环境变量没有更新,读不到aria2c的运行路径导致的。具体问题可能还是要检查一下环境变量的配置,重启下编译器或者电脑啥的。

wolfbolin avatar Jan 20 '20 04:01 wolfbolin