Readthedocs.org: AttributeError when running a build

Created on 1 Aug 2019  路  4Comments  路  Source: readthedocs/readthedocs.org

Steps to reproduce it

  1. checkout master
  2. remove the .db sqlite file
  3. run migrations
  4. create super user
  5. import a project manually
  6. trigger a build

Actual result

This error is shown in the logs:

Traceback (most recent call last):
  File "/home/humitos/rtfd/code/readthedocs.org/readthedocs/projects/tasks.py", line 296, in update_docs_task
    return step.run(version_pk, *args, **kwargs)
  File "/home/humitos/rtfd/code/readthedocs.org/readthedocs/projects/tasks.py", line 431, in run
    self.send_notifications(version_pk, build_pk)
  File "/home/humitos/rtfd/code/readthedocs.org/readthedocs/projects/tasks.py", line 1070, in send_notifications
    if self.version.type != EXTERNAL:
AttributeError: 'dict' object has no attribute 'type'

Expected behavior

No error.

Accepted Bug

Most helpful comment

@minrock you need to install the correct version of sqlite, see https://docs.readthedocs.io/en/stable/development/install.html#requirements

All 4 comments

We need to first run python manage.py loaddata test_data so that it sets the SLUMBER user and it will result in successful api calls :)

Hi, I just got the same error, but now when doing the python manage.py loaddata test_data I'm facing this error

django.db.utils.OperationalError: Problem installing fixtures: no such table: projects_project__old

@minrock you need to install the correct version of sqlite, see https://docs.readthedocs.io/en/stable/development/install.html#requirements

Thank you, didn't notice that

Was this page helpful?
0 / 5 - 0 ratings