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

AttributeError when running a build #6024

Closed
humitos opened this issue Aug 1, 2019 · 4 comments
Closed

AttributeError when running a build #6024

humitos opened this issue Aug 1, 2019 · 4 comments
Labels
Accepted Accepted issue on our roadmap Bug A bug

Comments

@humitos
Copy link
Member

humitos commented Aug 1, 2019

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.

@humitos humitos added Accepted Accepted issue on our roadmap Bug A bug labels Aug 1, 2019
@saadmk11
Copy link
Member

saadmk11 commented Aug 1, 2019

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 :)

@saadmk11 saadmk11 closed this as completed Aug 1, 2019
@minrock
Copy link

minrock commented Aug 14, 2019

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

@stsewd
Copy link
Member

stsewd commented Aug 14, 2019

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

@minrock
Copy link

minrock commented Aug 14, 2019

Thank you, didn't notice that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted issue on our roadmap Bug A bug
Projects
None yet
Development

No branches or pull requests

4 participants