683: global name 'ClientError' is not defined

demja*****@gmai***** (Google Code) (Is this you? Claim this profile.)
chipx86
chipx86
Dec. 28, 2008
What's the URL of the page containing the problem?


What steps will reproduce the problem?
1. Setup reviewboard(apache + mod_python)
2. Add repostory, make diff, add reviewrequest
3. Try to view diff

What is the expected output? What do you see instead?

global name 'ClientError' is not defined
Traceback (most recent call last):
  File "C:/Program Files/BitNami Redmine 
Stack\reviewboard\diffviewer\views.py", line 86, in view_diff
    files = get_diff_files(diffset, None, interdiffset, highlighting)
  File "C:\Program Files\BitNami Redmine 
Stack\reviewboard\diffviewer\diffutils.py", line 651, in get_diff_files
    enable_syntax_highlighting)
  File "C:\Program Files\BitNami Redmine 
Stack\reviewboard\diffviewer\diffutils.py", line 567, in generate_files
    lambda: get_chunks(filediff.diffset,
  File "C:\Program Files\BitNami Redmine 
Stack\reviewboard\djblets\util\misc.py", line 55, in cache_memoize
    data = lookup_callable()
  File "C:\Program Files\BitNami Redmine 
Stack\reviewboard\diffviewer\diffutils.py", line 570, in <lambda>
    enable_syntax_highlighting))
  File "C:\Program Files\BitNami Redmine 
Stack\reviewboard\diffviewer\diffutils.py", line 337, in get_chunks
    old = get_original_file(filediff)
  File "C:\Program Files\BitNami Redmine 
Stack\reviewboard\diffviewer\diffutils.py", line 244, in get_original_file
    data = cache_memoize(key, lambda: [fetch_file(file, revision)])[0]
  File "C:\Program Files\BitNami Redmine 
Stack\reviewboard\djblets\util\misc.py", line 55, in cache_memoize
    data = lookup_callable()
  File "C:\Program Files\BitNami Redmine 
Stack\reviewboard\diffviewer\diffutils.py", line 244, in <lambda>
    data = cache_memoize(key, lambda: [fetch_file(file, revision)])[0]
  File "C:\Program Files\BitNami Redmine 
Stack\reviewboard\diffviewer\diffutils.py", line 224, in fetch_file
    data = tool.get_file(file, revision)
  File "C:/Program Files/BitNami Redmine 
Stack\reviewboard\scmtools\svn.py", line 104, in get_file
    except ClientError, e:
NameError: global name 'ClientError' is not defined


What operating system are you using? What browser?

WindowsXP IE7
Please provide any additional information below.
chipx86
#1 chipx86
Though the error isn't very clear, this sounds like you don't really have pysvn
installed.

You can check by running the following on the command line:

python
>>> import pysvn
>>> pysvn.version

It should say something like: (1, 5, 2, 0)
  • +NeedInfo
  • +chipx86
david
#2 david
Closing out because the needed information wasn't provided. If this is still a
problem, please add a comment and we'll reopen the issue.
  • -NeedInfo
    +Incomplete
#3 dan.lu******@gmai***** (Google Code) (Is this you? Claim this profile.)
I have the same issue -- pysvn 1.6.0.975, python 2.5, svn 1.5.0
#4 henrike*******@gmai***** (Google Code) (Is this you? Claim this profile.)
I'm having the same problem with pysvn 1.7.0.1177 python 2.5 and svn 1.6.1 is any
workaround for this?

Thanks.
#5 pyt****@gmai***** (Google Code) (Is this you? Claim this profile.)
I had the same problem -- I had the server running (lighttpd+fcgi) before I installed
pysvn. Once pysvn installed, I started getting the ClientError exception. Restarting
the server solved the problem -- pysvn wasn't fully loading until then thus causing
the exception.
#6 shivak*******@gmai***** (Google Code) (Is this you? Claim this profile.)
I encounter the same problem.

I have the following:
1. Windows OS + apache
2. Python 2.5
3. svn 1.5.3
4. pysvn 1.6.2-1067
5. Review board 1.0.5.1

Repository is local (file:///<path>)
Created review request using post-review, review request got created but diff didn't
get uploaded with the below message
-----
>>> HTTP POSTing to http://localhost/reviews/api/json/reviewrequests/5/diff/new/:
{'basedir': '/dir1'}
Error uploading diff: One or more fields had errors (105)
-----

On attempting to upload the diff file via web-gui for the review requested that was
created with post-review, I get the error:
     global name 'ClientError' is not defined
#7 shivak*******@gmai***** (Google Code) (Is this you? Claim this profile.)
The error vanished on restarting the apache instance.

When it was encountered the review-board was setup freshly.