{"action":"created","issue":{"url":"https://api.github.com/repos/nbedos/termtosvg/issues/18","repository_url":"https://api.github.com/repos/nbedos/termtosvg","labels_url":"https://api.github.com/repos/nbedos/termtosvg/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/nbedos/termtosvg/issues/18/comments","events_url":"https://api.github.com/repos/nbedos/termtosvg/issues/18/events","html_url":"https://github.com/nbedos/termtosvg/issues/18","id":338090313,"node_id":"MDU6SXNzdWUzMzgwOTAzMTM=","number":18,"title":"I/O Error on every invocation on Mac","user":{"login":"alecthomas","id":41767,"node_id":"MDQ6VXNlcjQxNzY3","avatar_url":"https://avatars3.githubusercontent.com/u/41767?v=4","gravatar_id":"","url":"https://api.github.com/users/alecthomas","html_url":"https://github.com/alecthomas","followers_url":"https://api.github.com/users/alecthomas/followers","following_url":"https://api.github.com/users/alecthomas/following{/other_user}","gists_url":"https://api.github.com/users/alecthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/alecthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alecthomas/subscriptions","organizations_url":"https://api.github.com/users/alecthomas/orgs","repos_url":"https://api.github.com/users/alecthomas/repos","events_url":"https://api.github.com/users/alecthomas/events{/privacy}","received_events_url":"https://api.github.com/users/alecthomas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-04T00:05:33Z","updated_at":"2018-07-08T17:17:40Z","closed_at":null,"author_association":"NONE","body":"Not sure what's going on...\r\n\r\n```\r\n[aat@cavern:~/Projects/kong]termtosvg foo.svg\r\nRecording started, enter \"exit\" command or Control-D to end\r\n[aat@cavern:~/Projects/kong]ls\r\nREADME.md            guesswidth.go        kong_test.go         resolver_test.go\r\n_examples/           guesswidth_unix.go   levenshtein.go       scanner.go\r\nbuild.go             help.go              mapper.go            scanner_test.go\r\ncamelcase.go         help_test.go         mapper_test.go       tag.go\r\ncontext.go           interpolate.go       model.go             tag_test.go\r\ndoc.go               interpolate_test.go  model_test.go        tokentype_string.go\r\nerror.go             kong.go              options.go\r\nglobal.go            kong.png             options_test.go\r\nglobal_test.go       kong.sketch          resolver.go\r\n[aat@cavern:~/Projects/kong]\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/termtosvg\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/local/lib/python3.6/site-packages/termtosvg/__main__.py\", line 199, in main\r\n    anim.render_animation(replayed_records, svg_filename, font)\r\n  File \"/usr/local/lib/python3.6/site-packages/termtosvg/anim.py\", line 213, in render_animation\r\n    for event_record in record_group:\r\n  File \"/usr/local/lib/python3.6/site-packages/termtosvg/term.py\", line 248, in replay\r\n    for event_record in _group_by_time(records, min_frame_duration, last_frame_duration):\r\n  File \"/usr/local/lib/python3.6/site-packages/termtosvg/term.py\", line 163, in _group_by_time\r\n    for event_record in event_records:\r\n  File \"/usr/local/lib/python3.6/site-packages/termtosvg/term.py\", line 53, in record\r\n    for data, time in _record(columns, lines, input_fileno, output_fileno):\r\n  File \"/usr/local/lib/python3.6/site-packages/termtosvg/term.py\", line 101, in _record\r\n    for data, time in _capture_data(input_fileno, output_fileno, master_fd):\r\n  File \"/usr/local/lib/python3.6/site-packages/termtosvg/term.py\", line 144, in _capture_data\r\n    n = os.write(write_fileno, data)\r\nOSError: [Errno 5] Input/output error\r\n```"},"comment":{"url":"https://api.github.com/repos/nbedos/termtosvg/issues/comments/403302304","html_url":"https://github.com/nbedos/termtosvg/issues/18#issuecomment-403302304","issue_url":"https://api.github.com/repos/nbedos/termtosvg/issues/18","id":403302304,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzMwMjMwNA==","user":{"login":"ushroo","id":32001845,"node_id":"MDQ6VXNlcjMyMDAxODQ1","avatar_url":"https://avatars2.githubusercontent.com/u/32001845?v=4","gravatar_id":"","url":"https://api.github.com/users/ushroo","html_url":"https://github.com/ushroo","followers_url":"https://api.github.com/users/ushroo/followers","following_url":"https://api.github.com/users/ushroo/following{/other_user}","gists_url":"https://api.github.com/users/ushroo/gists{/gist_id}","starred_url":"https://api.github.com/users/ushroo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ushroo/subscriptions","organizations_url":"https://api.github.com/users/ushroo/orgs","repos_url":"https://api.github.com/users/ushroo/repos","events_url":"https://api.github.com/users/ushroo/events{/privacy}","received_events_url":"https://api.github.com/users/ushroo/received_events","type":"User","site_admin":false},"created_at":"2018-07-08T17:17:40Z","updated_at":"2018-07-08T17:17:40Z","author_association":"NONE","body":"Experiencing the same issue on OpenBSD 6.3, Python 3.6.4:\r\n\r\n```\r\nuser@tina ~\r\n$ termtosvg --verbose\r\nLogging to /tmp/termtosvg_1bmg2ibl.log\r\nRecording started, enter \"exit\" command or Control-D to end\r\n\r\nuser@tina ~\r\n$ echo foo\r\nfoo\r\n\r\nuser@tina ~\r\n$ ^D\r\nTraceback (most recent call last):\r\n  File \"./.local/bin/termtosvg\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/home/user/.local/lib/python3.6/site-packages/termtosvg/__main__.py\", line 194, in main\r\n    anim.render_animation(replayed_records, svg_filename, font)\r\n  File \"/home/user/.local/lib/python3.6/site-packages/termtosvg/anim.py\", line 213, in render_animation\r\n    for event_record in record_group:\r\n  File \"/home/user/.local/lib/python3.6/site-packages/termtosvg/term.py\", line 248, in replay\r\n    for event_record in _group_by_time(records, min_frame_duration, last_frame_duration):\r\n  File \"/home/user/.local/lib/python3.6/site-packages/termtosvg/term.py\", line 163, in _group_by_time\r\n    for event_record in event_records:\r\n  File \"/home/user/.local/lib/python3.6/site-packages/termtosvg/term.py\", line 53, in record\r\n    for data, time in _record(columns, lines, input_fileno, output_fileno):\r\n  File \"/home/user/.local/lib/python3.6/site-packages/termtosvg/term.py\", line 101, in _record\r\n    for data, time in _capture_data(input_fileno, output_fileno, master_fd):\r\n  File \"/home/user/.local/lib/python3.6/site-packages/termtosvg/term.py\", line 144, in _capture_data\r\n    n = os.write(write_fileno, data)\r\nOSError: [Errno 5] Input/output error\r\n\r\nuser@tina ~\r\n$ cat /tmp/termtosvg_1bmg2ibl.log\r\n2018-07-08 10:08:04,741 - termtosvg - INFO - Logging to /tmp/termtosvg_1bmg2ibl.log\r\n2018-07-08 10:08:04,741 - termtosvg - INFO - Recording started, enter \"exit\" command or Control-D to end\r\n\r\nuser@tina ~\r\n$ ls *.svg /tmp/*.svg\r\nls: *.svg: No such file or directory\r\n-rw-------  1 user  wheel  -    0B Jul  8 10:08 /tmp/termtosvg_nbbjvjjl.svg\r\n\r\nuser@tina ~\r\n$ id\r\nuid=1000(user) gid=1000(user) groups=1000(user), 0(wheel), 9(wsrc), 117(dialer)\r\n\r\nuser@tina ~\r\n$ sysctl kern.version\r\nkern.version=OpenBSD 6.3 (GENERIC.MP) #4: Sun Jun 17 11:22:20 CEST 2018\r\n    root@syspatch-63-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP\r\n```\r\n\r\nIs it correct that the svg file is owned by myuser:wheel (and not user:user)?"}}
{"actor":{"display_login":"ushroo"}}