Issue installing reviewbot-worker on latest RB

78 views
Skip to first unread message

MoonWalker

unread,
Mar 7, 2018, 7:35:08 PM3/7/18
to Review Board Community
I am in the process to install/configure review bot. I tried to install reviewbot-worker, but I got the following error  

raise ValueError("Expected "+item_name+" in",line,"at",line[p:])
ValueError: ('Expected version spec in', 'flake8 ~=2.6.0', 'at', ' ~=2.6.0')

I using flake8 3.5.0, do I need to downgrade :-( ?


David Trowbridge

unread,
Mar 7, 2018, 8:04:29 PM3/7/18
to revie...@googlegroups.com
Can you show us more detail about how you're installing it, and more context for that error?

reviewbot-worker requires flake8>=3.3.0

-David

--
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.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted
Message has been deleted
Message has been deleted

MoonWalker

unread,
Mar 12, 2018, 6:28:39 PM3/12/18
to Review Board Community
David,

The following  logs shows the set of commands and errors after trying to install the reviewbot-worker extension:

I attached the pip.log file to this post.


root@reviewboard:/etc/apache2/sites-available# sudo pip uninstall ReviewBot
Cannot uninstall requirement ReviewBot, not installed
Storing debug log for failure in /root/.pip/pip.log
root@reviewboard:/etc/apache2/sites-available# sudo pip install reviewbot-worker
Downloading/unpacking reviewbot-worker
  Downloading reviewbot_worker-1.0-py2-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): pycodestyle>=2.3.1 in /usr/local/lib/python2.7/dist-packages (from reviewbot-worker)
Downloading/unpacking buildbot>=0.8.7 (from reviewbot-worker)
  Downloading buildbot-1.1.0-py2.py3-none-any.whl (791kB): 791kB downloaded
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1266, in prepare_files
    req_to_install.extras):
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2291, in requires
    dm = self._dep_map
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2484, in _dep_map
    self.__dep_map = self._compute_dependencies()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2508, in _compute_dependencies
    parsed = next(parse_requirements(distvers))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 45, in <lambda>
    next = lambda o: o.next()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2605, in parse_requirements
    line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version spec")
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2573, in scan_list
    raise ValueError("Expected "+item_name+" in",line,"at",line[p:])
ValueError: ('Expected version spec in', 'flake8 ~=2.6.0', 'at', ' ~=2.6.0')

Storing debug log for failure in /root/.pip/pip.log
pip.log

David Trowbridge

unread,
Mar 12, 2018, 6:42:52 PM3/12/18
to revie...@googlegroups.com
It looks like you may need to upgrade pip and/or setuptools on your system.


-David

MoonWalker

unread,
Mar 12, 2018, 7:21:33 PM3/12/18
to Review Board Community
David,
You were 100% right by updating pip to the latest one I was able to install the extension. 

The only Warring that I have is the following. Not sure if is trivial or not:
Found existing installation: six 1.5.2
    DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
    Uninstalling six-1.5.2:
      Successfully uninstalled six-1.5.2

MoonWalker

unread,
Mar 12, 2018, 7:33:08 PM3/12/18
to Review Board Community
David,

After installing both extensions, I tried to configure the Bot on RB, but some how I endup with a Blank configuration window. Please take a look at the attachment. Beside the previous warning that I post on previous post, I did not noticed any other issue.


On Tuesday, March 13, 2018 at 9:42:52 AM UTC+11, David Trowbridge wrote:
Capture.PNG

David Trowbridge

unread,
Mar 12, 2018, 7:46:58 PM3/12/18
to revie...@googlegroups.com
Is there anything in the Review Board log file or the browser's debug console?

-David

MoonWalker

unread,
Mar 12, 2018, 8:09:34 PM3/12/18
to Review Board Community
I have DEBUG = True on settings_local.py and on RB ->  Logging Settings -> Log Level -> DEBUG and the only info that I got from the reviewboard.log is:

2018-03-13 00:00:29,314 - DEBUG -  - root - Logging to /var/www/reviewboard/logs/reviewboard.log with a minimum level of DEBUG
2018-03-13 00:00:54,877 - DEBUG -  - root - Logging to /var/www/reviewboard/logs/reviewboard.log with a minimum level of DEBUG
2018-03-13 00:02:36,652 - INFO -  - root - Reloading logging settings
2018-03-13 00:02:36,652 - DEBUG -  - root - Logging to /var/www/reviewboard/logs/reviewboard.log with a minimum level of DEBUG
2018-03-13 00:03:31,121 - INFO -  - root - Reloading logging settings
2018-03-13 00:03:31,122 - DEBUG -  - root - Logging to /var/www/reviewboard/logs/reviewboard.log with a minimum level of DEBUG

