{"action":"created","issue":{"url":"https://api.github.com/repos/ganga-devs/ganga/issues/522","repository_url":"https://api.github.com/repos/ganga-devs/ganga","labels_url":"https://api.github.com/repos/ganga-devs/ganga/issues/522/labels{/name}","comments_url":"https://api.github.com/repos/ganga-devs/ganga/issues/522/comments","events_url":"https://api.github.com/repos/ganga-devs/ganga/issues/522/events","html_url":"https://github.com/ganga-devs/ganga/pull/522","id":156739524,"number":522,"title":"Read the env file directly","user":{"login":"milliams","id":61316,"avatar_url":"https://avatars.githubusercontent.com/u/61316?v=3","gravatar_id":"","url":"https://api.github.com/users/milliams","html_url":"https://github.com/milliams","followers_url":"https://api.github.com/users/milliams/followers","following_url":"https://api.github.com/users/milliams/following{/other_user}","gists_url":"https://api.github.com/users/milliams/gists{/gist_id}","starred_url":"https://api.github.com/users/milliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milliams/subscriptions","organizations_url":"https://api.github.com/users/milliams/orgs","repos_url":"https://api.github.com/users/milliams/repos","events_url":"https://api.github.com/users/milliams/events{/privacy}","received_events_url":"https://api.github.com/users/milliams/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ganga-devs/ganga/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ganga-devs/ganga/labels/cleanup","name":"cleanup","color":"0052cc"},{"url":"https://api.github.com/repos/ganga-devs/ganga/labels/DIRAC","name":"DIRAC","color":"d4c5f9"},{"url":"https://api.github.com/repos/ganga-devs/ganga/labels/LHCb","name":"LHCb","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"milliams","id":61316,"avatar_url":"https://avatars.githubusercontent.com/u/61316?v=3","gravatar_id":"","url":"https://api.github.com/users/milliams","html_url":"https://github.com/milliams","followers_url":"https://api.github.com/users/milliams/followers","following_url":"https://api.github.com/users/milliams/following{/other_user}","gists_url":"https://api.github.com/users/milliams/gists{/gist_id}","starred_url":"https://api.github.com/users/milliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milliams/subscriptions","organizations_url":"https://api.github.com/users/milliams/orgs","repos_url":"https://api.github.com/users/milliams/repos","events_url":"https://api.github.com/users/milliams/events{/privacy}","received_events_url":"https://api.github.com/users/milliams/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ganga-devs/ganga/milestones/9","html_url":"https://github.com/ganga-devs/ganga/milestones/6.1.21","labels_url":"https://api.github.com/repos/ganga-devs/ganga/milestones/9/labels","id":1762322,"number":9,"title":"6.1.21","description":null,"creator":{"login":"rob-c","id":1102021,"avatar_url":"https://avatars.githubusercontent.com/u/1102021?v=3","gravatar_id":"","url":"https://api.github.com/users/rob-c","html_url":"https://github.com/rob-c","followers_url":"https://api.github.com/users/rob-c/followers","following_url":"https://api.github.com/users/rob-c/following{/other_user}","gists_url":"https://api.github.com/users/rob-c/gists{/gist_id}","starred_url":"https://api.github.com/users/rob-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rob-c/subscriptions","organizations_url":"https://api.github.com/users/rob-c/orgs","repos_url":"https://api.github.com/users/rob-c/repos","events_url":"https://api.github.com/users/rob-c/events{/privacy}","received_events_url":"https://api.github.com/users/rob-c/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":25,"state":"open","created_at":"2016-05-12T12:39:16Z","updated_at":"2016-05-25T12:36:26Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-05-25T12:36:26Z","updated_at":"2016-05-25T12:51:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ganga-devs/ganga/pulls/522","html_url":"https://github.com/ganga-devs/ganga/pull/522","diff_url":"https://github.com/ganga-devs/ganga/pull/522.diff","patch_url":"https://github.com/ganga-devs/ganga/pull/522.patch"},"body":"It turns out there was an issue with how I was reading the env file for LHCb. In my Dirac config I was was using the Dirac `bashrc` file which is `source`able but the LHCb DIRAC environment that we cache is not sourceable. This PR fixes it so that our DIRAC code can read both DIRAC `envfile`-style files as well as our LHCb DIRAC cache.\r\n\r\nIt also avoids having to load a full shell and an external Python interpreter along with a few threads, just read the environment. This is what is being done in `ganga-proxy.py` anyway."},"comment":{"url":"https://api.github.com/repos/ganga-devs/ganga/issues/comments/221565807","html_url":"https://github.com/ganga-devs/ganga/pull/522#issuecomment-221565807","issue_url":"https://api.github.com/repos/ganga-devs/ganga/issues/522","id":221565807,"user":{"login":"rob-c","id":1102021,"avatar_url":"https://avatars.githubusercontent.com/u/1102021?v=3","gravatar_id":"","url":"https://api.github.com/users/rob-c","html_url":"https://github.com/rob-c","followers_url":"https://api.github.com/users/rob-c/followers","following_url":"https://api.github.com/users/rob-c/following{/other_user}","gists_url":"https://api.github.com/users/rob-c/gists{/gist_id}","starred_url":"https://api.github.com/users/rob-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rob-c/subscriptions","organizations_url":"https://api.github.com/users/rob-c/orgs","repos_url":"https://api.github.com/users/rob-c/repos","events_url":"https://api.github.com/users/rob-c/events{/privacy}","received_events_url":"https://api.github.com/users/rob-c/received_events","type":"User","site_admin":false},"created_at":"2016-05-25T12:51:11Z","updated_at":"2016-05-25T12:51:11Z","body":"I can source this file and then access Dirac through the python interface with the resulting environ and I have tracked down that (I think) the update_env isn't passing the file descriptors around from the os.pipe. But I may be wrong. All I know is the upate_env code crashes when it tries to run. (It could be related to the bash warnings/errors when sourcing the file, but it does 'work')"}}
{"actor":{"display_login":"rob-c"}}