pkg_resources.DistributionNotFound error while testing rbt

9 views
Skip to first unread message

Hema

unread,
Oct 9, 2019, 1:33:20 PM10/9/19
to Review Board Community
Downloaded rbtools 1.0.2 source code and tried testing it before installation. But I get the following error.

------------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "./rbtools/rbt", line 8, in <module>
    main.main()
  File "/users/hema/git/rbtools/rbtools/../rbtools/commands/main.py", line 127, in main
    ep = find_entry_point_for_command(command_name)
  File "/users/hema/git/rbtools/rbtools/../rbtools/commands/__init__.py", line 966, in find_entry_point_for_command
    command_name)
  File "/usr/software/pkgs/Python-2.7.12/lib/python2.7/site-packages/setuptools-40.6.2-py2.7.egg/pkg_resources/__init__.py", line 497, in get_entry_info

  File "/usr/software/pkgs/Python-2.7.12/lib/python2.7/site-packages/setuptools-40.6.2-py2.7.egg/pkg_resources/__init__.py", line 479, in get_distribution

  File "/usr/software/pkgs/Python-2.7.12/lib/python2.7/site-packages/setuptools-40.6.2-py2.7.egg/pkg_resources/__init__.py", line 355, in get_provider

  File "/usr/software/pkgs/Python-2.7.12/lib/python2.7/site-packages/setuptools-40.6.2-py2.7.egg/pkg_resources/__init__.py", line 898, in require

  File "/usr/software/pkgs/Python-2.7.12/lib/python2.7/site-packages/setuptools-40.6.2-py2.7.egg/pkg_resources/__init__.py", line 784, in resolve

pkg_resources.DistributionNotFound: The 'rbtools' distribution was not found and is required by the application
------------------------------------------------------------------------------------------------------------------------------------

Any help to resolve this error is appreciated.

Regards,
Hema.

Paul Mansfield

unread,
Oct 10, 2019, 6:07:27 AM10/10/19
to Review Board Community

IME, you're better off using pip to install it

check whether pip has it installed:
$ sudo pip list | grep -i rbt
RBTools           1.0.2     

then
$ sudo pip install RBTools


Christian Hammond

unread,
Oct 10, 2019, 6:15:32 PM10/10/19
to revie...@googlegroups.com
This is correct. You can't just run the script the way you're running it, as it's dependent on Python's package/entrypoint systems, requiring an installation. Pip will take care of this for you.

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/89d4ba12-5b41-47ea-b925-57e917366cf5%40googlegroups.com.


--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board
Reply all
Reply to author
Forward
0 new messages