question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

doccano init Applying django_celery_results.0007_remove_taskresult_hidden...Traceback

See original GitHub issue

How to reproduce the problem

doccano init
Setup Database.
Operations to perform:
  Apply all migrations: admin, api, auth, authtoken, auto_labeling, contenttypes, data_export, data_import, django_celery_results, django_drf_filepond, examples, label_types, labels, projects, roles, sessions
Running migrations:
  Applying django_celery_results.0007_remove_taskresult_hidden...Traceback (most recent call last):
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py", line 357, in execute
    return Database.Cursor.execute(self, query, params)
sqlite3.OperationalError: error in index django_celery_results_taskresult_hidden_cd77412f after drop column: no such column: hidden

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/11121901/data/anaconda3/envs/Py38/bin/doccano", line 8, in <module>
    sys.exit(main())
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/backend/cli.py", line 160, in main
    args.handler(args)
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/backend/cli.py", line 75, in command_db_init
    management.call_command("migrate")
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/django/core/management/__init__.py", line 198, in call_command
    return command.execute(*args, **defaults)
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/django/core/management/base.py", line 448, in execute
    output = self.handle(*args, **options)
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/django/core/management/base.py", line 96, in wrapped
    res = handle_func(*args, **kwargs)
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 349, in handle
    post_migrate_state = executor.migrate(
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/django/db/migrations/executor.py", line 135, in migrate
    state = self._migrate_all_forwards(
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/django/db/migrations/executor.py", line 167, in _migrate_all_forwards
    state = self.apply_migration(
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/django/db/migrations/executor.py", line 252, in apply_migration
    state = migration.apply(state, schema_editor)
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/django/db/migrations/migration.py", line 130, in apply
    operation.database_forwards(
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/django/db/migrations/operations/fields.py", line 170, in database_forwards
    schema_editor.remove_field(
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/django/db/backends/sqlite3/schema.py", line 417, in remove_field
    super().remove_field(model, field)
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/django/db/backends/base/schema.py", line 720, in remove_field
    self.execute(sql)
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/django/db/backends/base/schema.py", line 199, in execute
    cursor.execute(sql, params)
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/django/db/backends/utils.py", line 67, in execute
    return self._execute_with_wrappers(
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/django/db/utils.py", line 91, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)
  File "/home/11121901/data/anaconda3/envs/Py38/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py", line 357, in execute
    return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: error in index django_celery_results_taskresult_hidden_cd77412f after drop column: no such column: hidden

Your Environment

  • Operating System: centos7
  • Python Version Used: python3.8+
  • When you install doccano: init
  • How did you install doccano (Heroku button etc): pip install doccano

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8

github_iconTop GitHub Comments

21reactions
cicijohn1983commented, Aug 9, 2022

I solve it, pip uninstall Django pip install Django==4.0.4

0reactions
JiehangXiecommented, Oct 11, 2022

Thank you very much!

------------------ 原始邮件 ------------------ 发件人: “doccano/doccano” @.>; 发送时间: 2022年8月9日(星期二) 下午2:30 @.>; @.@.>; 主题: Re: [doccano/doccano] doccano init Applying django_celery_results.0007_remove_taskresult_hidden…Traceback (Issue #1932)

I solve it, pip uninstall Django pip install Django==4.0.4

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error during `doccano init` · Issue #1792 - GitHub
I get an error when installing using pip with python 3.8 on windows. > doccano init Filepond app init: Creating temporary file upload...
Read more >
doccano - GitHub Pages
doccano is an open-source data labeling tool for machine learning practitioners. You can perform different types of labeling tasks with many data formats....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found