site upgrade from 3.0.20 to 4.0.2 fails with AttributeError: 'module' object has no attribute 'SubfieldBase'

23 views
Skip to first unread message

harish.va...@gmail.com

unread,
Jun 26, 2021, 3:03:54 AM6/26/21
to Review Board Community
Hi,

We were able to successfully have rb-site 4..0.2 installed.
# which rb-site
/usr/bin/rb-site

# rb-site --version
Review Board/rb-site 4.0.2
Python 2.7.5 (default, Nov 20 2015, 02:00:19) 
Installed to /usr/lib/python2.7/site-packages/ReviewBoard-4.0.2-py2.7.egg/reviewboard

But, when we are trying to upgrade the site using rb-site upgrade, from the current site version 3.0,20, we are getting the below error.
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/lib/python2.7/site-packages/ReviewBoard-4.0.2-py2.7.egg/reviewboard/notifications/models.py", line 8, in <module>
    from multiselectfield import MultiSelectField
  File "/usr/lib/python2.7/site-packages/multiselectfield/__init__.py", line 1, in <module>
    from multiselectfield.db.fields import MultiSelectField
  File "/usr/lib/python2.7/site-packages/multiselectfield/db/fields.py", line 135, in <module>
    MultiSelectField = add_metaclass(models.SubfieldBase)(MultiSelectField)
AttributeError: 'module' object has no attribute 'SubfieldBase'


Can anyone please help let know on how to address this.

Thanks.

Christian Hammond

unread,
Jun 27, 2021, 3:52:11 AM6/27/21
to revie...@googlegroups.com
Can you run:

    pip show django-multiselectfield 

And tel me what version it shows?

If it’s not 0.1.12, try upgrading it.

We’ll include a fix for this week’s release to ensure the right version is always installed.

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/e1ec02a7-0eaa-4b21-b759-b088a8a70634n%40googlegroups.com.
--
--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board

harish.va...@gmail.com

unread,
Jun 27, 2021, 7:32:02 AM6/27/21
to Review Board Community
Hi Christian,

Thanks for the inputs.
Yes, the version was the issue and upgrading it helped solve the issue.

Have a different issue starting the httpd server and will post it as a separate thread so that its easier to track.

Thanks.
Reply all
Reply to author
Forward
0 new messages