{"action":"created","issue":{"url":"https://api.github.com/repos/mapzen/mapbox-vector-tile/issues/17","labels_url":"https://api.github.com/repos/mapzen/mapbox-vector-tile/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/mapzen/mapbox-vector-tile/issues/17/comments","events_url":"https://api.github.com/repos/mapzen/mapbox-vector-tile/issues/17/events","html_url":"https://github.com/mapzen/mapbox-vector-tile/issues/17","id":99681763,"number":17,"title":"python3 support?","user":{"login":"yohanboniface","id":146023,"avatar_url":"https://avatars.githubusercontent.com/u/146023?v=3","gravatar_id":"","url":"https://api.github.com/users/yohanboniface","html_url":"https://github.com/yohanboniface","followers_url":"https://api.github.com/users/yohanboniface/followers","following_url":"https://api.github.com/users/yohanboniface/following{/other_user}","gists_url":"https://api.github.com/users/yohanboniface/gists{/gist_id}","starred_url":"https://api.github.com/users/yohanboniface/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yohanboniface/subscriptions","organizations_url":"https://api.github.com/users/yohanboniface/orgs","repos_url":"https://api.github.com/users/yohanboniface/repos","events_url":"https://api.github.com/users/yohanboniface/events{/privacy}","received_events_url":"https://api.github.com/users/yohanboniface/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-08-07T16:23:03Z","updated_at":"2015-08-11T22:30:49Z","closed_at":null,"body":"Just made a quick try, doesn't seem to work:\r\n\r\n- relative imports\r\n- protobuf 2.6 instead of 3.0alpha3 (which API seems to have changed a bit)\r\n\r\nREADME says it's compatible. Do you have a hidden branch with the fixes or it's me missing something? :)"},"comment":{"url":"https://api.github.com/repos/mapzen/mapbox-vector-tile/issues/comments/130098023","html_url":"https://github.com/mapzen/mapbox-vector-tile/issues/17#issuecomment-130098023","issue_url":"https://api.github.com/repos/mapzen/mapbox-vector-tile/issues/17","id":130098023,"user":{"login":"rmarianski","id":53770,"avatar_url":"https://avatars.githubusercontent.com/u/53770?v=3","gravatar_id":"","url":"https://api.github.com/users/rmarianski","html_url":"https://github.com/rmarianski","followers_url":"https://api.github.com/users/rmarianski/followers","following_url":"https://api.github.com/users/rmarianski/following{/other_user}","gists_url":"https://api.github.com/users/rmarianski/gists{/gist_id}","starred_url":"https://api.github.com/users/rmarianski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmarianski/subscriptions","organizations_url":"https://api.github.com/users/rmarianski/orgs","repos_url":"https://api.github.com/users/rmarianski/repos","events_url":"https://api.github.com/users/rmarianski/events{/privacy}","received_events_url":"https://api.github.com/users/rmarianski/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T22:30:49Z","updated_at":"2015-08-11T22:30:49Z","body":"I think you'll have to regenerate the pbf wrappers when changing the protobuf version, and then account for whatever the api changes are.\r\n\r\nI tried a simple example with conditionally defining the classes, and you're right, it didn't parse. I _think_ this strategy might still work by conditionally importing the classes from separate files. A proof of concept seemed to work for me, but I didn't get a chance to try it on the actual pbf wrappers. ie something like this:\r\n\r\n```python\r\nif sys.version_info.major == 2:\r\n    from metaclasses2 import Foo\r\nelif sys.version_info.major == 3:\r\n    from metaclasses3 import Foo\r\n```\r\n\r\nWhere the metaclasses2 file has the python 2 syntax for defining metaclasses, and similarly for python 3.\r\n"}}