- Microsoft Windows [版本 10.0.17763.1518]
- (c) 2018 Microsoft Corporation。保留所有权利。
- C:\mirai\Amiya-Bot>py C:\mirai\Amiya-Bot\amiya.py
- Traceback (most recent call last):
- File "C:\mirai\Amiya-Bot\amiya.py", line 4, in <module>
- from modules.network.websocketClient import Websocket
- File "C:\mirai\Amiya-Bot\modules\network\websocketClient.py", line 5, in <module>
- from modules.automaticAction import run_automatic_action
- File "C:\mirai\Amiya-Bot\modules\automaticAction.py", line 7, in <module>
- from modules.commonMethods import maintain_record, insert_zero
- File "C:\mirai\Amiya-Bot\modules\commonMethods.py", line 10, in <module>
- from message.messageType import TextImage, Image, Voice, Text
- File "C:\mirai\Amiya-Bot\message\messageType.py", line 3, in <module>
- from modules.resource.imageManager import ImageManager
- File "C:\mirai\Amiya-Bot\modules\resource\imageManager.py", line 6, in <module>
- from modules.network.httpRequests import HttpRequests
- File "C:\mirai\Amiya-Bot\modules\network\httpRequests.py", line 8, in <module>
- database = BaseController()
- File "C:\mirai\Amiya-Bot\database\baseController.py", line 18, in __init__
- self.comb = Mysql(config)
- File "C:\mirai\Amiya-Bot\database\sqlCombiner.py", line 14, in __init__
- autocommit=1
- File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\pymysql\__init__.py", line 94, in Connect
- return Connection(*args, **kwargs)
- File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\pymysql\connections.py", line 327, in __init__
- self.connect()
- File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\pymysql\connections.py", line 588, in connect
- self._request_authentication()
- File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\pymysql\connections.py", line 874, in _request_authentication
- auth_packet = _auth.caching_sha2_password_auth(self, auth_packet)
- File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\pymysql\_auth.py", line 326, in caching_sha2_password_auth
- data = sha2_rsa_encrypt(conn.password, conn.salt, conn.server_public_key)
- File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\pymysql\_auth.py", line 204, in sha2_rsa_encrypt
- raise RuntimeError("'cryptography' package is required for sha256_password or caching_sha2_password auth methods")
- RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods
- Exception ignored in: <function Mysql.__del__ at 0x000001F7061FCDC8>
- Traceback (most recent call last):
- File "C:\mirai\Amiya-Bot\database\sqlCombiner.py", line 19, in __del__
- self.close()
- File "C:\mirai\Amiya-Bot\database\sqlCombiner.py", line 125, in close
- self.db.close()
- AttributeError: 'Mysql' object has no attribute 'db'