opencivicdata / scrapers-us-municipal

Scrapers for US municipal governments.
MIT License
101 stars 67 forks source link

Metro: Interim post not created #361

Closed hancush closed 2 years ago

hancush commented 2 years ago
File "/usr/local/bin/pupa", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/site-packages/pupa/cli/__main__.py", line 68, in main
    subcommands[args.subcommand].handle(args, other)
  File "/usr/local/lib/python3.6/site-packages/pupa/cli/commands/update.py", line 278, in handle
    return self.do_handle(args, other, juris)
  File "/usr/local/lib/python3.6/site-packages/pupa/cli/commands/update.py", line 329, in do_handle
    report['import'] = self.do_import(juris, args)
  File "/usr/local/lib/python3.6/site-packages/pupa/cli/commands/update.py", line 216, in do_import
    report.update(membership_importer.import_directory(datadir))
  File "/usr/local/lib/python3.6/site-packages/pupa/importers/base.py", line 197, in import_directory
    return self.import_data(json_stream())
  File "/usr/local/lib/python3.6/site-packages/pupa/importers/base.py", line 234, in import_data
    obj_id, what = self.import_item(data)
  File "/usr/local/lib/python3.6/site-packages/pupa/importers/base.py", line 255, in import_item
    data = self.prepare_for_db(data)
  File "/usr/local/lib/python3.6/site-packages/pupa/importers/memberships.py", line 54, in prepare_for_db
    data['post_id'] = self.post_importer.resolve_json_id(data['post_id'])
  File "/usr/local/lib/python3.6/site-packages/pupa/importers/base.py", line 172, in resolve_json_id
    raise UnresolvedIdError(errmsg)
pupa.exceptions.UnresolvedIdError: cannot resolve pseudo id to Post: ~{"label": "District 7 Director (Interim), California Department of Transportation (Caltrans), Appointee of the Governor of California", "organization__classification": "legislature", "role": "Nonvoting Board Member"}