Exception has occurred: ImportError
cannot import name 'HTMLParseError' from 'html.parser' (/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/html/parser.py)
File "/Users/asantoshkumar/Desktop/untitled folder/<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/Users/asantoshkumar/Desktop/untitled folder/<frozen importlib._bootstrap_external>", line 728, in exec_module
File "/Users/asantoshkumar/Desktop/untitled folder/<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "/Users/asantoshkumar/Desktop/untitled folder/<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "/Users/asantoshkumar/Desktop/untitled folder/<frozen importlib._bootstrap>", line 983, in _find_and_load
File "/Users/asantoshkumar/Desktop/untitled folder/<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/Users/asantoshkumar/Desktop/untitled folder/<frozen importlib._bootstrap>", line 1043, in _handle_fromlist
Я получаю ошибку выше при выполнении приведенных ниже строк кода. Я установил все необходимые файлы согласно документации NSEpy. Пожалуйста, помогите.
Код:
from nsepy import get_history
from datetime import date
sbin = get_history(symbol="SBIN", start=date(2017,1,1), end=date(2019,1,11))
#data[['Close']].plot()
print(sbin)
Я установил NSEpy и все необходимые модули с помощью команды установки pip3. Я использую Mac.
from nsepy import get_history
from datetime import date
sbin = get_history(symbol="SBIN", start=date(2017,1,1), end=date(2019,1,11))
#data[['Close']].plot() print(sbin)