Skip to content

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

Description

@Litton-Lei

已经配置好: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()

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DONEProblem solved or answeredQ&AQuestion and Answer

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions