{"action":"created","issue":{"url":"https://api.github.com/repos/fablabnbg/inkscape-silhouette/issues/19","repository_url":"https://api.github.com/repos/fablabnbg/inkscape-silhouette","labels_url":"https://api.github.com/repos/fablabnbg/inkscape-silhouette/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/fablabnbg/inkscape-silhouette/issues/19/comments","events_url":"https://api.github.com/repos/fablabnbg/inkscape-silhouette/issues/19/events","html_url":"https://github.com/fablabnbg/inkscape-silhouette/issues/19","id":136974584,"number":19,"title":"Extension fails if units set to inches","user":{"login":"hellocatfood","id":151947,"avatar_url":"https://avatars.githubusercontent.com/u/151947?v=3","gravatar_id":"","url":"https://api.github.com/users/hellocatfood","html_url":"https://github.com/hellocatfood","followers_url":"https://api.github.com/users/hellocatfood/followers","following_url":"https://api.github.com/users/hellocatfood/following{/other_user}","gists_url":"https://api.github.com/users/hellocatfood/gists{/gist_id}","starred_url":"https://api.github.com/users/hellocatfood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellocatfood/subscriptions","organizations_url":"https://api.github.com/users/hellocatfood/orgs","repos_url":"https://api.github.com/users/hellocatfood/repos","events_url":"https://api.github.com/users/hellocatfood/events{/privacy}","received_events_url":"https://api.github.com/users/hellocatfood/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-27T22:07:08Z","updated_at":"2016-05-24T11:27:44Z","closed_at":"2016-05-24T11:24:19Z","body":"I changed the units in an inkscape document from millimetres to inches. When I send a docuemnt to the machine the plugin fails and returns the following error\r\n\r\nTraceback (most recent call last):\r\n  File \"sendto_silhouette.py\", line 1042, in <module>\r\n    e.affect()\r\n  File \"/usr/share/inkscape/extensions/inkex.py\", line 271, in affect\r\n    self.effect()\r\n  File \"sendto_silhouette.py\", line 990, in effect\r\n    mediawidth=px2mm(self.docWidth),\r\n  File \"sendto_silhouette.py\", line 119, in px2mm\r\n    return px*25.4/90\r\nTypeError: unsupported operand type(s) for *: 'NoneType' and 'float'\r\n\r\nWhen I change it back to millimetres it works. I think either this should be fixed of specified in the README that it only works with millimetres"},"comment":{"url":"https://api.github.com/repos/fablabnbg/inkscape-silhouette/issues/comments/221240979","html_url":"https://github.com/fablabnbg/inkscape-silhouette/issues/19#issuecomment-221240979","issue_url":"https://api.github.com/repos/fablabnbg/inkscape-silhouette/issues/19","id":221240979,"user":{"login":"jnweiger","id":1108546,"avatar_url":"https://avatars.githubusercontent.com/u/1108546?v=3","gravatar_id":"","url":"https://api.github.com/users/jnweiger","html_url":"https://github.com/jnweiger","followers_url":"https://api.github.com/users/jnweiger/followers","following_url":"https://api.github.com/users/jnweiger/following{/other_user}","gists_url":"https://api.github.com/users/jnweiger/gists{/gist_id}","starred_url":"https://api.github.com/users/jnweiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnweiger/subscriptions","organizations_url":"https://api.github.com/users/jnweiger/orgs","repos_url":"https://api.github.com/users/jnweiger/repos","events_url":"https://api.github.com/users/jnweiger/events{/privacy}","received_events_url":"https://api.github.com/users/jnweiger/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T11:27:44Z","updated_at":"2016-05-24T11:27:44Z","body":"Fixed in version 1.18 -- the recycled eggbot-code did not support inches. Added that.\r\nWe still miss support for units pc and pt, if someone knows the exact formula for this, please feel free to enhance the GetLengh function near https://github.com/fablabnbg/inkscape-silhouette/blob/cdac06d121c22c4d3854a3e62dac224c3293e5b8/sendto_silhouette.py#L859"}}
{"actor":{"display_login":"jnweiger"}}