Re: Issue 3729 in reviewboard: Cannot run rbt post in RBTools 0.7.0

2015-05-24 Thread reviewboard


Comment #23 on issue 3729 by jyx140...@gmail.com: Cannot run rbt post in  
RBTools 0.7.0

https://code.google.com/p/reviewboard/issues/detail?id=3729

$ rbt post -g --debug

RBTools 0.7.2
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit  
(Intel)]

Running on Windows-7-6.1.7601-SP1
Home = C:\Users\jiayinxi\AppData\Roaming
Current directory = d:\gitlab\comptest\testagent-wrap
Checking for a Subversion repository...
Unable to execute "svn help": skipping SVN
Checking for a Git repository...
Running: git rev-parse --git-dir
Running: git config core.bare
Running: git rev-parse --show-toplevel
Running: git symbolic-ref -q HEAD
Running: git config --get branch.master.merge
Running: git config --get branch.master.remote
Running: git config --get remote.origin.url
repository info: Path:  
g...@gitlab.testbird.io:comptest/testagent-wrap.git, Base path: ,  
Supports changesets: False

Running: git config --get reviewboard.url
Making HTTP GET request to http://reviewboard.testbird.io/api/
Running: git rev-parse refs/heads/master
Running: git merge-base a4eba8ce40cd4795c19e6bec6daf432bff7936a6  
origin/master

Running: git rev-parse df81c67a1249ca48dc6634440a1b5b7d411a104c
Running: git status --porcelain --untracked-files=no
Running: git rev-parse --git-dir
Running: git -c core.quotepath=false -c diff.noprefix=false diff  
--no-color --full-index --ignore-submodules -M --no-ext-diff  
df81c67a1249ca48dc6634440a1b5b7d411a104c..a4eba8ce40cd4795c19e6bec6daf432bff7936a6
Running: git log --reverse --pretty=format:%s%n%n%b  
^df81c67a1249ca48dc6634440a1b5b7d411a104c  
a4eba8ce40cd4795c19e6bec6daf432bff7936a6
Making HTTP GET request to  
http://reviewboard.testbird.io/api/review-requests/?only-links=create&only-fields=
Making HTTP POST request to  
http://reviewboard.testbird.io/api/review-requests/
Making HTTP GET request to  
http://reviewboard.testbird.io/api/review-requests/566/diffs/?only-fields=
Making HTTP POST request to  
http://reviewboard.testbird.io/api/review-requests/566/diffs/

Traceback (most recent call last):
  File "c:/Program Files  
(x86)/RBTools/bin/../Python27/Scripts/rbt-script.py", line 8, in 

load_entry_point('RBTools==0.7.2', 'console_scripts', 'rbt')()
  File "c:\Program Files  
