Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python manage.py qinfo (error) #439

Open
ghost opened this issue May 12, 2020 · 1 comment
Open

python manage.py qinfo (error) #439

ghost opened this issue May 12, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented May 12, 2020

Traceback (most recent call last):
File "manage.py", line 21, in
main()
File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "/home/cosmo9able/bee_env/lib/python3.8/site-packages/django/core/management/init.py", line 401, in execute_from_command_line
utility.execute()
File "/home/cosmo9able/bee_env/lib/python3.8/site-packages/django/core/management/init.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/cosmo9able/bee_env/lib/python3.8/site-packages/django/core/management/base.py", line 328, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/cosmo9able/bee_env/lib/python3.8/site-packages/django/core/management/base.py", line 369, in execute
output = self.handle(*args, **options)
File "/home/cosmo9able/bee_env/lib/python3.8/site-packages/django_q/management/commands/qinfo.py", line 51, in handle
info()
File "/home/cosmo9able/bee_env/lib/python3.8/site-packages/django_q/monitor.py", line 200, in info
exec_time = last_tasks.aggregate(
File "/home/cosmo9able/bee_env/lib/python3.8/site-packages/django/db/models/query.py", line 384, in aggregate
return query.get_aggregation(self.db, kwargs)
File "/home/cosmo9able/bee_env/lib/python3.8/site-packages/django/db/models/sql/query.py", line 508, in get_aggregation
result = next(compiler.apply_converters((result,), converters))
File "/home/cosmo9able/bee_env/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1095, in apply_converters
value = converter(value, expression, connection)
File "/home/cosmo9able/bee_env/lib/python3.8/site-packages/django/db/backends/mysql/operations.py", line 265, in convert_datetimefield_value
value = timezone.make_aware(value, self.connection.timezone)
File "/home/cosmo9able/bee_env/lib/python3.8/site-packages/django/utils/timezone.py", line 270, in make_aware
return timezone.localize(value, is_dst=is_dst)
File "/home/cosmo9able/bee_env/lib/python3.8/site-packages/pytz/init.py", line 237, in localize
if dt.tzinfo is not None:
AttributeError: 'decimal.Decimal' object has no attribute 'tzinfo'

@zodman
Copy link

zodman commented Oct 18, 2020

duplicate #339

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant