{"action":"created","issue":{"url":"https://api.github.com/repos/fredrikaverpil/pyside2-wheels/issues/44","repository_url":"https://api.github.com/repos/fredrikaverpil/pyside2-wheels","labels_url":"https://api.github.com/repos/fredrikaverpil/pyside2-wheels/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/fredrikaverpil/pyside2-wheels/issues/44/comments","events_url":"https://api.github.com/repos/fredrikaverpil/pyside2-wheels/issues/44/events","html_url":"https://github.com/fredrikaverpil/pyside2-wheels/issues/44","id":176170992,"number":44,"title":"pyside2-uic missing","user":{"login":"mottosso","id":2152766,"avatar_url":"https://avatars1.githubusercontent.com/u/2152766?v=4","gravatar_id":"","url":"https://api.github.com/users/mottosso","html_url":"https://github.com/mottosso","followers_url":"https://api.github.com/users/mottosso/followers","following_url":"https://api.github.com/users/mottosso/following{/other_user}","gists_url":"https://api.github.com/users/mottosso/gists{/gist_id}","starred_url":"https://api.github.com/users/mottosso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mottosso/subscriptions","organizations_url":"https://api.github.com/users/mottosso/orgs","repos_url":"https://api.github.com/users/mottosso/repos","events_url":"https://api.github.com/users/mottosso/events{/privacy}","received_events_url":"https://api.github.com/users/mottosso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":26,"created_at":"2016-09-10T09:32:58Z","updated_at":"2017-08-21T06:05:25Z","closed_at":null,"body":"There might be something missing, or I'm doing it wrong. :(\n\n**Stack trace**\n\n``` bash\n$ pyside2-uic \nTraceback (most recent call last):\n  File \"/usr/local/bin/pyside2-uic\", line 7, in <module>\n    from PySide2.scripts.uic import main\n  File \"/usr/local/lib/python2.7/dist-packages/PySide2/scripts/uic.py\", line 28, in <module>\n    from pyside2uic.driver import Driver\n  File \"/usr/local/lib/python2.7/dist-packages/pyside2uic/__init__.py\", line 27, in <module>\n    from pyside2uic.Compiler import indenter, compiler\nImportError: No module named Compiler\n```\n\n**Full reproducible**\n\n``` bash\n$ apt-get install wget python-pip python-dev software-properties-common\n$ add-apt-repository ppa:beineri/opt-qt561-trusty\n$ apt-get update\n$ apt-get install qt56-meta-full\n$ . /opt/qt56/bin/qt56-env.sh\n$ wget https://bintray.com/fredrikaverpil/pyside2-wheels/download_file?file_path=ubuntu14.04%2FPySide2-2.0.0.dev0-cp27-none-linux_x86_64.whl -O PySide2-2.0.0.dev0-cp27-none-linux_x86_64.whl\n$ pip install PySide2-2.0.0.dev0-cp27-none-linux_x86_64.whl\n$ pyside2-uic\n```\n"},"comment":{"url":"https://api.github.com/repos/fredrikaverpil/pyside2-wheels/issues/comments/323653984","html_url":"https://github.com/fredrikaverpil/pyside2-wheels/issues/44#issuecomment-323653984","issue_url":"https://api.github.com/repos/fredrikaverpil/pyside2-wheels/issues/44","id":323653984,"user":{"login":"leycec","id":217028,"avatar_url":"https://avatars2.githubusercontent.com/u/217028?v=4","gravatar_id":"","url":"https://api.github.com/users/leycec","html_url":"https://github.com/leycec","followers_url":"https://api.github.com/users/leycec/followers","following_url":"https://api.github.com/users/leycec/following{/other_user}","gists_url":"https://api.github.com/users/leycec/gists{/gist_id}","starred_url":"https://api.github.com/users/leycec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leycec/subscriptions","organizations_url":"https://api.github.com/users/leycec/orgs","repos_url":"https://api.github.com/users/leycec/repos","events_url":"https://api.github.com/users/leycec/events{/privacy}","received_events_url":"https://api.github.com/users/leycec/received_events","type":"User","site_admin":false},"created_at":"2017-08-21T06:05:25Z","updated_at":"2017-08-21T06:05:25Z","body":"> Let's find something in `setup.py`, like for example perhaps this line:\r\n\r\n*Exactly.* Brilliant minds think brilliantly. This is exactly the line I've been inspecting for the past hour. For reasons unclear to me, they decided to reinvent the stdlib `shutil.copytree()` function with an own ad-hoc spaghetti code alternative named `utils.copydir()`... *because.* Although this is fundamentally insane and therefore bad, I haven't been able to tease out the underlying issue yet.\r\n\r\nIt's there. Somewhere. Deep within the metastasised tumour of `setup.py`. My gnawing suspicion is that the `bdist_wheel` subcommand expects to be internally passed a sequence of the source paths to be bundled into wheels – and that this sequence currently omits all `pyside2uic` subdirectories.\r\n\r\nFurther meditation and scowling into the darkness are required.\r\n\r\n> By the way. I know QtC is aware of the state of `setup.py`...\r\n\r\nI vomit inside every time I rifle through this file. *Every time.*\r\n\r\n> One idea to achieve this is to create a `pyside2uicfix.py` which takes care of the file copying.\r\n\r\n*Nice.* Let's rummage a bit deeper and see where we can slot that into.\r\n\r\nCompletely unrelatedly, were you aware of the `--standalone` option? I wasn't, but it looks pretty swag. If I'm perusing the code correctly, <sup>_i'm prolly not_</sup> passing this additional option to `python3 setup.py bdist_wheel` *should* bundle all requisite Qt libraries with this wheel – just like with the PyQt5 wheels. Since it's too good to be true, my working assumption is that this option is critically broken and best ignored."}}
{"actor":{"display_login":"leycec"}}