subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nico Kadel-Garcia <>
Subject Re: commit says TypeError: must be unicode, not str
Date Thu, 01 Feb 2018 05:02:05 GMT
On Wed, Jan 31, 2018 at 10:40 PM, Kenneth Porter <> wrote:
> --On Wednesday, January 31, 2018 7:23 PM -0800 Kenneth Porter
> <> wrote:
>>     fp =, 'w+') # avoid namespace clash with
>>                                    # trimmed-down svn_fs_open()
> I'm now thinking the problem is in the open call, and that I'm somehow
> getting a Python 3 open function even though I've got Python 2.7 installed.
> Should the mode be 'wb' instead of 'w+'? That would insure that the raw data
> from the Subversion object is getting dumped into the temporary fle without
> interpretation. I don't understand why update (denoted by the plus) is
> wanted. The temp file isn't being read from.

If you are on RHEL based operating systems, some of them install both,
and sometimes with some fascinating "PATH" settings. It can be very
handy to edit customized .py scripts to explicitly call the version of
Python you reall want to use.

View raw message