RBTools – wrong library?

233 views
Skip to first unread message

spacekangaroo

unread,
Feb 27, 2017, 11:47:37 AM2/27/17
to reviewboard

Hello everybody,

 

I using Python 2.7 and have loaded RBTools-0.7.9.exe from https://www.reviewboard.org/downloads/rbtools/ … it’s using Python 2.7 too.


I’ve copied the folder Python27\Lib\site-packages\rbtools to my python site-packages folder …

 

By instantiate the client

from rbtools.api.client import RBClient

I get the following fault

 

File "C:\Python27\lib\site-packages\rbtools\api\client.py", line 3, in <module> from urllib.parse import urlparse

ImportError: No module named parse

 

It‘s true - in client.py line 3 the class urlparse should be imported

urllib.parse import urlparse

but they don’t exist at this place

 

I’ve changed

urllib.parse import urlparse

to

import urlparse

and now it’s working … and I get a fault in the next line

File "C:\Python27\lib\site-packages\rbtools\api\client.py", line 4, in <module> import SyncTransport
ImportError: No module named SyncTransport

 

What’s wrong with RBTools? Do I need something else?

Sure I make a beginner error - has someone a tip for me?

Thanks
Daniel

Christian Hammond

unread,
Feb 27, 2017, 1:57:35 PM2/27/17
to revie...@googlegroups.com
Hi Daniel,

The Python environment installed by the package is meant to be self-contained, and the Python modules within it can't be copied around. What you're seeing is a result of that.

If you'd like RBTools to be installed into an existing Python environment, then you'll need to install it using pip instead of the Windows installer:

    pip install -U RBTools

First, though, you'll need to remove the directories you copied ito site-packages.

Let me know if that helps or if you're still hitting problems.

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 "reviewboard" 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.
--
-- 
Christian Hammond
President/CEO of Beanbag
Makers of Review Board

spacekangaroo

unread,
Mar 1, 2017, 6:02:32 AM3/1/17
to reviewboard, chri...@beanbaginc.com
Thanks a lot Christian,

now it's working.

regards Daniel
Reply all
Reply to author
Forward
0 new messages