VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 8
声望: 0

2022-03-25 06:09:11 --------------------------------------------------
2022-03-25 06:09:11 VeighNa Trader进程启动
2022-03-25 06:09:13 C:\veighna_studio\lib\site-packages\vnpy\trader\setting.py:32: PytzUsageWarning: The zone attribute is specific to pytz's interface; please migrate to a new time zone provider. For more details on how to do so, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
"database.timezone": get_localzone().zone,
2022-03-25 06:09:13 Traceback (most recent call last):
File "C:\veighna_studio\lib\runpy.py", line 196, in _run_module_as_main
2022-03-25 06:09:13 return _run_code(code, main_globals, None,
File "C:\veighna_studio\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "build\bdist.win-amd64\egg\veighna_station\trader.py", line 39, in <module>
2022-03-25 06:09:13 File "build\bdist.win-amd64\egg\veighna_station\trader.py", line 30, in run_trader
File "C:\veighna_studio\lib\site-packages\vnpy\trader\engine.py", line 103, in add_app
engine = self.add_engine(app.engine_class)
File "C:\veighna_studio\lib\site-packages\vnpy\trader\engine.py", line 74, in add_engine
engine = engine_class(self, self.event_engine)
File "C:\veighna_studio\lib\site-packages\vnpy_ctastrategy\engine.py", line 106, in init
self.database: BaseDatabase = get_database()
File "C:\veighna_studio\lib\site-packages\vnpy\trader\database.py", line 137, in get_database
database = module.Database()
File "C:\veighna_studio\lib\site-packages\vnpy_mysql\mysql_database.py", line 137, in init
self.db.connect()
File "C:\veighna_studio\lib\site-packages\peewee.py", line 3096, in connect
self._state.set_connection(self._connect())
File "C:\veighna_studio\lib\site-packages\peewee.py", line 4017, in _connect
conn = mysql.connect(db=self.database, **self.connect_params)
File "C:\veighna_studio\lib\site-packages\pymysql\connections.py", line 353, in init
self.connect()
File "C:\veighna_studio\lib\site-packages\pymysql\connections.py", line 633, in connect
self._request_authentication()
File "C:\veighna_studio\lib\site-packages\pymysql\connections.py", line 932, in _request_authentication
auth_packet = _auth.caching_sha2_password_auth(self, auth_packet)
File "C:\veighna_studio\lib\site-packages\pymysql_auth.py", line 265, in caching_sha2_password_auth
data = sha2_rsa_encrypt(conn.password, conn.salt, conn.server_public_key)
File "C:\veighna_studio\lib\site-packages\pymysql_auth.py", line 143, in sha2_rsa_encrypt
raise RuntimeError(
RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods

Member
avatar
加入于:
帖子: 311
声望: 17

pip install cryptography

Member
avatar
加入于:
帖子: 8
声望: 0

谢谢!按您操作完美解决!

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】