{"action":"created","issue":{"url":"https://api.github.com/repos/LLNL/spack/issues/1036","repository_url":"https://api.github.com/repos/LLNL/spack","labels_url":"https://api.github.com/repos/LLNL/spack/issues/1036/labels{/name}","comments_url":"https://api.github.com/repos/LLNL/spack/issues/1036/comments","events_url":"https://api.github.com/repos/LLNL/spack/issues/1036/events","html_url":"https://github.com/LLNL/spack/issues/1036","id":159469097,"number":1036,"title":"PYTHONPATH must include installation directory","user":{"login":"adamjstewart","id":12021217,"avatar_url":"https://avatars.githubusercontent.com/u/12021217?v=3","gravatar_id":"","url":"https://api.github.com/users/adamjstewart","html_url":"https://github.com/adamjstewart","followers_url":"https://api.github.com/users/adamjstewart/followers","following_url":"https://api.github.com/users/adamjstewart/following{/other_user}","gists_url":"https://api.github.com/users/adamjstewart/gists{/gist_id}","starred_url":"https://api.github.com/users/adamjstewart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamjstewart/subscriptions","organizations_url":"https://api.github.com/users/adamjstewart/orgs","repos_url":"https://api.github.com/users/adamjstewart/repos","events_url":"https://api.github.com/users/adamjstewart/events{/privacy}","received_events_url":"https://api.github.com/users/adamjstewart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-06-09T17:53:04Z","updated_at":"2016-06-09T21:23:35Z","closed_at":null,"body":"I'm trying to install py-iminuit, which I'm working on a package for, but it fails with the following error:\r\n```\r\nTEST FAILED: /blues/gpfs/home/software/spack/opt/spack/linux-x86_64/gcc-6.1.0/py-iminuit-1.2-cp2mvhi2hmkxxya5hhmq3plzkoar6c7r/lib/python2.7/site-packages/ does NOT support .pth files\r\nerror: bad install directory or PYTHONPATH\r\n\r\nYou are attempting to install a package to a directory that is not\r\non PYTHONPATH and which Python does not read \".pth\" files from.  The\r\ninstallation directory you specified (via --install-dir, --prefix, or\r\nthe distutils default setting) was:\r\n\r\n    /blues/gpfs/home/software/spack/opt/spack/linux-x86_64/gcc-6.1.0/py-iminuit-1.2-cp2mvhi2hmkxxya5hhmq3plzkoar6c7r/lib/python2.7/site-packages/\r\n\r\nand your PYTHONPATH environment variable currently contains:\r\n\r\n    '/blues/gpfs/home/software/spack/opt/spack/linux-x86_64/gcc-6.1.0/py-cython-0.23.5-cpnjauarbt4asqv2jixnbhoaxzxtqnze/lib/python2.7/site-packages:/blues/gpfs/home/software/spack/opt/spack/linux-x86_64/gcc-6.1.0/py-matplotlib-1.4.3-m7w7su6vlayokqgzj7tmadxrn3omyzqg/lib/python2.7/site-packages:/blues/gpfs/home/software/spack/opt/spack/linux-x86_64/gcc-6.1.0/py-dateutil-2.5.2-tnhd7ke3wntxskmyqnhzuoshaef5xqtq/lib/python2.7/site-packages:/blues/gpfs/home/software/spack/opt/spack/linux-x86_64/gcc-6.1.0/py-setuptools-20.7.0-ximunmokiogzszdg2xl6azd67g4x6ooh/lib/python2.7/site-packages:/blues/gpfs/home/software/spack/opt/spack/linux-x86_64/gcc-6.1.0/py-six-1.10.0-mnj5r5qtaoaql64weituixzpnwkdq4qj/lib/python2.7/site-packages:/blues/gpfs/home/software/spack/opt/spack/linux-x86_64/gcc-6.1.0/py-funcsigs-0.4-wiiyrkibhhk7mbopqy2bt4gzzmaccq2x/lib/python2.7/site-packages:/blues/gpfs/home/software/spack/opt/spack/linux-x86_64/gcc-6.1.0/py-mock-1.3.0-kpfgtcedqyuu5b4t5dm6lr7eyabuymc2/lib/python2.7/site-packages:/blues/gpfs/home/software/spack/opt/spack/linux-x86_64/gcc-6.1.0/py-pbr-1.8.1-q23eqxzg2kle6pzev7dj6ujmbusnupvw/lib/python2.7/site-packages:/blues/gpfs/home/software/spack/opt/spack/linux-x86_64/gcc-6.1.0/py-nose-1.3.7-vm457qch3abnvhy76wc4a6eltoswbiph/lib/python2.7/site-packages:/blues/gpfs/home/software/spack/opt/spack/linux-x86_64/gcc-6.1.0/py-numpy-1.11.0-tduopn7ynp5tmzljhqy7ncgjxtfc4zau/lib/python2.7/site-packages:/blues/gpfs/home/software/spack/opt/spack/linux-x86_64/gcc-6.1.0/py-pyparsing-2.0.3-a6kohzoukgxopv57e5t53ejz3ifkhk74/lib/python2.7/site-packages:/blues/gpfs/home/software/spack/opt/spack/linux-x86_64/gcc-6.1.0/py-pytz-2016.3-npnc3eug3zky2j6skgjg4xizkanijpfn/lib/python2.7/site-packages'\r\n\r\nHere are some of your options for correcting the problem:\r\n\r\n* You can choose a different installation directory, i.e., one that is\r\n  on PYTHONPATH or supports .pth files\r\n\r\n* You can add the installation directory to the PYTHONPATH environment\r\n  variable.  (It must then also be on PYTHONPATH whenever you run\r\n  Python and want to use the package(s) you are installing.)\r\n\r\n* You can set up the installation directory to support \".pth\" files by\r\n  using one of the approaches described here:\r\n\r\n  https://pythonhosted.org/setuptools/easy_install.html#custom-installation-locations\r\n\r\nPlease make the appropriate changes for your system and try again.\r\n```\r\n\r\nIt seems that we need to add the installation directory to PYTHONPATH before installation. I could hack it for this package pretty easily, but is there a way to do this for all Python modules?"},"comment":{"url":"https://api.github.com/repos/LLNL/spack/issues/comments/225031168","html_url":"https://github.com/LLNL/spack/issues/1036#issuecomment-225031168","issue_url":"https://api.github.com/repos/LLNL/spack/issues/1036","id":225031168,"user":{"login":"adamjstewart","id":12021217,"avatar_url":"https://avatars.githubusercontent.com/u/12021217?v=3","gravatar_id":"","url":"https://api.github.com/users/adamjstewart","html_url":"https://github.com/adamjstewart","followers_url":"https://api.github.com/users/adamjstewart/followers","following_url":"https://api.github.com/users/adamjstewart/following{/other_user}","gists_url":"https://api.github.com/users/adamjstewart/gists{/gist_id}","starred_url":"https://api.github.com/users/adamjstewart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamjstewart/subscriptions","organizations_url":"https://api.github.com/users/adamjstewart/orgs","repos_url":"https://api.github.com/users/adamjstewart/repos","events_url":"https://api.github.com/users/adamjstewart/events{/privacy}","received_events_url":"https://api.github.com/users/adamjstewart/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T21:23:35Z","updated_at":"2016-06-09T21:23:35Z","body":"This problem is also occurring for me for py-matplotlib@1.5.1 now. That makes it slightly more serious since that's a popular package."}}
{"actor":{"display_login":"adamjstewart"}}