{"action":"created","issue":{"url":"https://api.github.com/repos/YadiraF/PRNet/issues/23","repository_url":"https://api.github.com/repos/YadiraF/PRNet","labels_url":"https://api.github.com/repos/YadiraF/PRNet/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/YadiraF/PRNet/issues/23/comments","events_url":"https://api.github.com/repos/YadiraF/PRNet/issues/23/events","html_url":"https://github.com/YadiraF/PRNet/issues/23","id":319296433,"number":23,"title":"python 3 compatibility","user":{"login":"kylemcdonald","id":157106,"avatar_url":"https://avatars3.githubusercontent.com/u/157106?v=4","gravatar_id":"","url":"https://api.github.com/users/kylemcdonald","html_url":"https://github.com/kylemcdonald","followers_url":"https://api.github.com/users/kylemcdonald/followers","following_url":"https://api.github.com/users/kylemcdonald/following{/other_user}","gists_url":"https://api.github.com/users/kylemcdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/kylemcdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylemcdonald/subscriptions","organizations_url":"https://api.github.com/users/kylemcdonald/orgs","repos_url":"https://api.github.com/users/kylemcdonald/repos","events_url":"https://api.github.com/users/kylemcdonald/events{/privacy}","received_events_url":"https://api.github.com/users/kylemcdonald/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-01T19:17:28Z","updated_at":"2018-05-09T09:11:00Z","closed_at":null,"author_association":"NONE","body":"it would be great to make this compatible with python 3!\r\n\r\ni mentioned a problem in https://github.com/YadiraF/PRNet/issues/21 but wanted to start a fresh issue here.\r\n\r\n```\r\n$ python run_basics.py \r\n2018-05-01 12:16:47.603620: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1349] Found device 0 with properties: \r\nname: GeForce GTX 1080 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.6575\r\npciBusID: 0000:05:00.0\r\ntotalMemory: 10.91GiB freeMemory: 8.34GiB\r\n2018-05-01 12:16:47.603651: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1428] Adding visible gpu devices: 0\r\n2018-05-01 12:16:47.806106: I tensorflow/core/common_runtime/gpu/gpu_device.cc:916] Device interconnect StreamExecutor with strength 1 edge matrix:\r\n2018-05-01 12:16:47.806140: I tensorflow/core/common_runtime/gpu/gpu_device.cc:922]      0 \r\n2018-05-01 12:16:47.806148: I tensorflow/core/common_runtime/gpu/gpu_device.cc:935] 0:   N \r\n2018-05-01 12:16:47.806319: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1046] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 8060 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:05:00.0, compute capability: 6.1)\r\n2018-05-01 12:16:47.807380: I tensorflow/core/common_runtime/process_util.cc:64] Creating new thread pool with default inter op setting: 2. Tune using inter_op_parallelism_threads for best performance.\r\nTraceback (most recent call last):\r\n  File \"run_basics.py\", line 52, in <module>\r\n    write_obj(os.path.join(save_folder, name + '.obj'), vertices, colors, prn.triangles) #save 3d face(can open with meshlab)\r\n  File \"/home/kyle/Documents/PRNet/utils/write.py\", line 37, in write_obj\r\n    f.write(s)\r\nTypeError: a bytes-like object is required, not 'str'\r\n```"},"comment":{"url":"https://api.github.com/repos/YadiraF/PRNet/issues/comments/387675450","html_url":"https://github.com/YadiraF/PRNet/issues/23#issuecomment-387675450","issue_url":"https://api.github.com/repos/YadiraF/PRNet/issues/23","id":387675450,"user":{"login":"cclauss","id":3709715,"avatar_url":"https://avatars3.githubusercontent.com/u/3709715?v=4","gravatar_id":"","url":"https://api.github.com/users/cclauss","html_url":"https://github.com/cclauss","followers_url":"https://api.github.com/users/cclauss/followers","following_url":"https://api.github.com/users/cclauss/following{/other_user}","gists_url":"https://api.github.com/users/cclauss/gists{/gist_id}","starred_url":"https://api.github.com/users/cclauss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cclauss/subscriptions","organizations_url":"https://api.github.com/users/cclauss/orgs","repos_url":"https://api.github.com/users/cclauss/repos","events_url":"https://api.github.com/users/cclauss/events{/privacy}","received_events_url":"https://api.github.com/users/cclauss/received_events","type":"User","site_admin":false},"created_at":"2018-05-09T09:11:00Z","updated_at":"2018-05-09T09:11:00Z","author_association":"CONTRIBUTOR","body":"@alain2208 Windows path issues can usually be solved with judicious use of [os.path.join()](https://docs.python.org/3/library/os.path.html) and/or [os.sep](https://docs.python.org/3/library/os.html#os.sep).  If you could please open a pull requests or at least an issue, that would help."}}
{"actor":{"display_login":"cclauss"}}