{"action":"created","issue":{"url":"https://api.github.com/repos/SEL4PROJ/seL4-CAmkES-L4v-dockerfiles/issues/3","repository_url":"https://api.github.com/repos/SEL4PROJ/seL4-CAmkES-L4v-dockerfiles","labels_url":"https://api.github.com/repos/SEL4PROJ/seL4-CAmkES-L4v-dockerfiles/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/SEL4PROJ/seL4-CAmkES-L4v-dockerfiles/issues/3/comments","events_url":"https://api.github.com/repos/SEL4PROJ/seL4-CAmkES-L4v-dockerfiles/issues/3/events","html_url":"https://github.com/SEL4PROJ/seL4-CAmkES-L4v-dockerfiles/issues/3","id":355676175,"node_id":"MDU6SXNzdWUzNTU2NzYxNzU=","number":3,"title":"Python 2 dependencies are missing","user":{"login":"tompreston","id":669843,"node_id":"MDQ6VXNlcjY2OTg0Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/669843?v=4","gravatar_id":"","url":"https://api.github.com/users/tompreston","html_url":"https://github.com/tompreston","followers_url":"https://api.github.com/users/tompreston/followers","following_url":"https://api.github.com/users/tompreston/following{/other_user}","gists_url":"https://api.github.com/users/tompreston/gists{/gist_id}","starred_url":"https://api.github.com/users/tompreston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tompreston/subscriptions","organizations_url":"https://api.github.com/users/tompreston/orgs","repos_url":"https://api.github.com/users/tompreston/repos","events_url":"https://api.github.com/users/tompreston/events{/privacy}","received_events_url":"https://api.github.com/users/tompreston/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-30T17:09:06Z","updated_at":"2018-08-31T08:43:39Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI'm using the *user* container to build [seL4 Tutorial 1](https://docs.sel4.systems/Tutorials/seL4_Tutorial_1) but I get the following unexpected error:\r\n```\r\ntpreston@in-container:/host$ mkdir build_hello_1\r\n\r\ntpreston@in-container:/host$ cd build_hello_1/\r\n\r\ntpreston@in-container:/host/build_hello_1$ ../init --plat pc99 --tut hello-1\r\nThe following files do not require modifications but are copied to provide context:\r\n        hello-1/src/util.c\r\nThe following files need to be modified to complete the tutorial\r\n        hello-1/src/main.c\r\n-- Configuring done\r\n-- Generating done\r\n-- Build files have been written to: /host/build_hello_1\r\n\r\ntpreston@in-container:/host/build_hello_1$ ninja\r\n[2/148] Generate invocation header gen_headers/arch/api/sel4_invocation.h\r\nFAILED: kernel/gen_headers/arch/api/sel4_invocation.h\r\ncd /host/build_hello_1/kernel && rm -f gen_headers/arch/api/sel4_invocation.h && python /h\r\nTraceback (most recent call last):\r\n  File \"/host/kernel/tools/invocation_header_gen.py\", line 21, in <module>\r\n    import tempita\r\nImportError: No module named tempita\r\n[3/148] Generate invocation header gen_headers/arch/api/invocation.h\r\nFAILED: kernel/gen_headers/arch/api/invocation.h\r\ncd /host/build_hello_1/kernel && rm -f gen_headers/arch/api/invocation.h && python /host/h\r\nTraceback (most recent call last):\r\n  File \"/host/kernel/tools/invocation_header_gen.py\", line 21, in <module>\r\n    import tempita\r\nImportError: No module named tempita\r\n[5/148] Generate invocation header gen_headers/api/invocation.h\r\nFAILED: kernel/gen_headers/api/invocation.h\r\ncd /host/build_hello_1/kernel && rm -f gen_headers/api/invocation.h && python /host/kerneh\r\nTraceback (most recent call last):\r\n  File \"/host/kernel/tools/invocation_header_gen.py\", line 21, in <module>\r\n    import tempita\r\nImportError: No module named tempita\r\n[6/148] Generate syscall invocations\r\nFAILED: kernel/gen_headers/arch/api/syscall.h\r\ncd /host/build_hello_1/kernel && /host/kernel/tools/xmllint.sh --noout --schema /host/kerh\r\nTraceback (most recent call last):\r\n  File \"/host/kernel/tools/syscall_header_gen.py\", line 22, in <module>\r\n    import tempita\r\nImportError: No module named tempita\r\n[7/148] Concatenating C files\r\nninja: build stopped: subcommand failed.\r\n```\r\n\r\nBecause python-tempita is only installed for Python 3:\r\n```\r\ntpreston@in-container:/host/build_hello_1$ python3 -c \"import tempita\"\r\n\r\ntpreston@in-container:/host/build_hello_1$ python -c \"import tempita\"\r\nTraceback (most recent call last):\r\n  File \"<string>\", line 1, in <module>\r\nImportError: No module named tempita\r\n\r\ntpreston@in-container:/host/build_hello_1$ find ~/.local/lib/ -name tempita\r\n/home/tpreston/.local/lib/python3.6/site-packages/tempita\r\n```\r\n\r\nSo I have to manually install it for Python 2 like so:\r\n```\r\nmkdir ~/.local/lib/python2.7/site-packages\r\npython ./kernel/tools/python-deps/setup.py install --prefix=~/.local\r\n```\r\n\r\nWhere in the Dockerfile is the correct place to install this? Presumably this should be done at the same time python-tempita is installed for Python 3."},"comment":{"url":"https://api.github.com/repos/SEL4PROJ/seL4-CAmkES-L4v-dockerfiles/issues/comments/417596451","html_url":"https://github.com/SEL4PROJ/seL4-CAmkES-L4v-dockerfiles/issues/3#issuecomment-417596451","issue_url":"https://api.github.com/repos/SEL4PROJ/seL4-CAmkES-L4v-dockerfiles/issues/3","id":417596451,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzU5NjQ1MQ==","user":{"login":"tompreston","id":669843,"node_id":"MDQ6VXNlcjY2OTg0Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/669843?v=4","gravatar_id":"","url":"https://api.github.com/users/tompreston","html_url":"https://github.com/tompreston","followers_url":"https://api.github.com/users/tompreston/followers","following_url":"https://api.github.com/users/tompreston/following{/other_user}","gists_url":"https://api.github.com/users/tompreston/gists{/gist_id}","starred_url":"https://api.github.com/users/tompreston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tompreston/subscriptions","organizations_url":"https://api.github.com/users/tompreston/orgs","repos_url":"https://api.github.com/users/tompreston/repos","events_url":"https://api.github.com/users/tompreston/events{/privacy}","received_events_url":"https://api.github.com/users/tompreston/received_events","type":"User","site_admin":false},"created_at":"2018-08-31T08:43:39Z","updated_at":"2018-08-31T08:43:39Z","author_association":"NONE","body":"Okay that fixed it! I'm now using `sel4-tutorials-manifest` master. Thank you @kent-mcleod.\r\n\r\nI'll leave this open until the other issue is fixed, although happy for you to close this and raise it somewhere else."}}
{"actor":{"display_login":"tompreston"}}