Yuego / django-fias

Other
112 stars 70 forks source link

TypeError: 'plancode' is an invalid keyword argument for this function #70

Closed i7ionov closed 7 years ago

i7ionov commented 7 years ago

Ошибка при первичном импорте базы ФИАС, таблицы ADDROBJ.DBFT. выполняю с ключами --src /var/www/testsite/fias_dbf/ --i-know-what-i-do результат: T: addrobj. L: 0 | U: 0 | S: 0[E:0] | R: 0[0] FN: ADDROBJ.DBFTraceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/fias/importer/commands.py", line 68, in load_complete_data st = Status.objects.get(table=tbl) File "/usr/local/lib/python3.5/dist-packages/django/db/models/manager.py", line 122, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py", line 387, in get self.model._meta.object_name fias.models.version.DoesNotExist: Status matching query does not exist.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "./manage.py", line 22, in execute_from_command_line(sys.argv) File "/usr/local/lib/python3.5/dist-packages/django/core/management/init.py", line 353, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.5/dist-packages/django/core/management/init.py", line 345, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 348, in run_from_argv self.execute(*args, *cmd_options) File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 399, in execute output = self.handle(args, options) File "/usr/local/lib/python3.5/dist-packages/fias/management/commands/fias.py", line 133, in handle tempdir=tempdir, File "/usr/local/lib/python3.5/dist-packages/fias/importer/commands.py", line 89, in load_complete_data loader.load(tablelist=tablelist, table=table) File "/usr/local/lib/python3.5/dist-packages/fias/importer/loader.py", line 127, in load self.do_load(tablelist=tablelist, table=table) File "/usr/local/lib/python3.5/dist-packages/fias/importer/loader.py", line 135, in do_load for item in table.rows(tablelist=tablelist): File "/usr/local/lib/python3.5/dist-packages/dbfread/dbf.py", line 318, in _iter_records yield self.recfactory(items) File "/usr/local/lib/python3.5/dist-packages/fias/importer/table/dbf.py", line 43, in fast_recfactory return self.model(items_dict) File "/usr/local/lib/python3.5/dist-packages/django/db/models/base.py", line 451, in init raise TypeError("'%s' is an invalid keyword argument for this function" % list(kwargs)[0]) TypeError: 'plancode' is an invalid keyword argument for this function