{"action":"created","issue":{"url":"https://api.github.com/repos/zopefoundation/Zope/issues/372","repository_url":"https://api.github.com/repos/zopefoundation/Zope","labels_url":"https://api.github.com/repos/zopefoundation/Zope/issues/372/labels{/name}","comments_url":"https://api.github.com/repos/zopefoundation/Zope/issues/372/comments","events_url":"https://api.github.com/repos/zopefoundation/Zope/issues/372/events","html_url":"https://github.com/zopefoundation/Zope/issues/372","id":369253111,"node_id":"MDU6SXNzdWUzNjkyNTMxMTE=","number":372,"title":"mkwsgiinstance:  Fails under Py3k on Unix filesystem","user":{"login":"tseaver","id":242750,"node_id":"MDQ6VXNlcjI0Mjc1MA==","avatar_url":"https://avatars2.githubusercontent.com/u/242750?v=4","gravatar_id":"","url":"https://api.github.com/users/tseaver","html_url":"https://github.com/tseaver","followers_url":"https://api.github.com/users/tseaver/followers","following_url":"https://api.github.com/users/tseaver/following{/other_user}","gists_url":"https://api.github.com/users/tseaver/gists{/gist_id}","starred_url":"https://api.github.com/users/tseaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tseaver/subscriptions","organizations_url":"https://api.github.com/users/tseaver/orgs","repos_url":"https://api.github.com/users/tseaver/repos","events_url":"https://api.github.com/users/tseaver/events{/privacy}","received_events_url":"https://api.github.com/users/tseaver/received_events","type":"User","site_admin":false},"labels":[{"id":29848137,"node_id":"MDU6TGFiZWwyOTg0ODEzNw==","url":"https://api.github.com/repos/zopefoundation/Zope/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-11T18:38:13Z","updated_at":"2018-10-20T12:46:24Z","closed_at":null,"author_association":"MEMBER","body":"In a fresh Zope 4.0b6 install:\r\n\r\n```bash\r\n$ bin/mkwsgiinstance -d .\r\nPlease choose a username and password for the initial user.\r\nThese will be the credentials you use to initially manage\r\nyour new Zope instance.\r\n\r\nUsername: xxx\r\nPassword: \r\nVerify password: \r\nTraceback (most recent call last):\r\n  File \"bin/mkwsgiinstance\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/tmp/zope4/lib/python3.6/site-packages/Zope2/utilities/mkwsgiinstance.py\", line 142, in main\r\n    copyzopeskel.copyskel(skelsrc, skeltarget, None, None, **kw)\r\n  File \"/tmp/zope4/lib/python3.6/site-packages/Zope2/utilities/copyzopeskel.py\", line 182, in copyskel\r\n    copydir(root, dirs, files, targetdir, replacements, uid, gid)\r\n  File \"/tmp/zope4/lib/python3.6/site-packages/Zope2/utilities/copyzopeskel.py\", line 206, in copydir\r\n    gid)\r\n  File \"/tmp/zope4/lib/python3.6/site-packages/Zope2/utilities/copyzopeskel.py\", line 225, in copyin\r\n    text = text.replace(\"<<%s>>\" % k, replacements[k])\r\nTypeError: replace() argument 2 must be str, not bytes\r\n```\r\n\r\nDebugging, the issue is that `ZOPE2PATH` is bytes."},"comment":{"url":"https://api.github.com/repos/zopefoundation/Zope/issues/comments/431577105","html_url":"https://github.com/zopefoundation/Zope/issues/372#issuecomment-431577105","issue_url":"https://api.github.com/repos/zopefoundation/Zope/issues/372","id":431577105,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTU3NzEwNQ==","user":{"login":"gandie","id":15710300,"node_id":"MDQ6VXNlcjE1NzEwMzAw","avatar_url":"https://avatars2.githubusercontent.com/u/15710300?v=4","gravatar_id":"","url":"https://api.github.com/users/gandie","html_url":"https://github.com/gandie","followers_url":"https://api.github.com/users/gandie/followers","following_url":"https://api.github.com/users/gandie/following{/other_user}","gists_url":"https://api.github.com/users/gandie/gists{/gist_id}","starred_url":"https://api.github.com/users/gandie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gandie/subscriptions","organizations_url":"https://api.github.com/users/gandie/orgs","repos_url":"https://api.github.com/users/gandie/repos","events_url":"https://api.github.com/users/gandie/events{/privacy}","received_events_url":"https://api.github.com/users/gandie/received_events","type":"User","site_admin":false},"created_at":"2018-10-20T12:46:24Z","updated_at":"2018-10-20T12:46:24Z","author_association":"NONE","body":"I quick-fixed that by replacing the line:\r\n`text = text.replace(\"<<%s>>\" % k, replacements[k])`\r\nwith\r\n`text = text.replace(\"<<%s>>\" % k, str(replacements[k]))`\r\nGot a working instance after that, hope this helps."}}
{"actor":{"display_login":"gandie"}}