oauthlib installation error

22 views
Skip to first unread message

Adam Weremczuk

unread,
Jul 22, 2020, 1:33:15 PM7/22/20
to revie...@googlegroups.com
Hi all,

On Debian 10 "sudo pip install ReviewBoard" produces:

ERROR: django-oauth-toolkit 0.9.0 has requirement oauthlib==1.0.1, but you'll have oauthlib 3.1.0 which is incompatible.

but then appears to happily continue:

Installing collected packages: django-braces, Pillow, pillowfight, futures, django-pipeline, feedparser, publicsuffix, python-dateutil, pytz, Django, dnspython, Djblets, oauthlib, urllib3, certifi, chardet, idna, requests, requests-oauthlib, markdown, django-haystack, django-evolution, docutils, Whoosh, asana, PyYAML, rbintegrations, django-multiselectfield, django-oauth-toolkit, pycparser, cffi, pynacl, bcrypt, paramiko, python-memcached, django-cors-headers, mimeparse, Pygments, pymdown-extensions, ReviewBoard
Successfully installed Django-1.6.11 Djblets-1.0.13 Pillow-6.2.2 PyYAML-5.3.1 Pygments-2.5.2 ReviewBoard-3.0.18 Whoosh-2.7.4 asana-0.10.0 bcrypt-3.1.7 certifi-2020.6.20 cffi-1.14.0 chardet-3.0.4 django-braces-1.13.0 django-cors-headers-1.1.0 django-evolution-0.7.8 django-haystack-2.4.1 django-multiselectfield-0.1.12 django-oauth-toolkit-0.9.0 django-pipeline-1.6.14 dnspython-1.16.0 docutils-0.16 feedparser-5.2.1 futures-3.3.0 idna-2.10 markdown-2.6.11 mimeparse-0.1.3 oauthlib-3.1.0 paramiko-2.7.1 pillowfight-0.3 publicsuffix-1.1.1 pycparser-2.20 pymdown-extensions-3.5 pynacl-1.4.0 python-dateutil-2.8.1 python-memcached-1.59 pytz-2020.1 rbintegrations-1.0.1 requests-2.24.0 requests-oauthlib-1.0.0 urllib3-1.25.10

I didn't get this error when I ran in on Debian 9 a few months ago.

Do I have anything to worry about?

Thanks,
Adam

Christian Hammond

unread,
Jul 22, 2020, 3:27:45 PM7/22/20
to revie...@googlegroups.com
Hi Adam,

Hopefully not, but if so, you can force a downgrade of oauthlib to 1.0.1. I’ll look into what we might be able to do about this on our end.

If it is a problem, it will manifest as your Authentication Backends or repository type options being limited to a couple of hard-codes types. It’s not a great indicator, but the problem comes from deep in the Python packaging and registrations layers. We’re working toward improving this.

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/CALC-DAHTCZ7DyCsajEKVcUxWC9_HXgPNmcEFgZGb6exqh2OQuA%40mail.gmail.com.
--
--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board

Adam Weremczuk

unread,
Jul 23, 2020, 7:55:12 AM7/23/20
to revie...@googlegroups.com
Hi Christian,

FYI - without downgrading oauthlib installer reports issues:

sudo rb-site install /var/www/site.example.com

Unable to load SCMTool svn = reviewboard.scmtools.svn:SVNTool: (oauthlib 3.1.0 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('oauthlib==1.0.1'), set(['django-oauth-toolkit']))
Unable to load SCMTool git = reviewboard.scmtools.git:GitTool: (oauthlib 3.1.0 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('oauthlib==1.0.1'), set(['django-oauth-toolkit']))
Unable to load SCMTool bzr = reviewboard.scmtools.bzr:BZRTool: (oauthlib 3.1.0 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('oauthlib==1.0.1'), set(['django-oauth-toolkit']))
Unable to load SCMTool cvs = reviewboard.scmtools.cvs:CVSTool: (oauthlib 3.1.0 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('oauthlib==1.0.1'), set(['django-oauth-toolkit']))
Unable to load SCMTool perforce = reviewboard.scmtools.perforce:PerforceTool: (oauthlib 3.1.0 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('oauthlib==1.0.1'), set(['django-oauth-toolkit']))
Unable to load SCMTool plastic = reviewboard.scmtools.plastic:PlasticTool: (oauthlib 3.1.0 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('oauthlib==1.0.1'), set(['django-oauth-toolkit']))
Unable to load SCMTool clearcase = reviewboard.scmtools.clearcase:ClearCaseTool: (oauthlib 3.1.0 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('oauthlib==1.0.1'), set(['django-oauth-toolkit']))
Unable to load SCMTool hg = reviewboard.scmtools.hg:HgTool: (oauthlib 3.1.0 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('oauthlib==1.0.1'), set(['django-oauth-toolkit']))

We want git integration to work nicely so I'm going to take a step back and try downgrading oauthlib before rerunning.

I'm assuming it's enough to "sudo rm -fr /var/www/site.example.com" + recreate the database as everything the installer has done will be contained in these two places, right?

Regards,
Adam

Adam Weremczuk

unread,
Jul 23, 2020, 1:12:24 PM7/23/20
to revie...@googlegroups.com
For a fresh installation it's generally sufficient to run:
sudo pip install oauthlib==1.0.1
before running:

sudo pip install --proxy 192.168.8.1:3128 ReviewBoard

Christian Hammond

unread,
Jul 23, 2020, 4:33:57 PM7/23/20
to revie...@googlegroups.com
You can recreate the site directory, but another option is:

rb-site manage /path/to/sitedir registerscmtools

This will rerun the part that blew up, and if it doesn’t show errors, you’re in good shape.

Christian


Reply all
Reply to author
Forward
0 new messages