Not sure how to increase the DEBUG level. BTW I configure RB to use https only. I do not noticed anything else on the browser. I tried both Firefox and Chrome latest versions on Windows 7 x 86
Message has been deleted

MoonWalker

unread,
Mar 12, 2018, 8:20:48 PM3/12/18
to Review Board Community
David, My mistake I found something on the browser side. I attached the logs to this post.
Capture.PNG

David Trowbridge

unread,
Mar 12, 2018, 8:23:17 PM3/12/18
to revie...@googlegroups.com
It looks like it can't find the extension static media. I'd try disabling/re-enabling the extension (watch the server logs while doing this to make sure there aren't any permissions problems), and possibly also restarting the webserver.

-David

MoonWalker

unread,
Mar 12, 2018, 8:42:10 PM3/12/18
to Review Board Community
I enable/disable the extension without restarting the server and reviewboard.log does not show anything else beside: 2018-03-13 00:38:57,717 - DEBUG -  - root - Logging to /var/www/reviewboard/logs/reviewboard.log with a minimum level of DEBUG

I enable/disable the extension and restart the server each time, same results no logs on reviewboard.log :-/.

MoonWalker

unread,
Mar 13, 2018, 11:00:09 PM3/13/18
to Review Board Community
Anything else that I shall try?

David Trowbridge

unread,
Mar 13, 2018, 11:03:03 PM3/13/18
to revie...@googlegroups.com
Just to check, can you run pip list and send the output?
On Tue, Mar 13, 2018 at 8:00 PM MoonWalker <daniel.c...@gmail.com> wrote:
Anything else that I shall try?

MoonWalker

unread,
Mar 14, 2018, 5:20:17 PM3/14/18
to Review Board Community
David,

I attached the logs to this post. I included the pip version at the bottom of this message.

root@rb:~# pip --version
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)
piplist.log

MoonWalker

unread,
Mar 14, 2018, 5:25:50 PM3/14/18
to Review Board Community
David,

Not sure if this is related or not, but I noticed this error, several times when I open a  review. Please take a look at the file attached.

Cheers
RBissue.PNG

David Trowbridge

unread,
Mar 14, 2018, 5:34:54 PM3/14/18
to revie...@googlegroups.com
That's just normal stuff from the API. The real problem is that extension static media (CSS & JS) either isn't being unpacked correctly when you're enabling the extension, or isn't being served correctly by the webserver.

Can you check the contents of <site_dir>/htdocs/static/ext/ and see if there's a reviewbotext.extension.ReviewBotExtension directory? If so, what's in there?

-David

MoonWalker

unread,
Mar 14, 2018, 6:26:52 PM3/14/18
to Review Board Community
hi David,

The extension is not there :-/. I uninstall it an reinstall it. Please take a look at the logs attached to this post.

Cheers
rbworker-ext.log

David Trowbridge

unread,
Mar 14, 2018, 6:34:57 PM3/14/18
to revie...@googlegroups.com
The files there should get created when you enable the extension in the review board admin, not when installing the Python package.

-David

MoonWalker

unread,
Mar 14, 2018, 6:46:01 PM3/14/18
to Review Board Community
The extension has been enabled, and no change at all. there isn't any reference to that extension on that path :-/

MoonWalker

unread,
Mar 15, 2018, 8:14:07 PM3/15/18
to Review Board Community
David,

Not sure what else to try 😞

David Trowbridge

unread,
Mar 15, 2018, 8:37:09 PM3/15/18
to revie...@googlegroups.com
As I suggested, disable and enable the extension while keeping an eye on the log files. And double check the permissions on the directory to verify that the web server can write to it.
On Thu, Mar 15, 2018 at 5:14 PM MoonWalker <daniel.c...@gmail.com> wrote:
David,

Not sure what else to try 😞

Daniel CABRERA

unread,
Mar 15, 2018, 8:38:22 PM3/15/18
to revie...@googlegroups.com
I have done all that already, with same results:-(

You received this message because you are subscribed to a topic in the Google Groups "Review Board Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/reviewboard/VIwOcAmKC-k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to reviewboard...@googlegroups.com.

David Trowbridge

unread,
Mar 15, 2018, 9:34:39 PM3/15/18
to revie...@googlegroups.com
There’s obviously a misconfiguration somewhere, but I really don’t have time now to dig through the code via email. I think you’ll need to add some additional logging to the djblets extension media unpacking to figure out what’s wrong.

-David
Reply all
Reply to author
Forward
0 new messages