{"action":"opened","issue":{"url":"https://api.github.com/repos/jupyterhub/jupyterhub/issues/870","repository_url":"https://api.github.com/repos/jupyterhub/jupyterhub","labels_url":"https://api.github.com/repos/jupyterhub/jupyterhub/issues/870/labels{/name}","comments_url":"https://api.github.com/repos/jupyterhub/jupyterhub/issues/870/comments","events_url":"https://api.github.com/repos/jupyterhub/jupyterhub/issues/870/events","html_url":"https://github.com/jupyterhub/jupyterhub/issues/870","id":189368940,"number":870,"title":"Nosetests not working in Anaconda Env","user":{"login":"ZelphirKaltstahl","id":11130348,"avatar_url":"https://avatars.githubusercontent.com/u/11130348?v=3","gravatar_id":"","url":"https://api.github.com/users/ZelphirKaltstahl","html_url":"https://github.com/ZelphirKaltstahl","followers_url":"https://api.github.com/users/ZelphirKaltstahl/followers","following_url":"https://api.github.com/users/ZelphirKaltstahl/following{/other_user}","gists_url":"https://api.github.com/users/ZelphirKaltstahl/gists{/gist_id}","starred_url":"https://api.github.com/users/ZelphirKaltstahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZelphirKaltstahl/subscriptions","organizations_url":"https://api.github.com/users/ZelphirKaltstahl/orgs","repos_url":"https://api.github.com/users/ZelphirKaltstahl/repos","events_url":"https://api.github.com/users/ZelphirKaltstahl/events{/privacy}","received_events_url":"https://api.github.com/users/ZelphirKaltstahl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-15T11:38:00Z","updated_at":"2016-11-15T11:38:00Z","closed_at":null,"body":"**How to reproduce the issue**\r\n\r\nPrepare an env:\r\n\r\n1. create a conda env\r\n2. activate that conda env\r\n3. install nodejs and npm into the conda env with: `conda install -c javascript nodejs` (installs both)\r\n\r\nGet the code:\r\n\r\n1. clone the jupyterhub repository into folder `A`\r\n\r\nInstall reqs:\r\n\r\n1. install requirements with: `pip install -r dev-requirements.txt -e .`\r\n2. install configurable-http-proxy: `npm install -g configurable-http-proxy`\r\n3. create default config: `jupyterhub --generate-config`\r\n\r\nRun tests:\r\n\r\n1. `nosetests`\r\n\r\n**What you expected to happen**\r\n\r\nNosetests should run without issue.\r\n\r\n**What actually happens**\r\n\r\nI get errors:\r\n\r\n    EEEEEEEEEEEEEEECouldn't set CWD to /home/user/development/jupyterhub (/home/user/development/jupyterhub)\r\n    Couldn't set CWD to /home/user/development (/home/user/development)\r\n    Couldn't set CWD to /home/user (/home/user)\r\n    Couldn't set CWD to /home (/home)\r\n    Couldn't set CWD at all (/home), using temp dir\r\n    .E...\r\n\r\nThen all the tests simply fail because they do not find their imports. For example:\r\n\r\n    ERROR: Failure: ImportError (No module named 'pamela')\r\n\r\n**Share what version of JupyterHub you are using**\r\n\r\nI am using the latest release: release 0.7b1\r\n\r\nRunning `jupyter troubleshoot` from the command line, if possible, and posting\r\nits output would also be helpful.\r\n\r\n```\r\n        DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.\r\n        $PATH:\r\n        \t/home/user/development/anaconda3/envs/jupyterhub/bin\r\n        \t/home/user/development/anaconda3/envs/jupyterhub/bin\r\n        \t/home/user/development/anaconda3/bin\r\n        \t/home/user/.local/bin\r\n        \t/home/user/development/stack/stack-1.2.0/\r\n        \t/usr/local/texlive/2016/bin/x86_64-linux/\r\n        \t/usr/local/sbin\r\n        \t/usr/local/bin\r\n        \t/usr/sbin\r\n        \t/usr/bin\r\n        \t/sbin\r\n        \t/bin\r\n        \t/usr/games\r\n        \t/usr/local/games\r\n        \t/snap/bin\r\n        \r\n        sys.path:\r\n        \t/home/user/development/anaconda3/envs/jupyterhub/bin\r\n        \t/home/user/development/anaconda3/envs/jupyterhub/lib/python35.zip\r\n        \t/home/user/development/anaconda3/envs/jupyterhub/lib/python3.5\r\n        \t/home/user/development/anaconda3/envs/jupyterhub/lib/python3.5/plat-linux\r\n        \t/home/user/development/anaconda3/envs/jupyterhub/lib/python3.5/lib-dynload\r\n        \t/home/user/development/anaconda3/envs/jupyterhub/lib/python3.5/site-packages\r\n        \t/home/user/development/jupyterhub\r\n        \t/home/user/development/anaconda3/envs/jupyterhub/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg\r\n        \r\n        sys.executable:\r\n        \t/home/user/development/anaconda3/envs/jupyterhub/bin/python\r\n        \r\n        sys.version:\r\n        \t3.5.2 |Continuum Analytics, Inc.| (default, Jul  2 2016, 17:53:06) \r\n        \t[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]\r\n        \r\n        platform.platform():\r\n        \tLinux-4.4.0-45-generic-x86_64-with-debian-stretch-sid\r\n        \r\n        which -a jupyter:\r\n        \t/home/user/development/anaconda3/envs/jupyterhub/bin/jupyter\r\n        \t/home/user/development/anaconda3/envs/jupyterhub/bin/jupyter\r\n        \t/home/user/development/anaconda3/bin/jupyter\r\n        \r\n        pip list:\r\n        \talembic (0.8.8)\r\n        \tcodecov (2.0.5)\r\n        \tcoverage (4.2)\r\n        \tdecorator (4.0.10)\r\n        \tentrypoints (0.2.2)\r\n        \tipykernel (4.5.0)\r\n        \tipython (5.1.0)\r\n        \tipython-genutils (0.1.0)\r\n        \tJinja2 (2.8)\r\n        \tjsonschema (2.5.1)\r\n        \tjupyter-client (4.4.0)\r\n        \tjupyter-core (4.2.0)\r\n        \tjupyterhub (0.7.0b1, /home/user/development/jupyterhub)\r\n        \tMako (1.0.6)\r\n        \tMarkupSafe (0.23)\r\n        \tmistune (0.7.3)\r\n        \tmock (2.0.0)\r\n        \tnbconvert (4.2.0)\r\n        \tnbformat (4.1.0)\r\n        \tnotebook (4.2.3)\r\n        \tpamela (0.2.1)\r\n        \tpbr (1.10.0)\r\n        \tpexpect (4.2.1)\r\n        \tpickleshare (0.7.4)\r\n        \tpip (9.0.1)\r\n        \tprompt-toolkit (1.0.9)\r\n        \tptyprocess (0.5.1)\r\n        \tpy (1.4.31)\r\n        \tPygments (2.1.3)\r\n        \tpytest (3.0.4)\r\n        \tpytest-cov (2.4.0)\r\n        \tpython-editor (1.0.1)\r\n        \tpyzmq (16.0.1)\r\n        \trequests (2.12.0)\r\n        \trequests-mock (1.1.0)\r\n        \tsetuptools (27.2.0)\r\n        \tsimplegeneric (0.8.1)\r\n        \tsix (1.10.0)\r\n        \tSQLAlchemy (1.1.3)\r\n        \tterminado (0.6)\r\n        \ttornado (4.4.2)\r\n        \ttraitlets (4.3.1)\r\n        \twcwidth (0.1.7)\r\n        \twheel (0.29.0)\r\n        \r\n        conda list:\r\n        \t# packages in environment at /home/user/development/anaconda3/envs/jupyterhub:\r\n        \t#\r\n        \talembic                   0.8.8                     <pip>\r\n        \targparse                  1.4.0                     <pip>\r\n        \tcodecov                   2.0.5                     <pip>\r\n        \tcoverage                  4.2                       <pip>\r\n        \tdecorator                 4.0.10                    <pip>\r\n        \tentrypoints               0.2.2                     <pip>\r\n        \tipykernel                 4.5.0                     <pip>\r\n        \tipython                   5.1.0                     <pip>\r\n        \tipython-genutils          0.1.0                     <pip>\r\n        \tJinja2                    2.8                       <pip>\r\n        \tjsonschema                2.5.1                     <pip>\r\n        \tjupyter-client            4.4.0                     <pip>\r\n        \tjupyter-core              4.2.0                     <pip>\r\n        \tMako                      1.0.6                     <pip>\r\n        \tMarkupSafe                0.23                      <pip>\r\n        \tmistune                   0.7.3                     <pip>\r\n        \tmock                      2.0.0                     <pip>\r\n        \tnbconvert                 4.2.0                     <pip>\r\n        \tnbformat                  4.1.0                     <pip>\r\n        \tnodejs                    4.4.0                         0    javascript\r\n        \tnotebook                  4.2.3                     <pip>\r\n        \topenssl                   1.0.2j                        0  \r\n        \tpamela                    0.2.1                     <pip>\r\n        \tpbr                       1.10.0                    <pip>\r\n        \tpexpect                   4.2.1                     <pip>\r\n        \tpickleshare               0.7.4                     <pip>\r\n        \tpip                       9.0.1                    py35_0  \r\n        \tprompt-toolkit            1.0.9                     <pip>\r\n        \tptyprocess                0.5.1                     <pip>\r\n        \tpy                        1.4.31                    <pip>\r\n        \tPygments                  2.1.3                     <pip>\r\n        \tpytest                    3.0.4                     <pip>\r\n        \tpytest-cov                2.4.0                     <pip>\r\n        \tpython                    3.5.2                         0  \r\n        \tpython-editor             1.0.1                     <pip>\r\n        \tpyzmq                     16.0.1                    <pip>\r\n        \treadline                  6.2                           2  \r\n        \trequests                  2.12.0                    <pip>\r\n        \trequests-mock             1.1.0                     <pip>\r\n        \tsetuptools                27.2.0                   py35_0  \r\n        \tsimplegeneric             0.8.1                     <pip>\r\n        \tsix                       1.10.0                    <pip>\r\n        \tSQLAlchemy                1.1.3                     <pip>\r\n        \tsqlite                    3.13.0                        0  \r\n        \tterminado                 0.6                       <pip>\r\n        \ttk                        8.5.18                        0  \r\n        \ttornado                   4.4.2                     <pip>\r\n        \ttraitlets                 4.3.1                     <pip>\r\n        \twcwidth                   0.1.7                     <pip>\r\n        \twheel                     0.29.0                   py35_0  \r\n        \txz                        5.2.2                         0  \r\n        \tzlib                      1.2.8                         3\r\n```\r\n"}}
{"actor":{"display_login":"ZelphirKaltstahl"}}