Re: post labeling: got it!
python2.7 before, python3.8.5 now. So yes, python, django AND postgres have moved considerably!
full traceback:
Traceback (most recent call last):
File “…/virtualenv/dj3/ea_opal/manage.py”, line 22, in
main()
File “…/virtualenv/dj3/ea_opal/manage.py”, line 18, in main
execute_from_command_line(sys.argv)
File “…/virtualenv/dj3/lib/python3.8/site-packages/django/core/management/init.py”, line 419, in execute_from_command_line
utility.execute()
File “…/virtualenv/dj3/lib/python3.8/site-packages/django/core/management/init.py”, line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “…/virtualenv/dj3/lib/python3.8/site-packages/django/core/management/base.py”, line 354, in run_from_argv
self.execute(*args, **cmd_options)
File “…/virtualenv/dj3/lib/python3.8/site-packages/django/core/management/base.py”, line 398, in execute
output = self.handle(*args, **options)
File “…/virtualenv/dj3/ea_opal/dailyIncid/management/commands/harvestSocrata.py”, line 603, in handle
harvest(startDate)
File “…/virtualenv/dj3/ea_opal/dailyIncid/management/commands/harvestSocrata.py”, line 576, in harvest
summRpt = mergeList(results,srcLbl,verboseFreq=‘chgSocDT’,rptAll=True) # verboseFreq=100,
File “…/virtualenv/dj3/ea_opal/dailyIncid/management/commands/harvestSocrata.py”, line 449, in mergeList
matchObjList = list(qs)
File “…/virtualenv/dj3/lib/python3.8/site-packages/django/db/models/query.py”, line 262, in len
self._fetch_all()
File “…/virtualenv/dj3/lib/python3.8/site-packages/django/db/models/query.py”, line 1324, in _fetch_all
self._result_cache = list(self._iterable_class(self))
File “…/virtualenv/dj3/lib/python3.8/site-packages/django/db/models/query.py”, line 51, in iter
results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
File “…/virtualenv/dj3/lib/python3.8/site-packages/django/db/models/sql/compiler.py”, line 1162, in execute_sql
sql, params = self.as_sql()
File “…/virtualenv/dj3/lib/python3.8/site-packages/django/db/models/sql/compiler.py”, line 513, in as_sql
extra_select, order_by, group_by = self.pre_sql_setup()
File “…/virtualenv/dj3/lib/python3.8/site-packages/django/db/models/sql/compiler.py”, line 55, in pre_sql_setup
self.setup_query()
File “…/virtualenv/dj3/lib/python3.8/site-packages/django/db/models/sql/compiler.py”, line 46, in setup_query
self.select, self.klass_info, self.annotation_col_map = self.get_select()
File “…/virtualenv/dj3/lib/python3.8/site-packages/django/db/models/sql/compiler.py”, line 267, in get_select
sql, params = col.select_format(self, sql, params)
File “…/virtualenv/dj3/lib/python3.8/site-packages/django/db/models/expressions.py”, line 388, in select_format
return self.output_field.select_format(compiler, sql, params)
File “…/virtualenv/dj3/lib/python3.8/site-packages/django/contrib/gis/db/models/fields.py”, line 280, in select_format
return compiler.connection.ops.select % sql, params
AttributeError: ‘DatabaseOperations’ object has no attribute ‘select’