(x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-py2.7.egg\rbtools\commands\main.py",  
line 133, in main

command.run_from_argv([RB_MAIN, command_name] + args)
  File "c:\Program Files  
(x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-py2.7.egg\rbtools\commands\__init__.py",  
line 555, in run_from_argv

exit_code = self.main(*args) or 0
  File "c:\Program Files  
(x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-py2.7.egg\rbtools\commands\post.py",  
line 745, in main

base_dir=base_dir)
  File "c:\Program Files  
(x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-py2.7.egg\rbtools\commands\post.py",  
line 434, in post_request

diff_content, **diff_kwargs)
  File "c:\Program Files  
(x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-py2.7.egg\rbtools\api\decorators.py",  
line 27, in request_method

*args, **kwargs)
  File "c:\Program Files  
(x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-py2.7.egg\rbtools\api\transport\sync.py",  
line 65, in execute_request_method

return self._execute_request(request)
  File "c:\Program Files  
(x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-py2.7.egg\rbtools\api\transport\sync.py",  
line 74, in _execute_request

rsp = self.server.make_request(request)
  File "c:\Program Files  
(x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-py2.7.egg\rbtools\api\request.py",  
line 521, in make_request

content_type, body = request.encode_multipart_formdata()
  File "c:\Program Files  
(x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-py2.7.egg\rbtools\api\request.py",  
line 110, in encode_multipart_formdata

mime_type = mimetypes.guess_type(filename)[0]
  File "c:\Program Files (x86)\RBTools\Python27\lib\mimetypes.py", line  
297, in guess_type

init()
  File "c:\Program Files (x86)\RBTools\Python27\lib\mimetypes.py", line  
358, in init

db.read_windows_registry()
  File "c:\Program Files (x86)\RBTools\Python27\lib\mimetypes.py", line  
258, in read_windows_registry

for subkeyname in enum_types(hkcr):
  File "c:\Program Files (x86)\RBTools\Python27\lib\mimetypes.py", line  
249, in enum_types

ctype = ctype.encode(default_encoding) # omit in 3.x!
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 1:  
ordinal not in range(128)


--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@g

Re: Issue 3729 in reviewboard: Cannot run rbt post in RBTools 0.7.0

2015-05-24 Thread reviewboard


Comment #22 on issue 3729 by jyx140...@gmail.com: Cannot run rbt post in  
RBTools 0.7.0

https://code.google.com/p/reviewboard/issues/detail?id=3729


RBTools 0.7.2
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit  
(Intel)]

Running on Windows-7-6.1.7601-SP1
Home = C:\Users\jiayinxi\AppData\Roaming
Current directory = d:\gitlab\comptest\testagent-wrap
Checking for a Subversion repository...
Unable to execute "svn help": skipping SVN
Checking for a Git repository...
Running: git rev-parse --git-dir
Running: git config core.bare
Running: git rev-parse --show-toplevel
Running: git symbolic-ref -q HEAD
Running: git config --get branch.master.merge
Running: git config --get branch.master.remote
Running: git config --get remote.origin.url
repository info: Path:  
g...@gitlab.testbird.io:comptest/testagent-wrap.git, B

ase path: , Supports changesets: False

Running: git config --get reviewboard.url
Making HTTP GET request to http://reviewboard.testbird.io/api/
Running: git rev-parse refs/heads/master
Running: git merge-base a4eba8ce40cd4795c19e6bec6daf432bff7936a6  
origin/mast

er

Running: git rev-parse df81c67a1249ca48dc6634440a1b5b7d411a104c
Running: git status --porcelain --untracked-files=no
Running: git rev-parse --git-dir
Running: git -c core.quotepath=false -c diff.noprefix=false diff  
--no-color
--full-index --ignore-submodules -M --no-ext-diff  
df81c67a1249ca48dc6634440a1b5b

7d411a104c..a4eba8ce40cd4795c19e6bec6daf432bff7936a6
Running: git log --reverse --pretty=format:%s%n%n%b  
^df81c67a1249ca48dc66344

40a1b5b7d411a104c a4eba8ce40cd4795c19e6bec6daf432bff7936a6
Making HTTP GET request to  
http://reviewboard.testbird.io/api/review-request

s/?only-links=create&only-fields=
Making HTTP POST request to  
http://reviewboard.testbird.io/api/review-reques

ts/
Making HTTP GET request to  
http://reviewboard.testbird.io/api/review-request

s/565/diffs/?only-fields=
Making HTTP POST request to  
http://reviewboard.testbird.io/api/review-reques

ts/565/diffs/
Traceback (most recent call last):
  File "c:/Program Files  
(x86)/RBTools/bin/../Python27/Scripts/rbt-script.py", l

ine 8, in 
load_entry_point('RBTools==0.7.2', 'console_scripts', 'rbt')()
  File "c:\Program Files  
(x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-

py2.7.egg\rbtools\commands\main.py", line 133, in main
command.run_from_argv([RB_MAIN, command_name] + args)
  File "c:\Program Files  
(x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-

py2.7.egg\rbtools\commands\__init__.py", line 555, in run_from_argv
exit_code = self.main(*args) or 0
  File "c:\Program Files  
(x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-

py2.7.egg\rbtools\commands\post.py", line 745, in main
base_dir=base_dir)
  File "c:\Program Files  
(x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-

py2.7.egg\rbtools\commands\post.py", line 434, in post_request
diff_content, **diff_kwargs)
  File "c:\Program Files  
(x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-

py2.7.egg\rbtools\api\decorators.py", line 27, in request_method
*args, **kwargs)
  File "c:\Program Files  
(x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-

py2.7.egg\rbtools\api\transport\sync.py", line 65, in execute_request_method
return self._execute_request(request)
  File "c:\Program Files  
(x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-

py2.7.egg\rbtools\api\transport\sync.py", line 74, in _execute_request
rsp = self.server.make_request(request)
  File "c:\Program Files  
(x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-

py2.7.egg\rbtools\api\request.py", line 521, in make_request
content_type, body = request.encode_multipart_formdata()
  File "c:\Program Files  
(x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.2-

py2.7.egg\rbtools\api\request.py", line 110, in encode_multipart_formdata
mime_type = mimetypes.guess_type(filename)[0]
  File "c:\Program Files (x86)\RBTools\Python27\lib\mimetypes.py", line  
297, in

guess_type
init()
  File "c:\Program Files (x86)\RBTools\Python27\lib\mimetypes.py", line  
358, in

init
db.read_windows_registry()
  File "c:\Program Files (x86)\RBTools\Python27\lib\mimetypes.py", line  
258, in

read_windows_registry
for subkeyname in enum_types(hkcr):
  File "c:\Program Files (x86)\RBTools\Python27\lib\mimetypes.py", line  
249, in

enum_types
ctype = ctype.encode(default_encoding) # omit in 3.x!
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 1:  
ordinal

not in range(128)

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To