{"action":"created","issue":{"url":"https://api.github.com/repos/AdriaanRol/qtlab-fork/issues/10","labels_url":"https://api.github.com/repos/AdriaanRol/qtlab-fork/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/AdriaanRol/qtlab-fork/issues/10/comments","events_url":"https://api.github.com/repos/AdriaanRol/qtlab-fork/issues/10/events","html_url":"https://github.com/AdriaanRol/qtlab-fork/issues/10","id":52981875,"number":10,"title":"Gui not showing when running pip installed qtlab ","user":{"login":"AdriaanRol","id":6142932,"avatar_url":"https://avatars.githubusercontent.com/u/6142932?v=3","gravatar_id":"","url":"https://api.github.com/users/AdriaanRol","html_url":"https://github.com/AdriaanRol","followers_url":"https://api.github.com/users/AdriaanRol/followers","following_url":"https://api.github.com/users/AdriaanRol/following{/other_user}","gists_url":"https://api.github.com/users/AdriaanRol/gists{/gist_id}","starred_url":"https://api.github.com/users/AdriaanRol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdriaanRol/subscriptions","organizations_url":"https://api.github.com/users/AdriaanRol/orgs","repos_url":"https://api.github.com/users/AdriaanRol/repos","events_url":"https://api.github.com/users/AdriaanRol/events{/privacy}","received_events_url":"https://api.github.com/users/AdriaanRol/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AdriaanRol/qtlab-fork/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/AdriaanRol/qtlab-fork/milestones/1","html_url":"https://github.com/AdriaanRol/qtlab-fork/milestones/qtlab%20as%20importable%20module%20","labels_url":"https://api.github.com/repos/AdriaanRol/qtlab-fork/milestones/1/labels","id":881721,"number":1,"title":"qtlab as importable module ","description":"","creator":{"login":"AdriaanRol","id":6142932,"avatar_url":"https://avatars.githubusercontent.com/u/6142932?v=3","gravatar_id":"","url":"https://api.github.com/users/AdriaanRol","html_url":"https://github.com/AdriaanRol","followers_url":"https://api.github.com/users/AdriaanRol/followers","following_url":"https://api.github.com/users/AdriaanRol/following{/other_user}","gists_url":"https://api.github.com/users/AdriaanRol/gists{/gist_id}","starred_url":"https://api.github.com/users/AdriaanRol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdriaanRol/subscriptions","organizations_url":"https://api.github.com/users/AdriaanRol/orgs","repos_url":"https://api.github.com/users/AdriaanRol/repos","events_url":"https://api.github.com/users/AdriaanRol/events{/privacy}","received_events_url":"https://api.github.com/users/AdriaanRol/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":5,"state":"open","created_at":"2014-11-26T18:10:12Z","updated_at":"2015-05-17T16:59:41Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2014-12-28T14:07:41Z","updated_at":"2015-05-17T16:59:41Z","closed_at":"2015-05-17T16:59:41Z","body":"The GUI is not showing. I have traced this bug down to where the gui is started in the python code. \r\n\r\nIt does this in qtlab.source.qtflow start_gui() which in turn calls start_program('qtlabgui'). \r\nThe command is set up such that it will look in the execdir of qtlab for a file called qtlabgui or qtlabgui.bat. \r\n\r\nThere are several possible ways to resolve this issue\r\n1. Copy paste the .bat file in the user folder and change the respective import statements \r\n2. Install the executable files using the setup.py when pip install is run \r\n3.  make the gui part run directly from python/ipython circumventing an executable file \r\n\r\nOption 1 will probably make the code run straight away but the executable does not belong in the user folder so is only a workaround. \r\nOption 2 will require figuring out where executables are stored but will solve it. \r\nOprion 3 might on the surface seem nicer than 2, because no executable is needed. However the current implementation is chosen in the original qtlab because starting the gui in a separe thread (i.e. via an executable) allows commands such as interupt and viewing/updating settings to work even mid measurement. The same could probably also be achieved by pure python but requires more thinking. "},"comment":{"url":"https://api.github.com/repos/AdriaanRol/qtlab-fork/issues/comments/102823130","html_url":"https://github.com/AdriaanRol/qtlab-fork/issues/10#issuecomment-102823130","issue_url":"https://api.github.com/repos/AdriaanRol/qtlab-fork/issues/10","id":102823130,"user":{"login":"AdriaanRol","id":6142932,"avatar_url":"https://avatars.githubusercontent.com/u/6142932?v=3","gravatar_id":"","url":"https://api.github.com/users/AdriaanRol","html_url":"https://github.com/AdriaanRol","followers_url":"https://api.github.com/users/AdriaanRol/followers","following_url":"https://api.github.com/users/AdriaanRol/following{/other_user}","gists_url":"https://api.github.com/users/AdriaanRol/gists{/gist_id}","starred_url":"https://api.github.com/users/AdriaanRol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdriaanRol/subscriptions","organizations_url":"https://api.github.com/users/AdriaanRol/orgs","repos_url":"https://api.github.com/users/AdriaanRol/repos","events_url":"https://api.github.com/users/AdriaanRol/events{/privacy}","received_events_url":"https://api.github.com/users/AdriaanRol/received_events","type":"User","site_admin":false},"created_at":"2015-05-17T16:59:41Z","updated_at":"2015-05-17T16:59:41Z","body":"closed in 07c1707072d0"}}