{"action":"opened","issue":{"url":"https://api.github.com/repos/widdowquinn/pyani/issues/119","repository_url":"https://api.github.com/repos/widdowquinn/pyani","labels_url":"https://api.github.com/repos/widdowquinn/pyani/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/widdowquinn/pyani/issues/119/comments","events_url":"https://api.github.com/repos/widdowquinn/pyani/issues/119/events","html_url":"https://github.com/widdowquinn/pyani/issues/119","id":381080898,"node_id":"MDU6SXNzdWUzODEwODA4OTg=","number":119,"title":"\"`pyani.scripts` module not found\" when installing development branch","user":{"login":"nickp60","id":14367274,"node_id":"MDQ6VXNlcjE0MzY3Mjc0","avatar_url":"https://avatars0.githubusercontent.com/u/14367274?v=4","gravatar_id":"","url":"https://api.github.com/users/nickp60","html_url":"https://github.com/nickp60","followers_url":"https://api.github.com/users/nickp60/followers","following_url":"https://api.github.com/users/nickp60/following{/other_user}","gists_url":"https://api.github.com/users/nickp60/gists{/gist_id}","starred_url":"https://api.github.com/users/nickp60/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickp60/subscriptions","organizations_url":"https://api.github.com/users/nickp60/orgs","repos_url":"https://api.github.com/users/nickp60/repos","events_url":"https://api.github.com/users/nickp60/events{/privacy}","received_events_url":"https://api.github.com/users/nickp60/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-15T09:52:05Z","updated_at":"2018-11-15T09:52:05Z","closed_at":null,"author_association":"NONE","body":"#### Summary:\r\nWhen installed on the development branch, a \"module not found\" error occurs upon execution of `pyani`.  This only happens when installed with `python setup.py install`, but does not occur when set up with `python setup.py develop`.\r\n\r\n\r\n#### Description:\r\n It appears that pyani cannot locate all the subdirectories within the package.\r\n\r\n\r\n#### Reproducible Steps:\r\nSetting up a temporary environment on linux:\r\n```\r\ngit clone pyani\r\ncd pyani\r\ngit checkout development\r\nconda create -n tmp biopython mummer\r\n```\r\n#### Current Output:\r\n\r\nRunning working after setting up in develop mode:\r\n```\r\n$ python setup.py develop\r\n$ pyani -h\r\n# contents of help message\r\n```\r\nRunning fails when setting up in \"install\" mode\r\n```\r\n$ python setup.py install\r\n$ pyani -h\r\nTraceback (most recent call last):\r\nTraceback (most recent call last):\r\n  File \"/home/users/nickp60/miniconda3/envs/tmp/bin/pyani\", line 11, in <module>\r\n    load_entry_point('pyani==0.3.0a0', 'console_scripts', 'pyani')()\r\n  File \"/home/users/nickp60/miniconda3/envs/tmp/lib/python3.5/site-packages/pkg_resources/__init__.py\", line 484, in load_entry_point\r\n    return get_distribution(dist).load_entry_point(group, name)\r\n  File \"/home/users/nickp60/miniconda3/envs/tmp/lib/python3.5/site-packages/pkg_resources/__init__.py\", line 2707, in load_entry_point\r\n    return ep.load()\r\n  File \"/home/users/nickp60/miniconda3/envs/tmp/lib/python3.5/site-packages/pkg_resources/__init__.py\", line 2325, in load\r\n    return self.resolve()\r\n  File \"/home/users/nickp60/miniconda3/envs/tmp/lib/python3.5/site-packages/pkg_resources/__init__.py\", line 2331, in resolve\r\n    module = __import__(self.module_name, fromlist=['__name__'], level=0)\r\nImportError: No module named 'pyani.scripts'\r\n```\r\n\r\n\r\n#### Expected Output:\r\nWould expect to see the help message, etc\r\n\r\n#### Suggested fix\r\n I believe line 58 in `setup.py` needs to either be:\r\n  `packages=[\"pyani\", \"pyani/scripts\", \"pyani/scripts/subcommands\"],`\r\nor\r\n   `packages=setuptools.find_packages(),`\r\n\r\n#### pyani Version:\r\npyani==0.3.0a0\r\n\r\n#### Python Version:\r\nPython 3.5.0 :: Continuum Analytics, Inc.\r\n\r\n#### Operating System:\r\nIn this case, Debian 9.5.  This mainly appears to be an issue installing on Linux.  I have gotten it on OSX as well, but its harder to reproduce.\r\n"}}
{"actor":{"display_login":"nickp60"}}