Re: [git-users] UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 377826: invalid start byte

2015-04-08 Thread Magnus Therning
On 9 April 2015 at 02:30,   wrote:
> Dale - this is in python 2.7.3 and using gitpython

This is mainly a mailing list for user-level questions about `git` the
command line tool.  While you can always ask questions about other
things on here, I suspect in this case you are much more likely to get
an answer if you approach the `gitpython` community.  I'd start here:
http://groups.google.com/group/git-python

/M

-- 
Magnus Therning  OpenPGP: 0xAB4DFBA4
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe   http://therning.org/magnus

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 377826: invalid start byte

2015-04-08 Thread python . begginer29
Dale - this is in python 2.7.3 and using gitpython

On Wednesday, April 8, 2015 at 4:54:11 PM UTC-7, Dale Worley wrote:
>
> python.b...@gmail.com  writes: 
> > I am getting the following error while executing the below code snippet 
> > exactly at the line if uID in repo.git.log():, the problem is in 
> > repo.git.log(),the error happens way down in the bowels of the 
> > repo.git.log() command, I think because the output produced by the git 
> > command doesn't produce UTF-8. That could be because the git log 
> contains 
> > non-UTF-8 data, or for a different reason. 
> > 
> > how do I convert repo.git.log() into decode("utf-8")? 
> > 
> > .. 
> > uID = 
> > gerritInfo['id'].decode("utf-8") 
> 
> > if uID in repo.git.log(): 
> > inwslist.append(gerritpatch)   
> > . 
>
> What program is this code in?  Is it part of Git? 
>
> Dale 
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 377826: invalid start byte

2015-04-08 Thread Dale R. Worley
python.beggine...@gmail.com writes:
> I am getting the following error while executing the below code snippet 
> exactly at the line if uID in repo.git.log():, the problem is in 
> repo.git.log(),the error happens way down in the bowels of the 
> repo.git.log() command, I think because the output produced by the git 
> command doesn't produce UTF-8. That could be because the git log contains 
> non-UTF-8 data, or for a different reason.
>
> how do I convert repo.git.log() into decode("utf-8")?
>
> ..
> uID = 
> gerritInfo['id'].decode("utf-8")
> if uID in repo.git.log():
> inwslist.append(gerritpatch)  
> .

What program is this code in?  Is it part of Git?

Dale

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 377826: invalid start byte

2015-04-08 Thread python . begginer29


I am getting the following error while executing the below code snippet 
exactly at the line if uID in repo.git.log():, the problem is in 
repo.git.log(),the error happens way down in the bowels of the 
repo.git.log() command, I think because the output produced by the git 
command doesn't produce UTF-8. That could be because the git log contains 
non-UTF-8 data, or for a different reason.

how do I convert repo.git.log() into decode("utf-8")?

..
uID = 
gerritInfo['id'].decode("utf-8")
if uID in repo.git.log():
inwslist.append(gerritpatch)  
.


Traceback (most recent call last):
  File "/prj/host_script/script.py", line 1417, in 
result=main()
  File "/prj/host_script/script.py", line 1028, in main
if uID in repo.git.log():
  File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 431, in 

return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 802, in 
_call_process
return self.execute(make_call(), **_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 610, in 
execute
stdout_value = stdout_value.decode(defenc)
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 377826: 
invalid start byte

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.