{"action":"opened","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/3863","repository_url":"https://api.github.com/repos/pytest-dev/pytest","labels_url":"https://api.github.com/repos/pytest-dev/pytest/issues/3863/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest/issues/3863/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest/issues/3863/events","html_url":"https://github.com/pytest-dev/pytest/issues/3863","id":353382821,"node_id":"MDU6SXNzdWUzNTMzODI4MjE=","number":3863,"title":"Pytest 3.7.2 fails with ModuleNotFoundError on Python 3.6.","user":{"login":"ejolly","id":8481982,"node_id":"MDQ6VXNlcjg0ODE5ODI=","avatar_url":"https://avatars0.githubusercontent.com/u/8481982?v=4","gravatar_id":"","url":"https://api.github.com/users/ejolly","html_url":"https://github.com/ejolly","followers_url":"https://api.github.com/users/ejolly/followers","following_url":"https://api.github.com/users/ejolly/following{/other_user}","gists_url":"https://api.github.com/users/ejolly/gists{/gist_id}","starred_url":"https://api.github.com/users/ejolly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejolly/subscriptions","organizations_url":"https://api.github.com/users/ejolly/orgs","repos_url":"https://api.github.com/users/ejolly/repos","events_url":"https://api.github.com/users/ejolly/events{/privacy}","received_events_url":"https://api.github.com/users/ejolly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-23T13:32:16Z","updated_at":"2018-08-23T13:32:16Z","closed_at":null,"author_association":"NONE","body":"I'm running into an issue with the latest version of pytest that was mentioned previously here https://github.com/pytest-dev/pytest/issues/2287 and here https://github.com/pytest-dev/pytest/issues/2132. Specifically with python 3.6.3 and pytest 3.7.2, the `pytest` command fails because it can't import anything properly. Critically, this is **not** an issue if I use `pytest==3.6.1`. This error is consistent on my local platform (Mac OS 10.11), on travis using a python 3.6 environment, and on a separate linux machine. It's currently breaking Travis CI for at least 2 other projects I develop/contribute to unless I specifically tell Travis to use `pytest==3.6.1`:\r\n\r\nhttps://github.com/ejolly/pymer4\r\nhttps://github.com/cosanlab/nltools\r\n\r\nRunning `python -m pytest` doesn't seem to work either. Is there a different way that testing should be conducted on newer version of pytest? Or some additional setup required? I've included just a log of testing on my local machine below with the [pymer4](https://github.com/ejolly/pymer4) project, but am happy to include any more info required to help solve the issue. \r\n\r\nThanks in advance.\r\n \r\n```\r\n================================================ test session starts =================================================\r\nplatform darwin -- Python 3.6.3, pytest-3.7.2, py-1.5.4, pluggy-0.7.1\r\nrootdir: /Users/Esh/Documents/Python/Cosan/pymer4, inifile:\r\ncollected 10 items\r\n\r\npymer4/tests/test_models.py EEEEEEEE                                                                           [ 80%]\r\npymer4/tests/test_simulate.py EE                                                                               [100%]\r\n\r\n======================================================= ERRORS =======================================================\r\n_________________________________________ ERROR at setup of test_gaussian_lm _________________________________________\r\n\r\nself = <Package '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4'>\r\n\r\n    def _importtestmodule(self):\r\n        # we assume we are only called once per module\r\n        importmode = self.config.getoption(\"--import-mode\")\r\n        try:\r\n>           mod = self.fspath.pyimport(ensuresyspath=importmode)\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:476:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = local('/Users/Esh/Documents/Python/Cosan/pymer4/pymer4/__init__.py'), modname = 'pymer4.pymer4'\r\nensuresyspath = 'prepend'\r\n\r\n    def pyimport(self, modname=None, ensuresyspath=True):\r\n        \"\"\" return path as an imported python module.\r\n\r\n            If modname is None, look for the containing package\r\n            and construct an according module name.\r\n            The module will be put/looked up in sys.modules.\r\n            if ensuresyspath is True then the root dir for importing\r\n            the file (taking __init__.py files into account) will\r\n            be prepended to sys.path if it isn't there already.\r\n            If ensuresyspath==\"append\" the root dir will be appended\r\n            if it isn't already contained in sys.path.\r\n            if ensuresyspath is False no modification of syspath happens.\r\n            \"\"\"\r\n        if not self.check():\r\n            raise py.error.ENOENT(self)\r\n\r\n        pkgpath = None\r\n        if modname is None:\r\n            pkgpath = self.pypkgpath()\r\n            if pkgpath is not None:\r\n                pkgroot = pkgpath.dirpath()\r\n                names = self.new(ext=\"\").relto(pkgroot).split(self.sep)\r\n                if names[-1] == \"__init__\":\r\n                    names.pop()\r\n                modname = \".\".join(names)\r\n            else:\r\n                pkgroot = self.dirpath()\r\n                modname = self.purebasename\r\n\r\n            self._ensuresyspath(ensuresyspath, pkgroot)\r\n>           __import__(modname)\r\nE           ModuleNotFoundError: No module named 'pymer4.pymer4'\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/py/_path/local.py:668: ModuleNotFoundError\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nself = <CallInfo when='setup' exception: ImportError while importing test module '/Users/Esh/Documents/Python/Cosan/pymer4/py...re your test modules/packages have valid Python names.\r\nTraceback:\r\nModuleNotFoundError: No module named 'pymer4.pymer4'>\r\nfunc = <function call_runtest_hook.<locals>.<lambda> at 0x105407bf8>, when = 'setup'\r\ntreat_keyboard_interrupt_as_exception = False\r\n\r\n    def __init__(self, func, when, treat_keyboard_interrupt_as_exception=False):\r\n        #: context of invocation: one of \"setup\", \"call\",\r\n        #: \"teardown\", \"memocollect\"\r\n        self.when = when\r\n        self.start = time()\r\n        try:\r\n>           self.result = func()\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:201:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:183: in <lambda>\r\n    lambda: ihook(item=item, **kwds),\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/hooks.py:258: in __call__\r\n    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/manager.py:67: in _hookexec\r\n    return self._inner_hookexec(hook, methods, kwargs)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/manager.py:61: in <lambda>\r\n    firstresult=hook.spec_opts.get('firstresult'),\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:104: in pytest_runtest_setup\r\n    item.session._setupstate.prepare(item)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:370: in prepare\r\n    col.setup()\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:523: in setup\r\n    setup_module = _get_xunit_setup_teardown(self.obj, \"setUpModule\")\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:269: in fget\r\n    self._obj = obj = self._getobj()\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:466: in _getobj\r\n    return self._importtestmodule()\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = <Package '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4'>\r\n\r\n    def _importtestmodule(self):\r\n        # we assume we are only called once per module\r\n        importmode = self.config.getoption(\"--import-mode\")\r\n        try:\r\n            mod = self.fspath.pyimport(ensuresyspath=importmode)\r\n        except SyntaxError:\r\n            raise self.CollectError(\r\n                _pytest._code.ExceptionInfo().getrepr(style=\"short\")\r\n            )\r\n        except self.fspath.ImportMismatchError:\r\n            e = sys.exc_info()[1]\r\n            raise self.CollectError(\r\n                \"import file mismatch:\\n\"\r\n                \"imported module %r has this __file__ attribute:\\n\"\r\n                \"  %s\\n\"\r\n                \"which is not the same as the test file we want to collect:\\n\"\r\n                \"  %s\\n\"\r\n                \"HINT: remove __pycache__ / .pyc files and/or use a \"\r\n                \"unique basename for your test file modules\" % e.args\r\n            )\r\n        except ImportError:\r\n            from _pytest._code.code import ExceptionInfo\r\n\r\n            exc_info = ExceptionInfo()\r\n            if self.config.getoption(\"verbose\") < 2:\r\n                exc_info.traceback = exc_info.traceback.filter(filter_traceback)\r\n            exc_repr = (\r\n                exc_info.getrepr(style=\"short\")\r\n                if exc_info.traceback\r\n                else exc_info.exconly()\r\n            )\r\n            formatted_tb = safe_str(exc_repr)\r\n            raise self.CollectError(\r\n                \"ImportError while importing test module '{fspath}'.\\n\"\r\n                \"Hint: make sure your test modules/packages have valid Python names.\\n\"\r\n                \"Traceback:\\n\"\r\n>               \"{traceback}\".format(fspath=self.fspath, traceback=formatted_tb)\r\n            )\r\nE           _pytest.nodes.Collector.CollectError: ImportError while importing test module '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4/__init__.py'.\r\nE           Hint: make sure your test modules/packages have valid Python names.\r\nE           Traceback:\r\nE           ModuleNotFoundError: No module named 'pymer4.pymer4'\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:508: CollectError\r\n________________________________________ ERROR at setup of test_gaussian_lmm _________________________________________\r\n\r\nself = <Package '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4'>\r\n\r\n    def _importtestmodule(self):\r\n        # we assume we are only called once per module\r\n        importmode = self.config.getoption(\"--import-mode\")\r\n        try:\r\n>           mod = self.fspath.pyimport(ensuresyspath=importmode)\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:476:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = local('/Users/Esh/Documents/Python/Cosan/pymer4/pymer4/__init__.py'), modname = 'pymer4.pymer4'\r\nensuresyspath = 'prepend'\r\n\r\n    def pyimport(self, modname=None, ensuresyspath=True):\r\n        \"\"\" return path as an imported python module.\r\n\r\n            If modname is None, look for the containing package\r\n            and construct an according module name.\r\n            The module will be put/looked up in sys.modules.\r\n            if ensuresyspath is True then the root dir for importing\r\n            the file (taking __init__.py files into account) will\r\n            be prepended to sys.path if it isn't there already.\r\n            If ensuresyspath==\"append\" the root dir will be appended\r\n            if it isn't already contained in sys.path.\r\n            if ensuresyspath is False no modification of syspath happens.\r\n            \"\"\"\r\n        if not self.check():\r\n            raise py.error.ENOENT(self)\r\n\r\n        pkgpath = None\r\n        if modname is None:\r\n            pkgpath = self.pypkgpath()\r\n            if pkgpath is not None:\r\n                pkgroot = pkgpath.dirpath()\r\n                names = self.new(ext=\"\").relto(pkgroot).split(self.sep)\r\n                if names[-1] == \"__init__\":\r\n                    names.pop()\r\n                modname = \".\".join(names)\r\n            else:\r\n                pkgroot = self.dirpath()\r\n                modname = self.purebasename\r\n\r\n            self._ensuresyspath(ensuresyspath, pkgroot)\r\n>           __import__(modname)\r\nE           ModuleNotFoundError: No module named 'pymer4.pymer4'\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/py/_path/local.py:668: ModuleNotFoundError\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nself = <CallInfo when='setup' exception: ImportError while importing test module '/Users/Esh/Documents/Python/Cosan/pymer4/py...re your test modules/packages have valid Python names.\r\nTraceback:\r\nModuleNotFoundError: No module named 'pymer4.pymer4'>\r\nfunc = <function call_runtest_hook.<locals>.<lambda> at 0x1104428c8>, when = 'setup'\r\ntreat_keyboard_interrupt_as_exception = False\r\n\r\n    def __init__(self, func, when, treat_keyboard_interrupt_as_exception=False):\r\n        #: context of invocation: one of \"setup\", \"call\",\r\n        #: \"teardown\", \"memocollect\"\r\n        self.when = when\r\n        self.start = time()\r\n        try:\r\n>           self.result = func()\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:201:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:183: in <lambda>\r\n    lambda: ihook(item=item, **kwds),\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/hooks.py:258: in __call__\r\n    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/manager.py:67: in _hookexec\r\n    return self._inner_hookexec(hook, methods, kwargs)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/manager.py:61: in <lambda>\r\n    firstresult=hook.spec_opts.get('firstresult'),\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:104: in pytest_runtest_setup\r\n    item.session._setupstate.prepare(item)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:366: in prepare\r\n    py.builtin._reraise(*col._prepare_exc)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:370: in prepare\r\n    col.setup()\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:523: in setup\r\n    setup_module = _get_xunit_setup_teardown(self.obj, \"setUpModule\")\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:269: in fget\r\n    self._obj = obj = self._getobj()\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:466: in _getobj\r\n    return self._importtestmodule()\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = <Package '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4'>\r\n\r\n    def _importtestmodule(self):\r\n        # we assume we are only called once per module\r\n        importmode = self.config.getoption(\"--import-mode\")\r\n        try:\r\n            mod = self.fspath.pyimport(ensuresyspath=importmode)\r\n        except SyntaxError:\r\n            raise self.CollectError(\r\n                _pytest._code.ExceptionInfo().getrepr(style=\"short\")\r\n            )\r\n        except self.fspath.ImportMismatchError:\r\n            e = sys.exc_info()[1]\r\n            raise self.CollectError(\r\n                \"import file mismatch:\\n\"\r\n                \"imported module %r has this __file__ attribute:\\n\"\r\n                \"  %s\\n\"\r\n                \"which is not the same as the test file we want to collect:\\n\"\r\n                \"  %s\\n\"\r\n                \"HINT: remove __pycache__ / .pyc files and/or use a \"\r\n                \"unique basename for your test file modules\" % e.args\r\n            )\r\n        except ImportError:\r\n            from _pytest._code.code import ExceptionInfo\r\n\r\n            exc_info = ExceptionInfo()\r\n            if self.config.getoption(\"verbose\") < 2:\r\n                exc_info.traceback = exc_info.traceback.filter(filter_traceback)\r\n            exc_repr = (\r\n                exc_info.getrepr(style=\"short\")\r\n                if exc_info.traceback\r\n                else exc_info.exconly()\r\n            )\r\n            formatted_tb = safe_str(exc_repr)\r\n            raise self.CollectError(\r\n                \"ImportError while importing test module '{fspath}'.\\n\"\r\n                \"Hint: make sure your test modules/packages have valid Python names.\\n\"\r\n                \"Traceback:\\n\"\r\n>               \"{traceback}\".format(fspath=self.fspath, traceback=formatted_tb)\r\n            )\r\nE           _pytest.nodes.Collector.CollectError: ImportError while importing test module '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4/__init__.py'.\r\nE           Hint: make sure your test modules/packages have valid Python names.\r\nE           Traceback:\r\nE           ModuleNotFoundError: No module named 'pymer4.pymer4'\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:508: CollectError\r\n__________________________________________ ERROR at setup of test_post_hoc ___________________________________________\r\n\r\nself = <Package '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4'>\r\n\r\n    def _importtestmodule(self):\r\n        # we assume we are only called once per module\r\n        importmode = self.config.getoption(\"--import-mode\")\r\n        try:\r\n>           mod = self.fspath.pyimport(ensuresyspath=importmode)\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:476:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = local('/Users/Esh/Documents/Python/Cosan/pymer4/pymer4/__init__.py'), modname = 'pymer4.pymer4'\r\nensuresyspath = 'prepend'\r\n\r\n    def pyimport(self, modname=None, ensuresyspath=True):\r\n        \"\"\" return path as an imported python module.\r\n\r\n            If modname is None, look for the containing package\r\n            and construct an according module name.\r\n            The module will be put/looked up in sys.modules.\r\n            if ensuresyspath is True then the root dir for importing\r\n            the file (taking __init__.py files into account) will\r\n            be prepended to sys.path if it isn't there already.\r\n            If ensuresyspath==\"append\" the root dir will be appended\r\n            if it isn't already contained in sys.path.\r\n            if ensuresyspath is False no modification of syspath happens.\r\n            \"\"\"\r\n        if not self.check():\r\n            raise py.error.ENOENT(self)\r\n\r\n        pkgpath = None\r\n        if modname is None:\r\n            pkgpath = self.pypkgpath()\r\n            if pkgpath is not None:\r\n                pkgroot = pkgpath.dirpath()\r\n                names = self.new(ext=\"\").relto(pkgroot).split(self.sep)\r\n                if names[-1] == \"__init__\":\r\n                    names.pop()\r\n                modname = \".\".join(names)\r\n            else:\r\n                pkgroot = self.dirpath()\r\n                modname = self.purebasename\r\n\r\n            self._ensuresyspath(ensuresyspath, pkgroot)\r\n>           __import__(modname)\r\nE           ModuleNotFoundError: No module named 'pymer4.pymer4'\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/py/_path/local.py:668: ModuleNotFoundError\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nself = <CallInfo when='setup' exception: ImportError while importing test module '/Users/Esh/Documents/Python/Cosan/pymer4/py...re your test modules/packages have valid Python names.\r\nTraceback:\r\nModuleNotFoundError: No module named 'pymer4.pymer4'>\r\nfunc = <function call_runtest_hook.<locals>.<lambda> at 0x110609ae8>, when = 'setup'\r\ntreat_keyboard_interrupt_as_exception = False\r\n\r\n    def __init__(self, func, when, treat_keyboard_interrupt_as_exception=False):\r\n        #: context of invocation: one of \"setup\", \"call\",\r\n        #: \"teardown\", \"memocollect\"\r\n        self.when = when\r\n        self.start = time()\r\n        try:\r\n>           self.result = func()\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:201:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:183: in <lambda>\r\n    lambda: ihook(item=item, **kwds),\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/hooks.py:258: in __call__\r\n    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/manager.py:67: in _hookexec\r\n    return self._inner_hookexec(hook, methods, kwargs)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/manager.py:61: in <lambda>\r\n    firstresult=hook.spec_opts.get('firstresult'),\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:104: in pytest_runtest_setup\r\n    item.session._setupstate.prepare(item)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:366: in prepare\r\n    py.builtin._reraise(*col._prepare_exc)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:370: in prepare\r\n    col.setup()\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:523: in setup\r\n    setup_module = _get_xunit_setup_teardown(self.obj, \"setUpModule\")\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:269: in fget\r\n    self._obj = obj = self._getobj()\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:466: in _getobj\r\n    return self._importtestmodule()\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = <Package '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4'>\r\n\r\n    def _importtestmodule(self):\r\n        # we assume we are only called once per module\r\n        importmode = self.config.getoption(\"--import-mode\")\r\n        try:\r\n            mod = self.fspath.pyimport(ensuresyspath=importmode)\r\n        except SyntaxError:\r\n            raise self.CollectError(\r\n                _pytest._code.ExceptionInfo().getrepr(style=\"short\")\r\n            )\r\n        except self.fspath.ImportMismatchError:\r\n            e = sys.exc_info()[1]\r\n            raise self.CollectError(\r\n                \"import file mismatch:\\n\"\r\n                \"imported module %r has this __file__ attribute:\\n\"\r\n                \"  %s\\n\"\r\n                \"which is not the same as the test file we want to collect:\\n\"\r\n                \"  %s\\n\"\r\n                \"HINT: remove __pycache__ / .pyc files and/or use a \"\r\n                \"unique basename for your test file modules\" % e.args\r\n            )\r\n        except ImportError:\r\n            from _pytest._code.code import ExceptionInfo\r\n\r\n            exc_info = ExceptionInfo()\r\n            if self.config.getoption(\"verbose\") < 2:\r\n                exc_info.traceback = exc_info.traceback.filter(filter_traceback)\r\n            exc_repr = (\r\n                exc_info.getrepr(style=\"short\")\r\n                if exc_info.traceback\r\n                else exc_info.exconly()\r\n            )\r\n            formatted_tb = safe_str(exc_repr)\r\n            raise self.CollectError(\r\n                \"ImportError while importing test module '{fspath}'.\\n\"\r\n                \"Hint: make sure your test modules/packages have valid Python names.\\n\"\r\n                \"Traceback:\\n\"\r\n>               \"{traceback}\".format(fspath=self.fspath, traceback=formatted_tb)\r\n            )\r\nE           _pytest.nodes.Collector.CollectError: ImportError while importing test module '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4/__init__.py'.\r\nE           Hint: make sure your test modules/packages have valid Python names.\r\nE           Traceback:\r\nE           ModuleNotFoundError: No module named 'pymer4.pymer4'\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:508: CollectError\r\n________________________________________ ERROR at setup of test_logistic_lmm _________________________________________\r\n\r\nself = <Package '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4'>\r\n\r\n    def _importtestmodule(self):\r\n        # we assume we are only called once per module\r\n        importmode = self.config.getoption(\"--import-mode\")\r\n        try:\r\n>           mod = self.fspath.pyimport(ensuresyspath=importmode)\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:476:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = local('/Users/Esh/Documents/Python/Cosan/pymer4/pymer4/__init__.py'), modname = 'pymer4.pymer4'\r\nensuresyspath = 'prepend'\r\n\r\n    def pyimport(self, modname=None, ensuresyspath=True):\r\n        \"\"\" return path as an imported python module.\r\n\r\n            If modname is None, look for the containing package\r\n            and construct an according module name.\r\n            The module will be put/looked up in sys.modules.\r\n            if ensuresyspath is True then the root dir for importing\r\n            the file (taking __init__.py files into account) will\r\n            be prepended to sys.path if it isn't there already.\r\n            If ensuresyspath==\"append\" the root dir will be appended\r\n            if it isn't already contained in sys.path.\r\n            if ensuresyspath is False no modification of syspath happens.\r\n            \"\"\"\r\n        if not self.check():\r\n            raise py.error.ENOENT(self)\r\n\r\n        pkgpath = None\r\n        if modname is None:\r\n            pkgpath = self.pypkgpath()\r\n            if pkgpath is not None:\r\n                pkgroot = pkgpath.dirpath()\r\n                names = self.new(ext=\"\").relto(pkgroot).split(self.sep)\r\n                if names[-1] == \"__init__\":\r\n                    names.pop()\r\n                modname = \".\".join(names)\r\n            else:\r\n                pkgroot = self.dirpath()\r\n                modname = self.purebasename\r\n\r\n            self._ensuresyspath(ensuresyspath, pkgroot)\r\n>           __import__(modname)\r\nE           ModuleNotFoundError: No module named 'pymer4.pymer4'\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/py/_path/local.py:668: ModuleNotFoundError\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nself = <CallInfo when='setup' exception: ImportError while importing test module '/Users/Esh/Documents/Python/Cosan/pymer4/py...re your test modules/packages have valid Python names.\r\nTraceback:\r\nModuleNotFoundError: No module named 'pymer4.pymer4'>\r\nfunc = <function call_runtest_hook.<locals>.<lambda> at 0x110609730>, when = 'setup'\r\ntreat_keyboard_interrupt_as_exception = False\r\n\r\n    def __init__(self, func, when, treat_keyboard_interrupt_as_exception=False):\r\n        #: context of invocation: one of \"setup\", \"call\",\r\n        #: \"teardown\", \"memocollect\"\r\n        self.when = when\r\n        self.start = time()\r\n        try:\r\n>           self.result = func()\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:201:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:183: in <lambda>\r\n    lambda: ihook(item=item, **kwds),\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/hooks.py:258: in __call__\r\n    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/manager.py:67: in _hookexec\r\n    return self._inner_hookexec(hook, methods, kwargs)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/manager.py:61: in <lambda>\r\n    firstresult=hook.spec_opts.get('firstresult'),\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:104: in pytest_runtest_setup\r\n    item.session._setupstate.prepare(item)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:366: in prepare\r\n    py.builtin._reraise(*col._prepare_exc)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:370: in prepare\r\n    col.setup()\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:523: in setup\r\n    setup_module = _get_xunit_setup_teardown(self.obj, \"setUpModule\")\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:269: in fget\r\n    self._obj = obj = self._getobj()\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:466: in _getobj\r\n    return self._importtestmodule()\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = <Package '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4'>\r\n\r\n    def _importtestmodule(self):\r\n        # we assume we are only called once per module\r\n        importmode = self.config.getoption(\"--import-mode\")\r\n        try:\r\n            mod = self.fspath.pyimport(ensuresyspath=importmode)\r\n        except SyntaxError:\r\n            raise self.CollectError(\r\n                _pytest._code.ExceptionInfo().getrepr(style=\"short\")\r\n            )\r\n        except self.fspath.ImportMismatchError:\r\n            e = sys.exc_info()[1]\r\n            raise self.CollectError(\r\n                \"import file mismatch:\\n\"\r\n                \"imported module %r has this __file__ attribute:\\n\"\r\n                \"  %s\\n\"\r\n                \"which is not the same as the test file we want to collect:\\n\"\r\n                \"  %s\\n\"\r\n                \"HINT: remove __pycache__ / .pyc files and/or use a \"\r\n                \"unique basename for your test file modules\" % e.args\r\n            )\r\n        except ImportError:\r\n            from _pytest._code.code import ExceptionInfo\r\n\r\n            exc_info = ExceptionInfo()\r\n            if self.config.getoption(\"verbose\") < 2:\r\n                exc_info.traceback = exc_info.traceback.filter(filter_traceback)\r\n            exc_repr = (\r\n                exc_info.getrepr(style=\"short\")\r\n                if exc_info.traceback\r\n                else exc_info.exconly()\r\n            )\r\n            formatted_tb = safe_str(exc_repr)\r\n            raise self.CollectError(\r\n                \"ImportError while importing test module '{fspath}'.\\n\"\r\n                \"Hint: make sure your test modules/packages have valid Python names.\\n\"\r\n                \"Traceback:\\n\"\r\n>               \"{traceback}\".format(fspath=self.fspath, traceback=formatted_tb)\r\n            )\r\nE           _pytest.nodes.Collector.CollectError: ImportError while importing test module '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4/__init__.py'.\r\nE           Hint: make sure your test modules/packages have valid Python names.\r\nE           Traceback:\r\nE           ModuleNotFoundError: No module named 'pymer4.pymer4'\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:508: CollectError\r\n____________________________________________ ERROR at setup of test_anova ____________________________________________\r\n\r\nself = <Package '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4'>\r\n\r\n    def _importtestmodule(self):\r\n        # we assume we are only called once per module\r\n        importmode = self.config.getoption(\"--import-mode\")\r\n        try:\r\n>           mod = self.fspath.pyimport(ensuresyspath=importmode)\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:476:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = local('/Users/Esh/Documents/Python/Cosan/pymer4/pymer4/__init__.py'), modname = 'pymer4.pymer4'\r\nensuresyspath = 'prepend'\r\n\r\n    def pyimport(self, modname=None, ensuresyspath=True):\r\n        \"\"\" return path as an imported python module.\r\n\r\n            If modname is None, look for the containing package\r\n            and construct an according module name.\r\n            The module will be put/looked up in sys.modules.\r\n            if ensuresyspath is True then the root dir for importing\r\n            the file (taking __init__.py files into account) will\r\n            be prepended to sys.path if it isn't there already.\r\n            If ensuresyspath==\"append\" the root dir will be appended\r\n            if it isn't already contained in sys.path.\r\n            if ensuresyspath is False no modification of syspath happens.\r\n            \"\"\"\r\n        if not self.check():\r\n            raise py.error.ENOENT(self)\r\n\r\n        pkgpath = None\r\n        if modname is None:\r\n            pkgpath = self.pypkgpath()\r\n            if pkgpath is not None:\r\n                pkgroot = pkgpath.dirpath()\r\n                names = self.new(ext=\"\").relto(pkgroot).split(self.sep)\r\n                if names[-1] == \"__init__\":\r\n                    names.pop()\r\n                modname = \".\".join(names)\r\n            else:\r\n                pkgroot = self.dirpath()\r\n                modname = self.purebasename\r\n\r\n            self._ensuresyspath(ensuresyspath, pkgroot)\r\n>           __import__(modname)\r\nE           ModuleNotFoundError: No module named 'pymer4.pymer4'\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/py/_path/local.py:668: ModuleNotFoundError\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nself = <CallInfo when='setup' exception: ImportError while importing test module '/Users/Esh/Documents/Python/Cosan/pymer4/py...re your test modules/packages have valid Python names.\r\nTraceback:\r\nModuleNotFoundError: No module named 'pymer4.pymer4'>\r\nfunc = <function call_runtest_hook.<locals>.<lambda> at 0x1104428c8>, when = 'setup'\r\ntreat_keyboard_interrupt_as_exception = False\r\n\r\n    def __init__(self, func, when, treat_keyboard_interrupt_as_exception=False):\r\n        #: context of invocation: one of \"setup\", \"call\",\r\n        #: \"teardown\", \"memocollect\"\r\n        self.when = when\r\n        self.start = time()\r\n        try:\r\n>           self.result = func()\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:201:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:183: in <lambda>\r\n    lambda: ihook(item=item, **kwds),\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/hooks.py:258: in __call__\r\n    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/manager.py:67: in _hookexec\r\n    return self._inner_hookexec(hook, methods, kwargs)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/manager.py:61: in <lambda>\r\n    firstresult=hook.spec_opts.get('firstresult'),\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:104: in pytest_runtest_setup\r\n    item.session._setupstate.prepare(item)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:366: in prepare\r\n    py.builtin._reraise(*col._prepare_exc)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:370: in prepare\r\n    col.setup()\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:523: in setup\r\n    setup_module = _get_xunit_setup_teardown(self.obj, \"setUpModule\")\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:269: in fget\r\n    self._obj = obj = self._getobj()\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:466: in _getobj\r\n    return self._importtestmodule()\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = <Package '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4'>\r\n\r\n    def _importtestmodule(self):\r\n        # we assume we are only called once per module\r\n        importmode = self.config.getoption(\"--import-mode\")\r\n        try:\r\n            mod = self.fspath.pyimport(ensuresyspath=importmode)\r\n        except SyntaxError:\r\n            raise self.CollectError(\r\n                _pytest._code.ExceptionInfo().getrepr(style=\"short\")\r\n            )\r\n        except self.fspath.ImportMismatchError:\r\n            e = sys.exc_info()[1]\r\n            raise self.CollectError(\r\n                \"import file mismatch:\\n\"\r\n                \"imported module %r has this __file__ attribute:\\n\"\r\n                \"  %s\\n\"\r\n                \"which is not the same as the test file we want to collect:\\n\"\r\n                \"  %s\\n\"\r\n                \"HINT: remove __pycache__ / .pyc files and/or use a \"\r\n                \"unique basename for your test file modules\" % e.args\r\n            )\r\n        except ImportError:\r\n            from _pytest._code.code import ExceptionInfo\r\n\r\n            exc_info = ExceptionInfo()\r\n            if self.config.getoption(\"verbose\") < 2:\r\n                exc_info.traceback = exc_info.traceback.filter(filter_traceback)\r\n            exc_repr = (\r\n                exc_info.getrepr(style=\"short\")\r\n                if exc_info.traceback\r\n                else exc_info.exconly()\r\n            )\r\n            formatted_tb = safe_str(exc_repr)\r\n            raise self.CollectError(\r\n                \"ImportError while importing test module '{fspath}'.\\n\"\r\n                \"Hint: make sure your test modules/packages have valid Python names.\\n\"\r\n                \"Traceback:\\n\"\r\n>               \"{traceback}\".format(fspath=self.fspath, traceback=formatted_tb)\r\n            )\r\nE           _pytest.nodes.Collector.CollectError: ImportError while importing test module '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4/__init__.py'.\r\nE           Hint: make sure your test modules/packages have valid Python names.\r\nE           Traceback:\r\nE           ModuleNotFoundError: No module named 'pymer4.pymer4'\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:508: CollectError\r\n_________________________________________ ERROR at setup of test_poisson_lmm _________________________________________\r\n\r\nself = <Package '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4'>\r\n\r\n    def _importtestmodule(self):\r\n        # we assume we are only called once per module\r\n        importmode = self.config.getoption(\"--import-mode\")\r\n        try:\r\n>           mod = self.fspath.pyimport(ensuresyspath=importmode)\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:476:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = local('/Users/Esh/Documents/Python/Cosan/pymer4/pymer4/__init__.py'), modname = 'pymer4.pymer4'\r\nensuresyspath = 'prepend'\r\n\r\n    def pyimport(self, modname=None, ensuresyspath=True):\r\n        \"\"\" return path as an imported python module.\r\n\r\n            If modname is None, look for the containing package\r\n            and construct an according module name.\r\n            The module will be put/looked up in sys.modules.\r\n            if ensuresyspath is True then the root dir for importing\r\n            the file (taking __init__.py files into account) will\r\n            be prepended to sys.path if it isn't there already.\r\n            If ensuresyspath==\"append\" the root dir will be appended\r\n            if it isn't already contained in sys.path.\r\n            if ensuresyspath is False no modification of syspath happens.\r\n            \"\"\"\r\n        if not self.check():\r\n            raise py.error.ENOENT(self)\r\n\r\n        pkgpath = None\r\n        if modname is None:\r\n            pkgpath = self.pypkgpath()\r\n            if pkgpath is not None:\r\n                pkgroot = pkgpath.dirpath()\r\n                names = self.new(ext=\"\").relto(pkgroot).split(self.sep)\r\n                if names[-1] == \"__init__\":\r\n                    names.pop()\r\n                modname = \".\".join(names)\r\n            else:\r\n                pkgroot = self.dirpath()\r\n                modname = self.purebasename\r\n\r\n            self._ensuresyspath(ensuresyspath, pkgroot)\r\n>           __import__(modname)\r\nE           ModuleNotFoundError: No module named 'pymer4.pymer4'\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/py/_path/local.py:668: ModuleNotFoundError\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nself = <CallInfo when='setup' exception: ImportError while importing test module '/Users/Esh/Documents/Python/Cosan/pymer4/py...re your test modules/packages have valid Python names.\r\nTraceback:\r\nModuleNotFoundError: No module named 'pymer4.pymer4'>\r\nfunc = <function call_runtest_hook.<locals>.<lambda> at 0x110442f28>, when = 'setup'\r\ntreat_keyboard_interrupt_as_exception = False\r\n\r\n    def __init__(self, func, when, treat_keyboard_interrupt_as_exception=False):\r\n        #: context of invocation: one of \"setup\", \"call\",\r\n        #: \"teardown\", \"memocollect\"\r\n        self.when = when\r\n        self.start = time()\r\n        try:\r\n>           self.result = func()\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:201:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:183: in <lambda>\r\n    lambda: ihook(item=item, **kwds),\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/hooks.py:258: in __call__\r\n    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/manager.py:67: in _hookexec\r\n    return self._inner_hookexec(hook, methods, kwargs)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/manager.py:61: in <lambda>\r\n    firstresult=hook.spec_opts.get('firstresult'),\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:104: in pytest_runtest_setup\r\n    item.session._setupstate.prepare(item)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:366: in prepare\r\n    py.builtin._reraise(*col._prepare_exc)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:370: in prepare\r\n    col.setup()\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:523: in setup\r\n    setup_module = _get_xunit_setup_teardown(self.obj, \"setUpModule\")\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:269: in fget\r\n    self._obj = obj = self._getobj()\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:466: in _getobj\r\n    return self._importtestmodule()\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = <Package '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4'>\r\n\r\n    def _importtestmodule(self):\r\n        # we assume we are only called once per module\r\n        importmode = self.config.getoption(\"--import-mode\")\r\n        try:\r\n            mod = self.fspath.pyimport(ensuresyspath=importmode)\r\n        except SyntaxError:\r\n            raise self.CollectError(\r\n                _pytest._code.ExceptionInfo().getrepr(style=\"short\")\r\n            )\r\n        except self.fspath.ImportMismatchError:\r\n            e = sys.exc_info()[1]\r\n            raise self.CollectError(\r\n                \"import file mismatch:\\n\"\r\n                \"imported module %r has this __file__ attribute:\\n\"\r\n                \"  %s\\n\"\r\n                \"which is not the same as the test file we want to collect:\\n\"\r\n                \"  %s\\n\"\r\n                \"HINT: remove __pycache__ / .pyc files and/or use a \"\r\n                \"unique basename for your test file modules\" % e.args\r\n            )\r\n        except ImportError:\r\n            from _pytest._code.code import ExceptionInfo\r\n\r\n            exc_info = ExceptionInfo()\r\n            if self.config.getoption(\"verbose\") < 2:\r\n                exc_info.traceback = exc_info.traceback.filter(filter_traceback)\r\n            exc_repr = (\r\n                exc_info.getrepr(style=\"short\")\r\n                if exc_info.traceback\r\n                else exc_info.exconly()\r\n            )\r\n            formatted_tb = safe_str(exc_repr)\r\n            raise self.CollectError(\r\n                \"ImportError while importing test module '{fspath}'.\\n\"\r\n                \"Hint: make sure your test modules/packages have valid Python names.\\n\"\r\n                \"Traceback:\\n\"\r\n>               \"{traceback}\".format(fspath=self.fspath, traceback=formatted_tb)\r\n            )\r\nE           _pytest.nodes.Collector.CollectError: ImportError while importing test module '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4/__init__.py'.\r\nE           Hint: make sure your test modules/packages have valid Python names.\r\nE           Traceback:\r\nE           ModuleNotFoundError: No module named 'pymer4.pymer4'\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:508: CollectError\r\n__________________________________________ ERROR at setup of test_gamma_lmm __________________________________________\r\n\r\nself = <Package '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4'>\r\n\r\n    def _importtestmodule(self):\r\n        # we assume we are only called once per module\r\n        importmode = self.config.getoption(\"--import-mode\")\r\n        try:\r\n>           mod = self.fspath.pyimport(ensuresyspath=importmode)\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:476:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = local('/Users/Esh/Documents/Python/Cosan/pymer4/pymer4/__init__.py'), modname = 'pymer4.pymer4'\r\nensuresyspath = 'prepend'\r\n\r\n    def pyimport(self, modname=None, ensuresyspath=True):\r\n        \"\"\" return path as an imported python module.\r\n\r\n            If modname is None, look for the containing package\r\n            and construct an according module name.\r\n            The module will be put/looked up in sys.modules.\r\n            if ensuresyspath is True then the root dir for importing\r\n            the file (taking __init__.py files into account) will\r\n            be prepended to sys.path if it isn't there already.\r\n            If ensuresyspath==\"append\" the root dir will be appended\r\n            if it isn't already contained in sys.path.\r\n            if ensuresyspath is False no modification of syspath happens.\r\n            \"\"\"\r\n        if not self.check():\r\n            raise py.error.ENOENT(self)\r\n\r\n        pkgpath = None\r\n        if modname is None:\r\n            pkgpath = self.pypkgpath()\r\n            if pkgpath is not None:\r\n                pkgroot = pkgpath.dirpath()\r\n                names = self.new(ext=\"\").relto(pkgroot).split(self.sep)\r\n                if names[-1] == \"__init__\":\r\n                    names.pop()\r\n                modname = \".\".join(names)\r\n            else:\r\n                pkgroot = self.dirpath()\r\n                modname = self.purebasename\r\n\r\n            self._ensuresyspath(ensuresyspath, pkgroot)\r\n>           __import__(modname)\r\nE           ModuleNotFoundError: No module named 'pymer4.pymer4'\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/py/_path/local.py:668: ModuleNotFoundError\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nself = <CallInfo when='setup' exception: ImportError while importing test module '/Users/Esh/Documents/Python/Cosan/pymer4/py...re your test modules/packages have valid Python names.\r\nTraceback:\r\nModuleNotFoundError: No module named 'pymer4.pymer4'>\r\nfunc = <function call_runtest_hook.<locals>.<lambda> at 0x110609620>, when = 'setup'\r\ntreat_keyboard_interrupt_as_exception = False\r\n\r\n    def __init__(self, func, when, treat_keyboard_interrupt_as_exception=False):\r\n        #: context of invocation: one of \"setup\", \"call\",\r\n        #: \"teardown\", \"memocollect\"\r\n        self.when = when\r\n        self.start = time()\r\n        try:\r\n>           self.result = func()\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:201:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:183: in <lambda>\r\n    lambda: ihook(item=item, **kwds),\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/hooks.py:258: in __call__\r\n    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/manager.py:67: in _hookexec\r\n    return self._inner_hookexec(hook, methods, kwargs)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/manager.py:61: in <lambda>\r\n    firstresult=hook.spec_opts.get('firstresult'),\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:104: in pytest_runtest_setup\r\n    item.session._setupstate.prepare(item)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:366: in prepare\r\n    py.builtin._reraise(*col._prepare_exc)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:370: in prepare\r\n    col.setup()\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:523: in setup\r\n    setup_module = _get_xunit_setup_teardown(self.obj, \"setUpModule\")\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:269: in fget\r\n    self._obj = obj = self._getobj()\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:466: in _getobj\r\n    return self._importtestmodule()\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = <Package '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4'>\r\n\r\n    def _importtestmodule(self):\r\n        # we assume we are only called once per module\r\n        importmode = self.config.getoption(\"--import-mode\")\r\n        try:\r\n            mod = self.fspath.pyimport(ensuresyspath=importmode)\r\n        except SyntaxError:\r\n            raise self.CollectError(\r\n                _pytest._code.ExceptionInfo().getrepr(style=\"short\")\r\n            )\r\n        except self.fspath.ImportMismatchError:\r\n            e = sys.exc_info()[1]\r\n            raise self.CollectError(\r\n                \"import file mismatch:\\n\"\r\n                \"imported module %r has this __file__ attribute:\\n\"\r\n                \"  %s\\n\"\r\n                \"which is not the same as the test file we want to collect:\\n\"\r\n                \"  %s\\n\"\r\n                \"HINT: remove __pycache__ / .pyc files and/or use a \"\r\n                \"unique basename for your test file modules\" % e.args\r\n            )\r\n        except ImportError:\r\n            from _pytest._code.code import ExceptionInfo\r\n\r\n            exc_info = ExceptionInfo()\r\n            if self.config.getoption(\"verbose\") < 2:\r\n                exc_info.traceback = exc_info.traceback.filter(filter_traceback)\r\n            exc_repr = (\r\n                exc_info.getrepr(style=\"short\")\r\n                if exc_info.traceback\r\n                else exc_info.exconly()\r\n            )\r\n            formatted_tb = safe_str(exc_repr)\r\n            raise self.CollectError(\r\n                \"ImportError while importing test module '{fspath}'.\\n\"\r\n                \"Hint: make sure your test modules/packages have valid Python names.\\n\"\r\n                \"Traceback:\\n\"\r\n>               \"{traceback}\".format(fspath=self.fspath, traceback=formatted_tb)\r\n            )\r\nE           _pytest.nodes.Collector.CollectError: ImportError while importing test module '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4/__init__.py'.\r\nE           Hint: make sure your test modules/packages have valid Python names.\r\nE           Traceback:\r\nE           ModuleNotFoundError: No module named 'pymer4.pymer4'\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:508: CollectError\r\n____________________________________ ERROR at setup of test_inverse_gaussian_lmm _____________________________________\r\n\r\nself = <Package '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4'>\r\n\r\n    def _importtestmodule(self):\r\n        # we assume we are only called once per module\r\n        importmode = self.config.getoption(\"--import-mode\")\r\n        try:\r\n>           mod = self.fspath.pyimport(ensuresyspath=importmode)\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:476:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = local('/Users/Esh/Documents/Python/Cosan/pymer4/pymer4/__init__.py'), modname = 'pymer4.pymer4'\r\nensuresyspath = 'prepend'\r\n\r\n    def pyimport(self, modname=None, ensuresyspath=True):\r\n        \"\"\" return path as an imported python module.\r\n\r\n            If modname is None, look for the containing package\r\n            and construct an according module name.\r\n            The module will be put/looked up in sys.modules.\r\n            if ensuresyspath is True then the root dir for importing\r\n            the file (taking __init__.py files into account) will\r\n            be prepended to sys.path if it isn't there already.\r\n            If ensuresyspath==\"append\" the root dir will be appended\r\n            if it isn't already contained in sys.path.\r\n            if ensuresyspath is False no modification of syspath happens.\r\n            \"\"\"\r\n        if not self.check():\r\n            raise py.error.ENOENT(self)\r\n\r\n        pkgpath = None\r\n        if modname is None:\r\n            pkgpath = self.pypkgpath()\r\n            if pkgpath is not None:\r\n                pkgroot = pkgpath.dirpath()\r\n                names = self.new(ext=\"\").relto(pkgroot).split(self.sep)\r\n                if names[-1] == \"__init__\":\r\n                    names.pop()\r\n                modname = \".\".join(names)\r\n            else:\r\n                pkgroot = self.dirpath()\r\n                modname = self.purebasename\r\n\r\n            self._ensuresyspath(ensuresyspath, pkgroot)\r\n>           __import__(modname)\r\nE           ModuleNotFoundError: No module named 'pymer4.pymer4'\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/py/_path/local.py:668: ModuleNotFoundError\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nself = <CallInfo when='setup' exception: ImportError while importing test module '/Users/Esh/Documents/Python/Cosan/pymer4/py...re your test modules/packages have valid Python names.\r\nTraceback:\r\nModuleNotFoundError: No module named 'pymer4.pymer4'>\r\nfunc = <function call_runtest_hook.<locals>.<lambda> at 0x110621730>, when = 'setup'\r\ntreat_keyboard_interrupt_as_exception = False\r\n\r\n    def __init__(self, func, when, treat_keyboard_interrupt_as_exception=False):\r\n        #: context of invocation: one of \"setup\", \"call\",\r\n        #: \"teardown\", \"memocollect\"\r\n        self.when = when\r\n        self.start = time()\r\n        try:\r\n>           self.result = func()\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:201:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:183: in <lambda>\r\n    lambda: ihook(item=item, **kwds),\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/hooks.py:258: in __call__\r\n    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/manager.py:67: in _hookexec\r\n    return self._inner_hookexec(hook, methods, kwargs)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/manager.py:61: in <lambda>\r\n    firstresult=hook.spec_opts.get('firstresult'),\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:104: in pytest_runtest_setup\r\n    item.session._setupstate.prepare(item)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:366: in prepare\r\n    py.builtin._reraise(*col._prepare_exc)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:370: in prepare\r\n    col.setup()\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:523: in setup\r\n    setup_module = _get_xunit_setup_teardown(self.obj, \"setUpModule\")\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:269: in fget\r\n    self._obj = obj = self._getobj()\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:466: in _getobj\r\n    return self._importtestmodule()\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = <Package '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4'>\r\n\r\n    def _importtestmodule(self):\r\n        # we assume we are only called once per module\r\n        importmode = self.config.getoption(\"--import-mode\")\r\n        try:\r\n            mod = self.fspath.pyimport(ensuresyspath=importmode)\r\n        except SyntaxError:\r\n            raise self.CollectError(\r\n                _pytest._code.ExceptionInfo().getrepr(style=\"short\")\r\n            )\r\n        except self.fspath.ImportMismatchError:\r\n            e = sys.exc_info()[1]\r\n            raise self.CollectError(\r\n                \"import file mismatch:\\n\"\r\n                \"imported module %r has this __file__ attribute:\\n\"\r\n                \"  %s\\n\"\r\n                \"which is not the same as the test file we want to collect:\\n\"\r\n                \"  %s\\n\"\r\n                \"HINT: remove __pycache__ / .pyc files and/or use a \"\r\n                \"unique basename for your test file modules\" % e.args\r\n            )\r\n        except ImportError:\r\n            from _pytest._code.code import ExceptionInfo\r\n\r\n            exc_info = ExceptionInfo()\r\n            if self.config.getoption(\"verbose\") < 2:\r\n                exc_info.traceback = exc_info.traceback.filter(filter_traceback)\r\n            exc_repr = (\r\n                exc_info.getrepr(style=\"short\")\r\n                if exc_info.traceback\r\n                else exc_info.exconly()\r\n            )\r\n            formatted_tb = safe_str(exc_repr)\r\n            raise self.CollectError(\r\n                \"ImportError while importing test module '{fspath}'.\\n\"\r\n                \"Hint: make sure your test modules/packages have valid Python names.\\n\"\r\n                \"Traceback:\\n\"\r\n>               \"{traceback}\".format(fspath=self.fspath, traceback=formatted_tb)\r\n            )\r\nE           _pytest.nodes.Collector.CollectError: ImportError while importing test module '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4/__init__.py'.\r\nE           Hint: make sure your test modules/packages have valid Python names.\r\nE           Traceback:\r\nE           ModuleNotFoundError: No module named 'pymer4.pymer4'\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:508: CollectError\r\n_________________________________________ ERROR at setup of test_simulate_lm _________________________________________\r\n\r\nself = <Package '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4'>\r\n\r\n    def _importtestmodule(self):\r\n        # we assume we are only called once per module\r\n        importmode = self.config.getoption(\"--import-mode\")\r\n        try:\r\n>           mod = self.fspath.pyimport(ensuresyspath=importmode)\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:476:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = local('/Users/Esh/Documents/Python/Cosan/pymer4/pymer4/__init__.py'), modname = 'pymer4.pymer4'\r\nensuresyspath = 'prepend'\r\n\r\n    def pyimport(self, modname=None, ensuresyspath=True):\r\n        \"\"\" return path as an imported python module.\r\n\r\n            If modname is None, look for the containing package\r\n            and construct an according module name.\r\n            The module will be put/looked up in sys.modules.\r\n            if ensuresyspath is True then the root dir for importing\r\n            the file (taking __init__.py files into account) will\r\n            be prepended to sys.path if it isn't there already.\r\n            If ensuresyspath==\"append\" the root dir will be appended\r\n            if it isn't already contained in sys.path.\r\n            if ensuresyspath is False no modification of syspath happens.\r\n            \"\"\"\r\n        if not self.check():\r\n            raise py.error.ENOENT(self)\r\n\r\n        pkgpath = None\r\n        if modname is None:\r\n            pkgpath = self.pypkgpath()\r\n            if pkgpath is not None:\r\n                pkgroot = pkgpath.dirpath()\r\n                names = self.new(ext=\"\").relto(pkgroot).split(self.sep)\r\n                if names[-1] == \"__init__\":\r\n                    names.pop()\r\n                modname = \".\".join(names)\r\n            else:\r\n                pkgroot = self.dirpath()\r\n                modname = self.purebasename\r\n\r\n            self._ensuresyspath(ensuresyspath, pkgroot)\r\n>           __import__(modname)\r\nE           ModuleNotFoundError: No module named 'pymer4.pymer4'\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/py/_path/local.py:668: ModuleNotFoundError\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nself = <CallInfo when='setup' exception: ImportError while importing test module '/Users/Esh/Documents/Python/Cosan/pymer4/py...re your test modules/packages have valid Python names.\r\nTraceback:\r\nModuleNotFoundError: No module named 'pymer4.pymer4'>\r\nfunc = <function call_runtest_hook.<locals>.<lambda> at 0x110609730>, when = 'setup'\r\ntreat_keyboard_interrupt_as_exception = False\r\n\r\n    def __init__(self, func, when, treat_keyboard_interrupt_as_exception=False):\r\n        #: context of invocation: one of \"setup\", \"call\",\r\n        #: \"teardown\", \"memocollect\"\r\n        self.when = when\r\n        self.start = time()\r\n        try:\r\n>           self.result = func()\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:201:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:183: in <lambda>\r\n    lambda: ihook(item=item, **kwds),\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/hooks.py:258: in __call__\r\n    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/manager.py:67: in _hookexec\r\n    return self._inner_hookexec(hook, methods, kwargs)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/manager.py:61: in <lambda>\r\n    firstresult=hook.spec_opts.get('firstresult'),\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:104: in pytest_runtest_setup\r\n    item.session._setupstate.prepare(item)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:366: in prepare\r\n    py.builtin._reraise(*col._prepare_exc)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:370: in prepare\r\n    col.setup()\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:523: in setup\r\n    setup_module = _get_xunit_setup_teardown(self.obj, \"setUpModule\")\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:269: in fget\r\n    self._obj = obj = self._getobj()\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:466: in _getobj\r\n    return self._importtestmodule()\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = <Package '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4'>\r\n\r\n    def _importtestmodule(self):\r\n        # we assume we are only called once per module\r\n        importmode = self.config.getoption(\"--import-mode\")\r\n        try:\r\n            mod = self.fspath.pyimport(ensuresyspath=importmode)\r\n        except SyntaxError:\r\n            raise self.CollectError(\r\n                _pytest._code.ExceptionInfo().getrepr(style=\"short\")\r\n            )\r\n        except self.fspath.ImportMismatchError:\r\n            e = sys.exc_info()[1]\r\n            raise self.CollectError(\r\n                \"import file mismatch:\\n\"\r\n                \"imported module %r has this __file__ attribute:\\n\"\r\n                \"  %s\\n\"\r\n                \"which is not the same as the test file we want to collect:\\n\"\r\n                \"  %s\\n\"\r\n                \"HINT: remove __pycache__ / .pyc files and/or use a \"\r\n                \"unique basename for your test file modules\" % e.args\r\n            )\r\n        except ImportError:\r\n            from _pytest._code.code import ExceptionInfo\r\n\r\n            exc_info = ExceptionInfo()\r\n            if self.config.getoption(\"verbose\") < 2:\r\n                exc_info.traceback = exc_info.traceback.filter(filter_traceback)\r\n            exc_repr = (\r\n                exc_info.getrepr(style=\"short\")\r\n                if exc_info.traceback\r\n                else exc_info.exconly()\r\n            )\r\n            formatted_tb = safe_str(exc_repr)\r\n            raise self.CollectError(\r\n                \"ImportError while importing test module '{fspath}'.\\n\"\r\n                \"Hint: make sure your test modules/packages have valid Python names.\\n\"\r\n                \"Traceback:\\n\"\r\n>               \"{traceback}\".format(fspath=self.fspath, traceback=formatted_tb)\r\n            )\r\nE           _pytest.nodes.Collector.CollectError: ImportError while importing test module '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4/__init__.py'.\r\nE           Hint: make sure your test modules/packages have valid Python names.\r\nE           Traceback:\r\nE           ModuleNotFoundError: No module named 'pymer4.pymer4'\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:508: CollectError\r\n________________________________________ ERROR at setup of test_simulate_lmm _________________________________________\r\n\r\nself = <Package '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4'>\r\n\r\n    def _importtestmodule(self):\r\n        # we assume we are only called once per module\r\n        importmode = self.config.getoption(\"--import-mode\")\r\n        try:\r\n>           mod = self.fspath.pyimport(ensuresyspath=importmode)\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:476:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = local('/Users/Esh/Documents/Python/Cosan/pymer4/pymer4/__init__.py'), modname = 'pymer4.pymer4'\r\nensuresyspath = 'prepend'\r\n\r\n    def pyimport(self, modname=None, ensuresyspath=True):\r\n        \"\"\" return path as an imported python module.\r\n\r\n            If modname is None, look for the containing package\r\n            and construct an according module name.\r\n            The module will be put/looked up in sys.modules.\r\n            if ensuresyspath is True then the root dir for importing\r\n            the file (taking __init__.py files into account) will\r\n            be prepended to sys.path if it isn't there already.\r\n            If ensuresyspath==\"append\" the root dir will be appended\r\n            if it isn't already contained in sys.path.\r\n            if ensuresyspath is False no modification of syspath happens.\r\n            \"\"\"\r\n        if not self.check():\r\n            raise py.error.ENOENT(self)\r\n\r\n        pkgpath = None\r\n        if modname is None:\r\n            pkgpath = self.pypkgpath()\r\n            if pkgpath is not None:\r\n                pkgroot = pkgpath.dirpath()\r\n                names = self.new(ext=\"\").relto(pkgroot).split(self.sep)\r\n                if names[-1] == \"__init__\":\r\n                    names.pop()\r\n                modname = \".\".join(names)\r\n            else:\r\n                pkgroot = self.dirpath()\r\n                modname = self.purebasename\r\n\r\n            self._ensuresyspath(ensuresyspath, pkgroot)\r\n>           __import__(modname)\r\nE           ModuleNotFoundError: No module named 'pymer4.pymer4'\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/py/_path/local.py:668: ModuleNotFoundError\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nself = <CallInfo when='setup' exception: ImportError while importing test module '/Users/Esh/Documents/Python/Cosan/pymer4/py...re your test modules/packages have valid Python names.\r\nTraceback:\r\nModuleNotFoundError: No module named 'pymer4.pymer4'>\r\nfunc = <function call_runtest_hook.<locals>.<lambda> at 0x110621c80>, when = 'setup'\r\ntreat_keyboard_interrupt_as_exception = False\r\n\r\n    def __init__(self, func, when, treat_keyboard_interrupt_as_exception=False):\r\n        #: context of invocation: one of \"setup\", \"call\",\r\n        #: \"teardown\", \"memocollect\"\r\n        self.when = when\r\n        self.start = time()\r\n        try:\r\n>           self.result = func()\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:201:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:183: in <lambda>\r\n    lambda: ihook(item=item, **kwds),\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/hooks.py:258: in __call__\r\n    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/manager.py:67: in _hookexec\r\n    return self._inner_hookexec(hook, methods, kwargs)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/pluggy/manager.py:61: in <lambda>\r\n    firstresult=hook.spec_opts.get('firstresult'),\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:104: in pytest_runtest_setup\r\n    item.session._setupstate.prepare(item)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:366: in prepare\r\n    py.builtin._reraise(*col._prepare_exc)\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/runner.py:370: in prepare\r\n    col.setup()\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:523: in setup\r\n    setup_module = _get_xunit_setup_teardown(self.obj, \"setUpModule\")\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:269: in fget\r\n    self._obj = obj = self._getobj()\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:466: in _getobj\r\n    return self._importtestmodule()\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = <Package '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4'>\r\n\r\n    def _importtestmodule(self):\r\n        # we assume we are only called once per module\r\n        importmode = self.config.getoption(\"--import-mode\")\r\n        try:\r\n            mod = self.fspath.pyimport(ensuresyspath=importmode)\r\n        except SyntaxError:\r\n            raise self.CollectError(\r\n                _pytest._code.ExceptionInfo().getrepr(style=\"short\")\r\n            )\r\n        except self.fspath.ImportMismatchError:\r\n            e = sys.exc_info()[1]\r\n            raise self.CollectError(\r\n                \"import file mismatch:\\n\"\r\n                \"imported module %r has this __file__ attribute:\\n\"\r\n                \"  %s\\n\"\r\n                \"which is not the same as the test file we want to collect:\\n\"\r\n                \"  %s\\n\"\r\n                \"HINT: remove __pycache__ / .pyc files and/or use a \"\r\n                \"unique basename for your test file modules\" % e.args\r\n            )\r\n        except ImportError:\r\n            from _pytest._code.code import ExceptionInfo\r\n\r\n            exc_info = ExceptionInfo()\r\n            if self.config.getoption(\"verbose\") < 2:\r\n                exc_info.traceback = exc_info.traceback.filter(filter_traceback)\r\n            exc_repr = (\r\n                exc_info.getrepr(style=\"short\")\r\n                if exc_info.traceback\r\n                else exc_info.exconly()\r\n            )\r\n            formatted_tb = safe_str(exc_repr)\r\n            raise self.CollectError(\r\n                \"ImportError while importing test module '{fspath}'.\\n\"\r\n                \"Hint: make sure your test modules/packages have valid Python names.\\n\"\r\n                \"Traceback:\\n\"\r\n>               \"{traceback}\".format(fspath=self.fspath, traceback=formatted_tb)\r\n            )\r\nE           _pytest.nodes.Collector.CollectError: ImportError while importing test module '/Users/Esh/Documents/Python/Cosan/pymer4/pymer4/__init__.py'.\r\nE           Hint: make sure your test modules/packages have valid Python names.\r\nE           Traceback:\r\nE           ModuleNotFoundError: No module named 'pymer4.pymer4'\r\n\r\n/Users/Esh/anaconda3/lib/python3.6/site-packages/_pytest/python.py:508: CollectError\r\n============================================== 10 error in 3.69 seconds ==============================================\r\n```"}}
{"actor":{"display_login":"ejolly"}}