{"action":"created","issue":{"url":"https://api.github.com/repos/kayhayen/Nuitka/issues/62","repository_url":"https://api.github.com/repos/kayhayen/Nuitka","labels_url":"https://api.github.com/repos/kayhayen/Nuitka/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/kayhayen/Nuitka/issues/62/comments","events_url":"https://api.github.com/repos/kayhayen/Nuitka/issues/62/events","html_url":"https://github.com/kayhayen/Nuitka/issues/62","id":304693869,"number":62,"title":"Boostrap issue when running generated exe","user":{"login":"mattvend","id":6509352,"avatar_url":"https://avatars1.githubusercontent.com/u/6509352?v=4","gravatar_id":"","url":"https://api.github.com/users/mattvend","html_url":"https://github.com/mattvend","followers_url":"https://api.github.com/users/mattvend/followers","following_url":"https://api.github.com/users/mattvend/following{/other_user}","gists_url":"https://api.github.com/users/mattvend/gists{/gist_id}","starred_url":"https://api.github.com/users/mattvend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattvend/subscriptions","organizations_url":"https://api.github.com/users/mattvend/orgs","repos_url":"https://api.github.com/users/mattvend/repos","events_url":"https://api.github.com/users/mattvend/events{/privacy}","received_events_url":"https://api.github.com/users/mattvend/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-13T09:51:54Z","updated_at":"2018-03-16T13:41:20Z","closed_at":null,"author_association":"NONE","body":"* Nuitka version: 0.5.29rc4\r\n* Python version: Python 3.6.1 Anaconda\r\n* Windows 10\r\n* Nuitka downloaded from site and installed from Nuitka-5.0.2940.win-amd64.py36.msi\r\n* I am using a virtual env\r\n\r\nI am freezing a python command line program. I had to update to the RC version as Nuitka-5.1.281.win-amd64.py36.msi was not able to freeze the program (same warning messages as issue#60, can not find ... as absolute import, executable not generated).  \r\n\r\n0.5.29RC 4 generates the executable, but once called it fails.\r\n\r\nThe error message is the following:\r\n`    import numpy as np  `\r\n`  File \"<frozen importlib._bootstrap>\", line 961, in _find_and_load  `\r\n`  File \"<frozen importlib._bootstrap>\", line 950, in _find_and_load_unlocked  `\r\n`  File \"<frozen importlib._bootstrap>\", line 646, in _load_unlocked  `\r\n`  File \"<frozen importlib._bootstrap>\", line 616, in _load_backward_compatible  `\r\n`KeyError: 'numpy'  `\r\n`Traceback (most recent call last):  `\r\n\r\nI checked that numpy was already installed in the virtual environment, there is no problem.\r\nThere was another module giving the same issue. I placed the python module file next to executable and the issue is gone.\r\n\r\nPlease tell me what other checks I can do to solve the issue."},"comment":{"url":"https://api.github.com/repos/kayhayen/Nuitka/issues/comments/373716315","html_url":"https://github.com/kayhayen/Nuitka/issues/62#issuecomment-373716315","issue_url":"https://api.github.com/repos/kayhayen/Nuitka/issues/62","id":373716315,"user":{"login":"mattvend","id":6509352,"avatar_url":"https://avatars1.githubusercontent.com/u/6509352?v=4","gravatar_id":"","url":"https://api.github.com/users/mattvend","html_url":"https://github.com/mattvend","followers_url":"https://api.github.com/users/mattvend/followers","following_url":"https://api.github.com/users/mattvend/following{/other_user}","gists_url":"https://api.github.com/users/mattvend/gists{/gist_id}","starred_url":"https://api.github.com/users/mattvend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattvend/subscriptions","organizations_url":"https://api.github.com/users/mattvend/orgs","repos_url":"https://api.github.com/users/mattvend/repos","events_url":"https://api.github.com/users/mattvend/events{/privacy}","received_events_url":"https://api.github.com/users/mattvend/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T13:41:20Z","updated_at":"2018-03-16T13:41:20Z","author_association":"NONE","body":"Issue seems more complex than I thought.\r\n\r\nIf I build my program, not using any virutal env on my machine but the system wide Python, then it works perfectly. I can launch the executable, and it does what it is supposed to do.\r\n\r\nI have a gui program that I launch from pycharm, and this gui program uses the generated executable with a subprocess.popen() call. Interestingly enough, in this case, the above issue reappears.\r\n\r\nThe only difference is that the Pycharm configuration uses a virtual env as for Python interpreter. Which is very much ok to me, but I fail to see how it can possibly impact the execution of a console executable launched from subprocess.popen()."}}
{"actor":{"display_login":"mattvend"}}