Closed josw123 closed 3 years ago
xbrl 파일 분석시 아래의 3개의 XSD 파일이 없음으로 인해 추가 오류 발생
Annual reports: 90% 9/10 [02:15<00:15, 15.01s/report] Not Found retrieving http://www.xbrl.or.kr/kr/fr/gaap/im/2008-12-31/kr-gaap-im-2008-12-31.xsd Not Found retrieving http://www.xbrl.or.kr/kr/fr/common/pte/2008-12-31/krfr-pte-2008-12-31.xsd Not Found retrieving http://www.xbrl.or.kr/kr/fr/common/fste/2008-12-31/krfr-fste-2008-12-31.xsd
AttributeError Traceback (most recent call last)
AttributeError Traceback (most recent call last)
유화증권에서 재무제표 추출시 발생하는 오류
Annual reports: 43%|████▎ | 9/21 [02:19<03:04, 15.37s/report]Not Found retrieving http://www.xbrl.or.kr/kr/fr/gaap/im/2008-12-31/kr-gaap-im-2008-12-31.xsd Not Found retrieving http://www.xbrl.or.kr/kr/fr/common/pte/2008-12-31/krfr-pte-2008-12-31.xsd Not Found retrieving http://www.xbrl.or.kr/kr/fr/common/fste/2008-12-31/krfr-fste-2008-12-31.xsd Annual reports: 43%|████▎ | 9/21 [02:23<03:10, 15.91s/report] Traceback (most recent call last): File "C:\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3418, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 1, in
fs = corp_data.extract_fs(bgn_de = begin_date, separate = True, lang = 'ko')
File "C:\Anaconda3\lib\site-packages\dart_fss\corp\corp.py", line 233, in extract_fs
return extract(self.corp_code, bgn_de, end_de, fs_tp, separate, report_tp, lang, separator, dataset)
File "C:\Anaconda3\lib\site-packages\dart_fss\fs\extract.py", line 1294, in extract
raise e
File "C:\Anaconda3\lib\site-packages\dart_fss\fs\extract.py", line 1267, in extract
dataset=dataset)
File "C:\Anaconda3\lib\site-packages\dart_fss\fs\extract.py", line 1138, in analyze_report
show_concept=True, separator=separator)
File "C:\Anaconda3\lib\site-packages\dart_fss\fs\extract.py", line 1029, in analyze_xbrl
statements[tp] = func_fs[tp]()
File "C:\Anaconda3\lib\site-packages\dart_fss\fs\extract.py", line 990, in get_fs
data = xbrl.get_financial_statement(separate=separate)
File "C:\Anaconda3\lib\site-packages\dart_fss\xbrl\dart_xbrl.py", line 274, in get_financial_statement
return self._get_statement('dart-gcd_StatementOfFinancialPosition', separate=separate)
File "C:\Anaconda3\lib\site-packages\dart_fss\xbrl\dart_xbrl.py", line 249, in _get_statement
table = self.get_table_by_code('d999007')
File "C:\Anaconda3\lib\site-packages\dart_fss\xbrl\dart_xbrl.py", line 74, in get_table_by_code
if str_compare(table.code, code):
File "C:\Anaconda3\lib\site-packages\dart_fss\utils\string.py", line 29, in str_compare
str1 = str1.strip().lower()
AttributeError: ("'NoneType' object has no attribute 'strip'", "An error occurred while fetching or analyzing {'rcp_no': '20120229000184', 'corp_code': '00145190', 'corp_name': '유화증권', 'stock_code': '003460', 'corp_cls': 'Y', 'report_nm': '[기재정정]사업보고서 (2011.03)', 'flr_nm': '유화증권', 'rcept_dt': '20120229', 'rm': ''}.")