{"action":"created","issue":{"url":"https://api.github.com/repos/altendky/pyqt5-tools/issues/16","repository_url":"https://api.github.com/repos/altendky/pyqt5-tools","labels_url":"https://api.github.com/repos/altendky/pyqt5-tools/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/altendky/pyqt5-tools/issues/16/comments","events_url":"https://api.github.com/repos/altendky/pyqt5-tools/issues/16/events","html_url":"https://github.com/altendky/pyqt5-tools/issues/16","id":356602124,"node_id":"MDU6SXNzdWUzNTY2MDIxMjQ=","number":16,"title":"Works in a virtualenv...  not a venv though","user":{"login":"altendky","id":543719,"node_id":"MDQ6VXNlcjU0MzcxOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/543719?v=4","gravatar_id":"","url":"https://api.github.com/users/altendky","html_url":"https://github.com/altendky","followers_url":"https://api.github.com/users/altendky/followers","following_url":"https://api.github.com/users/altendky/following{/other_user}","gists_url":"https://api.github.com/users/altendky/gists{/gist_id}","starred_url":"https://api.github.com/users/altendky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/altendky/subscriptions","organizations_url":"https://api.github.com/users/altendky/orgs","repos_url":"https://api.github.com/users/altendky/repos","events_url":"https://api.github.com/users/altendky/events{/privacy}","received_events_url":"https://api.github.com/users/altendky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-03T21:32:25Z","updated_at":"2018-09-04T03:40:57Z","closed_at":null,"author_association":"OWNER","body":"When running from a `virtualenv` and specifying the paths for `PQTDESIGNERPATH` (either via `.env` or via the `-p` CLI option of `pyqt5designer`) Designer starts and works as expected (shows the widgets if they are installed or error dialogs if they are not).  From a `venv` you instead get a silent exit and DebugView output per below.\r\n\r\n```\r\nPS C:\\Users\\sda\\desktop> venv\\scripts\\pyqt5designer -p st/sub/epyqlib/epyqlib\r\nPS C:\\Users\\sda\\desktop> virtualenv\\scripts\\pyqt5designer -p st/sub/epyqlib/epyqlib\r\n\r\nAborted!\r\n```\r\n[DebugView](https://docs.microsoft.com/en-us/sysinternals/downloads/debugview) capture from above `venv` command.\r\n```python3\r\n[180] Preparing to import module\r\n[180] About to import module\r\n[180] An error occurred while importing the module\r\n[180] PyErr_Occurred() != NULL\r\n[180] ptype == NULL :  false\r\n[180] pvalue == NULL :  false\r\n[180] ptraceback == NULL :  false\r\n[180] pystr == NULL :  false\r\n[180] pystr == NULL :  false\r\n[180] str == NULL :  false\r\n[180] str:  No module named 'PyQt5'\r\n[180] error_description == NULL :  false\r\n[180] error_description:  No module named 'PyQt5'\r\n[180] pyth_module == NULL :  false\r\n[180] pyth_func && PyCallable_Check(pyth_func)\r\n```\r\n```\r\nPS C:\\Users\\sda\\desktop> venv\\scripts\\python --version --version\r\nPython 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)]\r\nPS C:\\Users\\sda\\desktop> virtualenv\\scripts\\python --version --version\r\nPython 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)]\r\n```\r\n```\r\nPS C:\\Users\\sda\\desktop> venv\\scripts\\pip freeze\r\nclick==6.7\r\nPyQt5==5.11.2\r\nPyQt5-sip==4.19.12\r\npyqt5-tools==5.11.2.1.3rc2.post8\r\npython-dotenv==0.9.1\r\nYou are using pip version 10.0.1, however version 18.0 is available.\r\nYou should consider upgrading via the 'python -m pip install --upgrade pip' command.\r\nPS C:\\Users\\sda\\desktop> virtualenv\\scripts\\pip freeze\r\nclick==6.7\r\nPyQt5==5.11.2\r\nPyQt5-sip==4.19.12\r\npyqt5-tools==5.11.2.1.3rc2.post8\r\npython-dotenv==0.9.1\r\n```"},"comment":{"url":"https://api.github.com/repos/altendky/pyqt5-tools/issues/comments/418232254","html_url":"https://github.com/altendky/pyqt5-tools/issues/16#issuecomment-418232254","issue_url":"https://api.github.com/repos/altendky/pyqt5-tools/issues/16","id":418232254,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODIzMjI1NA==","user":{"login":"altendky","id":543719,"node_id":"MDQ6VXNlcjU0MzcxOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/543719?v=4","gravatar_id":"","url":"https://api.github.com/users/altendky","html_url":"https://github.com/altendky","followers_url":"https://api.github.com/users/altendky/followers","following_url":"https://api.github.com/users/altendky/following{/other_user}","gists_url":"https://api.github.com/users/altendky/gists{/gist_id}","starred_url":"https://api.github.com/users/altendky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/altendky/subscriptions","organizations_url":"https://api.github.com/users/altendky/orgs","repos_url":"https://api.github.com/users/altendky/repos","events_url":"https://api.github.com/users/altendky/events{/privacy}","received_events_url":"https://api.github.com/users/altendky/received_events","type":"User","site_admin":false},"created_at":"2018-09-04T03:40:57Z","updated_at":"2018-09-04T03:40:57Z","author_association":"OWNER","body":"Maybe not `virtualenv`/`venv` related.  Looks like shoving `sys.path` into `PYTHONPATH` helps anyways.  Still seems fishy."}}
{"actor":{"display_login":"altendky"}}