{"action":"closed","issue":{"url":"https://api.github.com/repos/Shippable/support/issues/3337","repository_url":"https://api.github.com/repos/Shippable/support","labels_url":"https://api.github.com/repos/Shippable/support/issues/3337/labels{/name}","comments_url":"https://api.github.com/repos/Shippable/support/issues/3337/comments","events_url":"https://api.github.com/repos/Shippable/support/issues/3337/events","html_url":"https://github.com/Shippable/support/issues/3337","id":204217253,"number":3337,"title":"Installed dependency in shippable.yml still leads to import failure","user":{"login":"Reagan","id":699379,"avatar_url":"https://avatars3.githubusercontent.com/u/699379?v=3","gravatar_id":"","url":"https://api.github.com/users/Reagan","html_url":"https://github.com/Reagan","followers_url":"https://api.github.com/users/Reagan/followers","following_url":"https://api.github.com/users/Reagan/following{/other_user}","gists_url":"https://api.github.com/users/Reagan/gists{/gist_id}","starred_url":"https://api.github.com/users/Reagan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reagan/subscriptions","organizations_url":"https://api.github.com/users/Reagan/orgs","repos_url":"https://api.github.com/users/Reagan/repos","events_url":"https://api.github.com/users/Reagan/events{/privacy}","received_events_url":"https://api.github.com/users/Reagan/received_events","type":"User","site_admin":false},"labels":[{"id":334056187,"url":"https://api.github.com/repos/Shippable/support/labels/need%20info%20from%20customer","name":"need info from customer","color":"0e8a16","default":false},{"id":84765634,"url":"https://api.github.com/repos/Shippable/support/labels/question","name":"question","color":"f9d0c4","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-31T06:45:58Z","updated_at":"2017-03-02T02:13:46Z","closed_at":"2017-03-02T02:13:46Z","body":"When setting up my `shippable.yml` file, I include the script `pip install celery` and later on run py.test on python code that requires this `celery` dependency. However, i still get an `ImportError: No module named celery` error. \r\n\r\nHere's my `shippable.yml` file: \r\n\r\n    language: python\r\n\r\n    python:\r\n    - 2.7\r\n\r\n    install:\r\n      - pip install celery\r\n    \r\n    before_script: \r\n      - mkdir -p shippable/testresults\r\n      - mkdir -p shippable/codecoverage\r\n\r\n    script:\r\n      - cd source_apps/\r\n      - py.test\r\n      - cd ..\r\n\r\n    cache: true\r\n\r\nand here's the build error message:\r\n\r\n    py.test 2s  \r\n    ============================= test session starts ==============================\r\n    platform linux2 -- Python 2.7.6, pytest-2.8.7, py-1.4.31, pluggy-0.3.1\r\n    rootdir: /source_apps, inifile: \r\n    collected 0 items / 2 errors\r\n\r\n    ==================================== ERRORS     ====================================\r\n    _________________________ ERROR collecting test_pytest.py _________________________\r\n    test_pytest.py:1: in <module>\r\n        ...\r\n        import celery\r\n    E   ImportError: No module named celery\r\n    =========================== 2 error in 0.44 seconds ============================\r\n\r\ni've also tried `sudo aptitude install python-celery` and well setting a specific version of celery for installation i.e. `sudo pip install celery==3.1.23` however this build error persists. Any ideas? \r\n\r\n* sorry if this is cross-posted"}}
{"actor":{"display_login":"avinci"}}