RB 4.0.1 Error while importing extension's admin URLconf

47 views
Skip to first unread message

tw bert

unread,
May 26, 2021, 4:54:23 PM5/26/21
to Review Board Community

When rebuilding Whoosh indexes, we get:

root@srv-flux-dev-01:/# sudo -u www-data rb-site manage /var/www/FOO.BAR.com rebuild_index
ERROR:djblets.extensions.manager:Error initializing extension rbcommenttype.extension.CommentTypeExtension: Error setting up administration URLs: Error while importing extension's admin URLconf u'rbcommenttype.admin_urls': cannot import name patterns
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/djblets/extensions/manager.py", line 902, in _init_extension
    self._store_load_error(ext_class.id, e))
EnablingExtensionError: Error setting up administration URLs: Error while importing extension's admin URLconf u'rbcommenttype.admin_urls': cannot import name patterns
WARNING: This will irreparably remove EVERYTHING from your search index in connection 'default'.
Your choices after this are to restore from backups or rebuild via the `rebuild_index` command.
Are you sure you wish to continue? [y/N] y
Removing all documents from your index because you said so.
All documents removed.
Indexing 13 users
Indexing 88 Review Requests

The result seems fine, whoosh is working after indexing.
So we don't know if it causes issues, but reporting anyway.

Cheers, TW




Christian Hammond

unread,
May 26, 2021, 7:32:46 PM5/26/21
to revie...@googlegroups.com
Hi TW,

We'll need to update rbcommenttype for 4.0/Django 1.11. We'll look at that soon and I'll try to remember to respond to this thread when it's out.

Christian

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/5d269a37-b719-44b0-987b-15ea773db294n%40googlegroups.com.


--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board

tw bert

unread,
May 28, 2021, 2:50:18 AM5/28/21
to Review Board Community
Thanks Christian.
FYI: The error also occurs (and is shown on screen in the browser) at  http://myhost/admin/extensions/  , when:
Comment Categorization 1.0.1
Beanbag, Inc.
is enabled.
ImproperlyConfigured: Error while importing extension's admin URLconf u'rbcommenttype.admin_urls': cannot import name patterns  

daniel.ke...@gmail.com

unread,
Jul 5, 2021, 7:46:37 PM7/5/21
to Review Board Community
Just wanted to add that the issue is also present with the rbmotd extension although updates were applied for reviewboard 4.x support.
 
2021年5月28日金曜日 15:50:18 UTC+9 tw.be...@gmail.com:

Christian Hammond

unread,
Jul 7, 2021, 5:14:38 PM7/7/21
to revie...@googlegroups.com
Thanks for the reminder.

We've just released the new rbmotd (2.0), and are working on rbcommenttype. With all the work trying to get 4.0 ready (and a lot of work that's been a priority since), these extensions didn't end up getting a release. We'll be addressing that over the coming week.

Christian

Reply all
Reply to author
Forward
0 new messages