{"action":"created","issue":{"url":"https://api.github.com/repos/spyder-ide/qtawesome/issues/23","labels_url":"https://api.github.com/repos/spyder-ide/qtawesome/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/qtawesome/issues/23/comments","events_url":"https://api.github.com/repos/spyder-ide/qtawesome/issues/23/events","html_url":"https://github.com/spyder-ide/qtawesome/issues/23","id":90775328,"number":23,"title":"Wrong type returned for the icon?","user":{"login":"baudren","id":3526120,"avatar_url":"https://avatars.githubusercontent.com/u/3526120?v=3","gravatar_id":"","url":"https://api.github.com/users/baudren","html_url":"https://github.com/baudren","followers_url":"https://api.github.com/users/baudren/followers","following_url":"https://api.github.com/users/baudren/following{/other_user}","gists_url":"https://api.github.com/users/baudren/gists{/gist_id}","starred_url":"https://api.github.com/users/baudren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baudren/subscriptions","organizations_url":"https://api.github.com/users/baudren/orgs","repos_url":"https://api.github.com/users/baudren/repos","events_url":"https://api.github.com/users/baudren/events{/privacy}","received_events_url":"https://api.github.com/users/baudren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-06-24T20:40:38Z","updated_at":"2015-06-25T08:58:08Z","closed_at":null,"body":"Hi,\r\n\r\nthanks for the project, and for using some layer of abstraction to make it simpler to support both PySide and PyQt.\r\n\r\nI am getting a strange error on my ubuntu 14.04, though, when trying out the simple example in the readme. I am trying to interface with my [PySide project](https://github.com/baudren/noteorganiser), doing the following:\r\n\r\n~~~ python\r\nicon = qta.icon('fa.flag')\r\nbutton = QtGui.QPushButton(icon, 'New entry', self)  # class instance as parent\r\n~~~\r\n\r\n but when running, I get the following trace:\r\n\r\n~~~ python\r\nTypeError: 'PySide.QtGui.QPushButton' called with wrong argument types:\r\n  PySide.QtGui.QPushButton(QIcon, unicode, Editing)\r\nSupported signatures:\r\n  PySide.QtGui.QPushButton(PySide.QtGui.QWidget = None)\r\n  PySide.QtGui.QPushButton(PySide.QtGui.QIcon, unicode, PySide.QtGui.QWidget = None)\r\n  PySide.QtGui.QPushButton(unicode, PySide.QtGui.QWidget = None)\r\n~~~\r\n\r\nThe `QIcon` is probably coming from `PyQt`? In anyway, it is not understood as `PySide.QtGui.QIcon`.\r\n\r\nIf that helps to narrow down the problem:\r\n* it seems to be absent on windows 8.1\r\n* I don't have PyQt installed on my system, only PySide\r\n\r\nThanks in advance!"},"comment":{"url":"https://api.github.com/repos/spyder-ide/qtawesome/issues/comments/115170863","html_url":"https://github.com/spyder-ide/qtawesome/issues/23#issuecomment-115170863","issue_url":"https://api.github.com/repos/spyder-ide/qtawesome/issues/23","id":115170863,"user":{"login":"baudren","id":3526120,"avatar_url":"https://avatars.githubusercontent.com/u/3526120?v=3","gravatar_id":"","url":"https://api.github.com/users/baudren","html_url":"https://github.com/baudren","followers_url":"https://api.github.com/users/baudren/followers","following_url":"https://api.github.com/users/baudren/following{/other_user}","gists_url":"https://api.github.com/users/baudren/gists{/gist_id}","starred_url":"https://api.github.com/users/baudren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baudren/subscriptions","organizations_url":"https://api.github.com/users/baudren/orgs","repos_url":"https://api.github.com/users/baudren/repos","events_url":"https://api.github.com/users/baudren/events{/privacy}","received_events_url":"https://api.github.com/users/baudren/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T08:58:08Z","updated_at":"2015-06-25T08:58:08Z","body":"But precisely - since I do not have PyQt5, nor PyQt4 installed, it should never set it to anything else. I don't think it is right to specify an `os.environ` when there is nothing to be decided for. Shouldn't it fallback to the first available system?"}}