git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git p4 sync: "str expected, not %s"

From
MBMassimo B. <massimo.b@gmx.net>
Date
Jun 28, 2019, 09:57 UTC
Message-ID
<34d6121da46f35e4b81d38169b1b86ca123cef37.camel@gmx.net>
Hello everybody,
since last updates, git p4 does not work anymore:
# git p4 sync --verbose
Reading pipe: ['git', '--git-dir', '/mnt/data/userspace/project-pb/MM6.test/.git', 'rev-parse', '--git-dir']
Reading pipe: git rev-parse --git-dir
Reading pipe: git rev-parse --show-cdup
Reading pipe: ['git', '--git-dir', b'.', 'rev-parse', '--git-dir']
Traceback (most recent call last):
  File "/usr/libexec/git-core/git-p4", line 4163, in <module>
    main()
  File "/usr/libexec/git-core/git-p4", line 4155, in main
    os.environ["GIT_DIR"] = cmd.gitdir
  File "/usr/lib64/python3.6/os.py", line 674, in __setitem__
    value = self.encodevalue(value)
  File "/usr/lib64/python3.6/os.py", line 744, in encode
    raise TypeError("str expected, not %s" % type(value).__name__)
TypeError: str expected, not bytes

git version 2.22.0 Gentoo Linux Global Python is 3.6.

Last working version I found: 2.20.1

Best regards, Massimo

Next: Massimo B.
Message 1 of 3 in “git p4 sync: "str expected, not %s"”
  1. Massimo B.Jun 28, 2019
  2. Massimo B.Jul 12, 2019
  3. Massimo B.Jul 17, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.