Comments (3)
i updated my aktools to latest version. and run these code to set up server.
python -m aktoolserror messages
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ C:\Users\tyehuo\scoop\apps\pyenv\current\pyenv-win\versions\3.9.7\Lib\runpy.py:197 in │ │ _run_module_as_main │ │ │ │ 194 │ main_globals = sys.modules["__main__"].__dict__ │ │ 195 │ if alter_argv: │ │ 196 │ │ sys.argv[0] = mod_spec.origin │ │ ❱ 197 │ return _run_code(code, main_globals, None, │ │ 198 │ │ │ │ │ "__main__", mod_spec) │ │ 199 │ │ 200 def run_module(mod_name, init_globals=None, │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ alter_argv = True │ │ │ │ code = <code object <module> at 0x000002972A1E5C90, file │ │ │ │ "C:\Users\tyehuo\scoop\apps\pyenv\current\pyenv-win\versions\3.9.7\lib\site-… │ │ │ │ line 3> │ │ │ │ main_globals = { │ │ │ │ │ '__name__': '__main__', │ │ │ │ │ '__doc__': '\nDate: 2022/9/27 19:05\nDesc: CLI 执行入口文件\n运行 `pytho… │ │ │ │ -m aktools` 相当于运行 `python -m '+21, │ │ │ │ │ '__package__': 'aktools', │ │ │ │ │ '__loader__': <_frozen_importlib_external.SourceFileLoader object at │ │ │ │ 0x0000029729AAD160>, │ │ │ │ │ '__spec__': ModuleSpec(name='aktools.__main__', │ │ │ │ loader=<_frozen_importlib_external.SourceFileLoader object at │ │ │ │ 0x0000029729AAD160>, │ │ │ │ origin='C:\\Users\\tyehuo\\scoop\\apps\\pyenv\\current\\pyenv-win\\versions\… │ │ │ │ │ '__annotations__': {}, │ │ │ │ │ '__builtins__': <module 'builtins' (built-in)>, │ │ │ │ │ '__file__': │ │ │ │ 'C:\\Users\\tyehuo\\scoop\\apps\\pyenv\\current\\pyenv-win\\versions\\3.9.7\… │ │ │ │ │ '__cached__': │ │ │ │ 'C:\\Users\\tyehuo\\scoop\\apps\\pyenv\\current\\pyenv-win\\versions\\3.9.7\… │ │ │ │ │ 'cli': <module 'aktools.cli' from │ │ │ │ 'C:\\Users\\tyehuo\\scoop\\apps\\pyenv\\current\\pyenv-win\\versions\\3.9.7\… │ │ │ │ │ ... +2 │ │ │ │ } │ │ │ │ mod_name = 'aktools.__main__' │ │ │ │ mod_spec = ModuleSpec(name='aktools.__main__', │ │ │ │ loader=<_frozen_importlib_external.SourceFileLoader object at │ │ │ │ 0x0000029729AAD160>, │ │ │ │ origin='C:\\Users\\tyehuo\\scoop\\apps\\pyenv\\current\\pyenv-win\\versions\… │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\tyehuo\scoop\apps\pyenv\current\pyenv-win\versions\3.9.7\Lib\runpy.py:87 in _run_code │ │ │ │ 84 │ │ │ │ │ __loader__ = loader, │ │ 85 │ │ │ │ │ __package__ = pkg_name, │ │ 86 │ │ │ │ │ __spec__ = mod_spec) │ │ ❱ 87 │ exec(code, run_globals) │ │ 88 │ return run_globals │ │ 89 │ │ 90 def _run_module_code(code, init_globals=None, │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ cached = 'C:\\Users\\tyehuo\\scoop\\apps\\pyenv\\current\\pyenv-win\\versions\\3.9.7\… │ │ │ │ code = <code object <module> at 0x000002972A1E5C90, file │ │ │ │ "C:\Users\tyehuo\scoop\apps\pyenv\current\pyenv-win\versions\3.9.7\lib\site-… │ │ │ │ line 3> │ │ │ │ fname = 'C:\\Users\\tyehuo\\scoop\\apps\\pyenv\\current\\pyenv-win\\versions\\3.9.7\… │ │ │ │ init_globals = None │ │ │ │ loader = <_frozen_importlib_external.SourceFileLoader object at 0x0000029729AAD160> │ │ │ │ mod_name = '__main__' │ │ │ │ mod_spec = ModuleSpec(name='aktools.__main__', │ │ │ │ loader=<_frozen_importlib_external.SourceFileLoader object at │ │ │ │ 0x0000029729AAD160>, │ │ │ │ origin='C:\\Users\\tyehuo\\scoop\\apps\\pyenv\\current\\pyenv-win\\versions\… │ │ │ │ pkg_name = 'aktools' │ │ │ │ run_globals = { │ │ │ │ │ '__name__': '__main__', │ │ │ │ │ '__doc__': '\nDate: 2022/9/27 19:05\nDesc: CLI 执行入口文件\n运行 `pytho… │ │ │ │ -m aktools` 相当于运行 `python -m '+21, │ │ │ │ │ '__package__': 'aktools', │ │ │ │ │ '__loader__': <_frozen_importlib_external.SourceFileLoader object at │ │ │ │ 0x0000029729AAD160>, │ │ │ │ │ '__spec__': ModuleSpec(name='aktools.__main__', │ │ │ │ loader=<_frozen_importlib_external.SourceFileLoader object at │ │ │ │ 0x0000029729AAD160>, │ │ │ │ origin='C:\\Users\\tyehuo\\scoop\\apps\\pyenv\\current\\pyenv-win\\versions\… │ │ │ │ │ '__annotations__': {}, │ │ │ │ │ '__builtins__': <module 'builtins' (built-in)>, │ │ │ │ │ '__file__': │ │ │ │ 'C:\\Users\\tyehuo\\scoop\\apps\\pyenv\\current\\pyenv-win\\versions\\3.9.7\… │ │ │ │ │ '__cached__': │ │ │ │ 'C:\\Users\\tyehuo\\scoop\\apps\\pyenv\\current\\pyenv-win\\versions\\3.9.7\… │ │ │ │ │ 'cli': <module 'aktools.cli' from │ │ │ │ 'C:\\Users\\tyehuo\\scoop\\apps\\pyenv\\current\\pyenv-win\\versions\\3.9.7\… │ │ │ │ │ ... +2 │ │ │ │ } │ │ │ │ script_name = None │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\tyehuo\scoop\apps\pyenv\current\pyenv-win\versions\3.9.7\lib\site-packages\aktools\__ma │ │ in__.py:16 in <module> │ │ │ │ 13 │ │ 14 │ │ 15 if __name__ == "__main__": │ │ ❱ 16 │ main() │ │ 17 │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ __annotations__ = {} │ │ │ │ __builtins__ = <module 'builtins' (built-in)> │ │ │ │ __cached__ = 'C:\\Users\\tyehuo\\scoop\\apps\\pyenv\\current\\pyenv-win\\versions\\3.9… │ │ │ │ __doc__ = '\nDate: 2022/9/27 19:05\nDesc: CLI 执行入口文件\n运行 `python -m aktools… │ │ │ │ 相当于运行 `python -m '+21 │ │ │ │ __file__ = 'C:\\Users\\tyehuo\\scoop\\apps\\pyenv\\current\\pyenv-win\\versions\\3.9… │ │ │ │ __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x0000029729AAD160> │ │ │ │ __name__ = '__main__' │ │ │ │ __package__ = 'aktools' │ │ │ │ __spec__ = ModuleSpec(name='aktools.__main__', │ │ │ │ loader=<_frozen_importlib_external.SourceFileLoader object at │ │ │ │ 0x0000029729AAD160>, │ │ │ │ origin='C:\\Users\\tyehuo\\scoop\\apps\\pyenv\\current\\pyenv-win\\versio… │ │ │ │ __title__ = 'AKTools' │ │ │ │ cli = <module 'aktools.cli' from │ │ │ │ 'C:\\Users\\tyehuo\\scoop\\apps\\pyenv\\current\\pyenv-win\\versions\\3.9… │ │ │ │ main = <function main at 0x0000029729A6FF70> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ C:\Users\tyehuo\scoop\apps\pyenv\current\pyenv-win\versions\3.9.7\lib\site-packages\aktools\__ma │ │ in__.py:12 in main │ │ │ │ 9 │ │ 10 │ │ 11 def main(): │ │ ❱ 12 │ cli.app(prog_name=__title__) │ │ 13 │ │ 14 │ │ 15 if __name__ == "__main__": │ │ │ │ C:\Users\tyehuo\scoop\apps\pyenv\current\pyenv-win\versions\3.9.7\lib\site-packages\typer\main.p │ │ y:328 in __call__ │ │ │ │ C:\Users\tyehuo\scoop\apps\pyenv\current\pyenv-win\versions\3.9.7\lib\site-packages\typer\main.p │ │ y:311 in __call__ │ │ │ │ C:\Users\tyehuo\scoop\apps\pyenv\current\pyenv-win\versions\3.9.7\lib\site-packages\click\core.p │ │ y:829 in __call__ │ │ │ │ C:\Users\tyehuo\scoop\apps\pyenv\current\pyenv-win\versions\3.9.7\lib\site-packages\typer\core.p │ │ y:716 in main │ │ │ │ C:\Users\tyehuo\scoop\apps\pyenv\current\pyenv-win\versions\3.9.7\lib\site-packages\typer\core.p │ │ y:190 in _main │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ AttributeError: module 'click.utils' has no attribute '_expand_args'
我这边测试没有问题,可以创建一个虚拟环境测试下
from aktools.
同样的问题,在anaconda下建立的新的虚拟环境:Python 3.8.16
aktool版本:0.0.83
from aktools.
似乎存在一些不稳定运行的情况。有的虚拟环境可以正常进行python -m aktools
,有些不可以。
目前未发现原因。
from aktools.
Related Issues (20)
- Error: Got unexpected extra argument (3.11\Lib\site-packages\aktools) HOT 1
- Native library not available at /usr/local/lib/python3.10/site-packages/py_mini_racer/libmini_racer.glibc.so HOT 1
- 无法调用match_main_contract HOT 1
- 访问分析师详情接口失败 HOT 1
- 有人有公共的HTTP供调用嘛?
- ubuntu 上 python3 -m aktools 会有找不到python的错误. HOT 1
- 为什么 arm64 运行不了aktools呢? HOT 1
- 可以发布二进制包吗? HOT 1
- centos7 安装报错 HOT 2
- 使用淘股吧股票热度接口时候报错 HOT 1
- 使用个股新闻接口出错 HOT 1
- hurun_rank()接口报错,请帮忙修复 HOT 1
- 怎么能改造为符合openapi规范的schema文档呢?方便在GPTs中调用 HOT 1
- stock_news_em调用报错 HOT 3
- docker部署,已更新akshare到最新版,调用stock_bid_ask_em返回未找到该接口 HOT 2
- 接口报错 api/public/futures_zh_spot HOT 2
- 为什么不能使用ip:端口的方式访问 HOT 1
- Python 3.10.12 运行aktools 提示 No module named uvicorn HOT 1
- match_main_contract 调用报错 HOT 2
- 【咨询】请问接口会做缓存吗? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aktools.