Micro-sheep / Micro-sheep/efinance

多股票获取报错

Open
#50 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4.1k
Forks
755
PR merge metrics
No merged PRs in 30d

Description

Processing => 300355: 1%|▏ | 69/4714 [00:15<13:53, 5.57it/s]Traceback (most recent call last):
File "/Users/zhanghui/Documents/Program/实时获取行情efinance-main/test.py", line 35, in
st = ef.stock.get_quote_history(code)
File "/Users/zhanghui/Documents/Program/实时获取行情efinance-main/efinance/stock/getter.py", line 246, in get_quote_history
fqt=fqt
File "/Users/zhanghui/Documents/Program/实时获取行情efinance-main/efinance/common/getter.py", line 207, in get_quote_history
Processing => 600091: 1%|▏ | 70/4714 [00:16<20:29, 3.78it/s] **kwargs)
File "/Users/zhanghui/Documents/Program/实时获取行情efinance-main/efinance/common/getter.py", line 140, in get_quote_history_multi
start(code)
File "/opt/anaconda3/lib/python3.7/site-packages/multitasking/__init__.py", line 119, in async_method
Processing => 300386: 2%|▏ | 71/4714 [00:16<19:00, 4.07it/s]
File "/opt/anaconda3/lib/python3.7/threading.py", line 852, in start
_start_new_thread(self._bootstrap, ())
RuntimeError: can't start new thread

这个是不是我电脑不行,所以停止了多线程?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the multi-stock call from test.py line 35 and reading the traceback path through efinance/stock/getter.py:246 and efinance/common/getter.py:207,140. Inspect how the multitasking and threading calls are used, then establish whether the failure is expected under this workload and what behavior should be considered done.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.