Comments (12)
python3 -m pip install --upgrade flask==2.1.3 to fix it, now can work
from zvt.
pip install flask==2.1.3 werkzeug==2.0.1
这样就可以了,刚试了成功。
from zvt.
Would update all the related dep soon, would solve this problem.
from zvt.
python3 -m pip install --upgrade werkzeug==2.0.3
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting werkzeug==2.0.3
Downloading https://mirrors.aliyun.com/pypi/packages/f4/f3/22afbdb20cc4654b10c98043414a14057cd27fdba9d4ae61cea596000ba2/Werkzeug-2.0.3-py3-none-any.whl (289 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 289.2/289.2 kB 2.9 MB/s eta 0:00:00
Installing collected packages: werkzeug
Attempting uninstall: werkzeug
Found existing installation: Werkzeug 2.2.2
Uninstalling Werkzeug-2.2.2:
Successfully uninstalled Werkzeug-2.2.2
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
flask 2.2.2 requires Werkzeug>=2.2.2, but you have werkzeug 2.0.3 which is incompatible.
Successfully installed werkzeug-2.0.3
/mydev/zvt$ zvt
{'data_path': '/home/xinmans/zvt-home/data',
'log_path': '/home/xinmans/zvt-home/logs',
'tmp_path': '/home/xinmans/zvt-home/tmp',
'ui_path': '/home/xinmans/zvt-home/ui',
'zvt_home': '/home/xinmans/zvt-home'}
2022-10-22 20:28:14,404 INFO MainThread init config for zvt, current_config:{}
{}
2022-10-22 20:28:14,405 INFO MainThread current_config:{}
JoinquantIndexMoneyFlowRecorder:IndexMoneyFlow
{'password': '', 'token': '', 'username': ''}
JoinquantStockMoneyFlowRecorder:StockMoneyFlow
JoinquantHkHolderRecorder:HkHolder
JqChinaIndexKdataRecorder:IndexKdataCommon
JqChinaStockKdataRecorder:StockKdataCommon
JqChinaStockRecorder:Stock
JqChinaEtfRecorder:Etf
JqChinaStockEtfPortfolioRecorder:EtfStock
JqChinaFundRecorder:Fund
JqChinaFundStockRecorder:FundStock
StockTradeDayRecorder:StockTradeDay
MarginTradingRecorder:MarginTrading
JqChinaStockValuationRecorder:StockValuation
JqChinaEtfValuationRecorder:EtfValuation
MarginTradingSummaryRecorder:MarginTradingSummary
StockSummaryRecorder:StockSummary
CrossMarketSummaryRecorder:CrossMarketSummary
ExchangeIndexRecorder:Index
ExchangeIndexStockRecorder:IndexStock
ChinaETFListSpider:EtfStock
ExchangeStockMetaRecorder:Stock
ExchangeStockSummaryRecorder:StockSummary
EMStockKdataRecorder:StockKdataCommon
EMStockusKdataRecorder:StockusKdataCommon
EMStockhkKdataRecorder:StockhkKdataCommon
EMIndexKdataRecorder:IndexKdataCommon
EMIndexusKdataRecorder:IndexusKdataCommon
EMBlockKdataRecorder:BlockKdataCommon
EMFutureKdataRecorder:FutureKdataCommon
EMCurrencyKdataRecorder:CurrencyKdataCommon
EMIndexRecorder:Index
EMStockusRecorder:Stockus
EMCurrencyRecorder:Currency
EMStockhkRecorder:Stockhk
EMBlockRecorder:Block
EMFutureRecorder:Future
EMIndexusRecorder:Indexus
EMStockRecorder:Stock
EMTreasuryYieldRecorder:TreasuryYield
EMStockNewsRecorder:StockNews
EMDragonAndTigerRecorder:DragonAndTiger
EMStockTopTenFreeRecorder:StockTopTenFreeHolder
EMStockActorSummaryRecorder:StockActorSummary
EMStockTopTenRecorder:StockTopTenHolder
EMStockIIRecorder:StockInstitutionalInvestorHolder
WBCountryRecorder:Country
WBEconomyRecorder:Economy
EastmoneyBlockRecorder:Block
EastmoneyBlockStockRecorder:BlockStock
EastmoneyStockRecorder:Stock
EastmoneyStockDetailRecorder:StockDetail
TopTenHolderRecorder:TopTenHolder
TopTenTradableHolderRecorder:TopTenTradableHolder
EastmoneyActorRecorder:ActorMeta
ChinaStockFinanceFactorRecorder:FinanceFactor
ChinaStockIncomeStatementRecorder:IncomeStatement
ChinaStockBalanceSheetRecorder:BalanceSheet
ChinaStockCashFlowRecorder:CashFlowStatement
DividendDetailRecorder:DividendDetail
DividendFinancingRecorder:DividendFinancing
RightsIssueDetailRecorder:RightsIssueDetail
SPODetailRecorder:SpoDetail
ManagerTradingRecorder:ManagerTrading
HolderTradingRecorder:HolderTrading
ChinaETFDayKdataRecorder:Etf1dKdata
ChinaIndexDayKdataRecorder:Index1dKdata
SinaBlockMoneyFlowRecorder:BlockMoneyFlow
SinaStockMoneyFlowRecorder:StockMoneyFlow
SinaBlockRecorder:Block
SinaChinaBlockStockRecorder:BlockStock
Traceback (most recent call last):
File "/home/xinmans/.local/bin/zvt", line 5, in
from zvt.main import main
File "/home/xinmans/.local/lib/python3.8/site-packages/zvt/main.py", line 1, in
import dash_bootstrap_components as dbc
File "/home/xinmans/.local/lib/python3.8/site-packages/dash_bootstrap_components/init.py", line 6, in
from . import _components
File "/home/xinmans/.local/lib/python3.8/site-packages/dash_bootstrap_components/_components/init.py", line 1, in
from .Alert import Alert
File "/home/xinmans/.local/lib/python3.8/site-packages/dash_bootstrap_components/_components/Alert.py", line 3, in
from dash.development.base_component import Component, _explicitize_args
File "/home/xinmans/.local/lib/python3.8/site-packages/dash/init.py", line 1, in
from .dash import Dash, no_update # noqa: F401
File "/home/xinmans/.local/lib/python3.8/site-packages/dash/dash.py", line 20, in
import flask
File "/home/xinmans/.local/lib/python3.8/site-packages/flask/init.py", line 4, in
from . import json as json
File "/home/xinmans/.local/lib/python3.8/site-packages/flask/json/init.py", line 8, in
from ..globals import current_app
File "/home/xinmans/.local/lib/python3.8/site-packages/flask/globals.py", line 56, in
app_ctx: "AppContext" = LocalProxy( # type: ignore[assignment]
TypeError: init() got an unexpected keyword argument 'unbound_message'
from zvt.
@xinmans thank you, I had the same issue and your comments helped me to solve it.
from zvt.
@IamBusy please use python 3.8
from zvt.
python3 -V
Python 3.8.10 also have same problem
from zvt.
any docker image can be used
from zvt.
SinaBlockRecorder:Block
SinaChinaBlockStockRecorder:BlockStock
Traceback (most recent call last):
File "/usr/local/bin/zvt", line 5, in
from zvt.main import main
File "/usr/local/lib/python3.8/site-packages/zvt/main.py", line 1, in
import dash_bootstrap_components as dbc
File "/usr/local/lib/python3.8/site-packages/dash_bootstrap_components/init.py", line 6, in
from . import _components
File "/usr/local/lib/python3.8/site-packages/dash_bootstrap_components/_components/init.py", line 1, in
from .Alert import Alert
File "/usr/local/lib/python3.8/site-packages/dash_bootstrap_components/_components/Alert.py", line 3, in
from dash.development.base_component import Component, _explicitize_args
File "/usr/local/lib/python3.8/site-packages/dash/init.py", line 1, in
from .dash import Dash, no_update # noqa: F401
File "/usr/local/lib/python3.8/site-packages/dash/dash.py", line 22, in
from werkzeug.debug.tbtools import get_current_traceback
ImportError: cannot import name 'get_current_traceback' from 'werkzeug.debug.tbtools' (/usr/local/lib/python3.8/site-packages/werkzeug/debug/tbtools.py)
from zvt.
@IamBusy @xinmans I have met the same problem in Python 3.8 and solved it by:
pip uninstall werkzeug
pip install -v https://github.com/pallets/werkzeug/archive/refs/tags/2.0.1.tar.gz
Solution from https://stackoverflow.com/questions/71654590/dash-importerror-cannot-import-name-get-current-traceback-from-werkzeug-debu.
from zvt.
@IamBusy @xinmans I have met the same problem in Python 3.8 and solved it by:
pip uninstall werkzeug pip install -v https://github.com/pallets/werkzeug/archive/refs/tags/2.0.1.tar.gzSolution from https://stackoverflow.com/questions/71654590/dash-importerror-cannot-import-name-get-current-traceback-from-werkzeug-debu.
Traceback (most recent call last):
File "/usr/local/bin/zvt", line 5, in
from zvt.main import main
File "/usr/local/lib/python3.8/site-packages/zvt/main.py", line 1, in
import dash_bootstrap_components as dbc
File "/usr/local/lib/python3.8/site-packages/dash_bootstrap_components/init.py", line 6, in
from . import _components
File "/usr/local/lib/python3.8/site-packages/dash_bootstrap_components/_components/init.py", line 1, in
from .Alert import Alert
File "/usr/local/lib/python3.8/site-packages/dash_bootstrap_components/_components/Alert.py", line 3, in
from dash.development.base_component import Component, _explicitize_args
File "/usr/local/lib/python3.8/site-packages/dash/init.py", line 1, in
from .dash import Dash, no_update # noqa: F401
File "/usr/local/lib/python3.8/site-packages/dash/dash.py", line 20, in
import flask
File "/usr/local/lib/python3.8/site-packages/flask/init.py", line 4, in
from . import json as json
File "/usr/local/lib/python3.8/site-packages/flask/json/init.py", line 8, in
from ..globals import current_app
File "/usr/local/lib/python3.8/site-packages/flask/globals.py", line 56, in
app_ctx: "AppContext" = LocalProxy( # type: ignore[assignment]
from zvt.
3.7 3.8 3.10都启动不了
from zvt.
Related Issues (20)
- 更新到最新运行Stock1dKdata.record_data更新出错了 HOT 1
- 下载了历史数据替换后,更新数据报错 HOT 3
- ETF详细数据
- 所有的交易测试都会报一个数据为空的错误,examples和tests里的都是这样
- 增加获取数据的API,类似record_data HOT 2
- 东财的行情数据获取有bug HOT 1
- cannot start project
- 更新板块数据时会报错 HOT 4
- 可以更新几个trader的example吗 HOT 1
- NameError: name 'get_finance_factor' is not defined HOT 1
- 东财数据无法获取 HOT 4
- 请教一下如何自己更新数据? HOT 1
- 执行财务因子相关报错 HOT 1
- 有没有docker版本? HOT 1
- 请教 如何接入tushare的数据?
- QMT provider and Broker still can't work HOT 3
- ImportError: cannot import name 'html' from 'dash' HOT 1
- 哪位热心人士提供一份可以运行环境的PIP LIST? HOT 2
- MacBook Pro M3安装出错 HOT 2
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 zvt.