jar3b / py-phias

Python application that can operate with FIAS
BSD 3-Clause "New" or "Revised" License
4 stars 0 forks source link

Ошибка при создании базы #11

Closed YuryevArt closed 2 years ago

YuryevArt commented 3 years ago

Помогите, что не так? C:\Users\Artem\python-fias\fias-api>py manage.py -b create -s http 2021-02-16 17:29:38,922 Prepare to create DB structure... 2021-02-16 17:29:39,022 Done. 2021-02-16 17:29:39,252 POST https://fias.nalog.ru/WebServices/Public/DownloadService.asmx 2021-02-16 17:29:39,515 b'\r\n<!DOCTYPE html>\r\n\r\n\r\n \r\n \r\n \r\n \r\n \xd0\xa4\xd0\xb5\xd0\xb4\xd0\xb5\xd1\x80\xd0\xb0\xd0\xbb\xd1\x8c\xd0\xbd\xd0\xb0\xd1\x8f \xd0\xb8\xd0\xbd\xd1\x84\xd0\xbe\xd1\x80\xd0\xbc\xd0\xb0\xd1\x86\xd0\xb8\xd0\xbe\xd0\xbd\xd0\xbd\xd0\xb0\xd1\x8f \xd0\xb0\xd0\xb4\xd1\x80\xd0\xb5\xd1\x81\xd0\xbd\xd0\xb0\xd1\x8f \xd1\x81\xd0\xb8\xd1\x81\xd1\x82\xd0\xb5\xd0\xbc\xd0\xb0\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n \r\n\r\n\r\n

\r\n \r\n
\r\n \r\n \r\n \r\n \r\n\r\n
\r\n

\xd0\x9f\xd0\xa0\xd0\x9e\xd0\x98\xd0\x97\xd0\x9e\xd0\xa8\xd0\x81\xd0\x9b \xd0\xa2\xd0\x95\xd0\xa5\xd0\x9d\xd0\x98\xd0\xa7\xd0\x95\xd0\xa1\xd0\x9a\xd0\x98\xd0\x99 \xd0\xa1\xd0\x91\xd0\x9e\xd0\x99. \xd0\x9f\xd0\x9e\xd0\x9f\xd0\xa0\xd0\x9e\xd0\x91\xd0\xa3\xd0\x99\xd0\xa2\xd0\x95 \xd0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\xd0\xbd\xd0\xbe\xd0\xbc\xd0\xb5\xd1\x80 \xd0\xb2\xd0\xbe\xd0\xb7\xd0\xbd\xd0\xb8\xd0\xba\xd1\x88\xd0\xb5\xd0\xb9 \xd0\xbe\xd1\x88\xd0\xb8\xd0\xb1\xd0\xba\xd0\xb8!\r\n

\r\n \r\n\r\n
\r\n\r\n
\r\n
\r\n \r\n\r\n\r\n' Traceback (most recent call last): File "C:\Users\Artem\python-fias\fias-api\manage.py", line 141, in main() File "C:\Users\Artem\python-fias\fias-api\manage.py", line 128, in main aoupdater.create(allowed_updates) File "C:\Users\Artem\python-fias\fias-api\aore\updater\updater.py", line 111, in create for update_entry in self.updalist_generator: File "C:\Users\Artem\python-fias\fias-api\manage.py", line 52, in get_allowed_updates all_versions = [x for x in imp.get_update_list()] File "C:\Users\Artem\python-fias\fias-api\manage.py", line 52, in all_versions = [x for x in imp.get_update_list()] File "C:\Users\Artem\python-fias\fias-api\aore\updater\soapreceiver.py", line 14, in get_update_list response = self.client.GetAllDownloadFileInfo() File "C:\Program Files\Python39\lib\site-packages\pysimplesoap\client.py", line 175, in return lambda *args, *kwargs: self.call(attr, args, **kwargs) File "C:\Program Files\Python39\lib\site-packages\pysimplesoap\client.py", line 257, in call response = SimpleXMLElement(self.xml_response, namespace=self.namespace, File "C:\Program Files\Python39\lib\site-packages\pysimplesoap\simplexml.py", line 56, in init self.__document = xml.dom.minidom.parseString(text) File "C:\Program Files\Python39\lib\xml\dom\minidom.py", line 1998, in parseString return expatbuilder.parseString(string) File "C:\Program Files\Python39\lib\xml\dom\expatbuilder.py", line 925, in parseString return builder.parseString(string) File "C:\Program Files\Python39\lib\xml\dom\expatbuilder.py", line 223, in parseString parser.Parse(string, True) xml.parsers.expat.ExpatError: mismatched tag: line 35, column 2

jar3b commented 2 years ago

Для новой версии неактуально, так как получение списка обновлений по SOAP больше не поддерживается ФНС и такая возможность убрана в обновленной версии.