Internal error running pytest

Guys appreciate some help here - i thought id created all the setup in the readme correctly - I’m able to access the mflix page - i can connect to the mongo shell - but when I run pysted i get

============================= test session starts ==============================

platform darwin – Python 3.7.0, pytest-3.8.0, py-1.6.0, pluggy-0.7.1

rootdir: /Users/marklopez/Downloads/mflix-python, inifile:

plugins: remotedata-0.3.0, openfiles-0.3.0, flask-0.10.0, doctestplus-0.1.3, arraydiff-0.2

collecting 43 items INTERNALERROR> Traceback (most recent call last):

INTERNALERROR> File “/anaconda3/lib/python3.7/site-packages/_pytest/main.py”, line 178, in wrap_session

INTERNALERROR> session.exitstatus = doit(config, session) or 0

INTERNALERROR> File “/anaconda3/lib/python3.7/site-packages/_pytest/main.py”, line 214, in _main

INTERNALERROR> config.hook.pytest_collection(session=session)

INTERNALERROR> File “/anaconda3/lib/python3.7/site-packages/pluggy/hooks.py”, line 258, in call

INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)

INTERNALERROR> File “/anaconda3/lib/python3.7/site-packages/pluggy/manager.py”, line 67, in _hookexec

INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)

INTERNALERROR> File “/anaconda3/lib/python3.7/site-packages/pluggy/manager.py”, line 61, in <lambda>

INTERNALERROR> firstresult=hook.spec_opts.get(‘firstresult’),

INTERNALERROR> File “/anaconda3/lib/python3.7/site-packages/pluggy/callers.py”, line 201, in _multicall

INTERNALERROR> return outcome.get_result()

INTERNALERROR> File “/anaconda3/lib/python3.7/site-packages/pluggy/callers.py”, line 76, in get_result

INTERNALERROR> raise ex[1].with_traceback(ex[2])

INTERNALERROR> File “/anaconda3/lib/python3.7/site-packages/pluggy/callers.py”, line 180, in _multicall

INTERNALERROR> res = hook_impl.function(*args)

INTERNALERROR> File “/anaconda3/lib/python3.7/site-packages/_pytest/main.py”, line 224, in pytest_collection

INTERNALERROR> return session.perform_collect()

INTERNALERROR> File “/anaconda3/lib/python3.7/site-packages/_pytest/main.py”, line 432, in perform_collect

INTERNALERROR> session=self, config=self.config, items=items

INTERNALERROR> File “/anaconda3/lib/python3.7/site-packages/pluggy/hooks.py”, line 258, in call

INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)

INTERNALERROR> File “/anaconda3/lib/python3.7/site-packages/pluggy/manager.py”, line 67, in _hookexec

INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)

INTERNALERROR> File “/anaconda3/lib/python3.7/site-packages/pluggy/manager.py”, line 61, in <lambda>

INTERNALERROR> firstresult=hook.spec_opts.get(‘firstresult’),

INTERNALERROR> File “/anaconda3/lib/python3.7/site-packages/pluggy/callers.py”, line 201, in _multicall

INTERNALERROR> return outcome.get_result()

INTERNALERROR> File “/anaconda3/lib/python3.7/site-packages/pluggy/callers.py”, line 76, in get_result

INTERNALERROR> raise ex[1].with_traceback(ex[2])

INTERNALERROR> File “/anaconda3/lib/python3.7/site-packages/pluggy/callers.py”, line 180, in _multicall

INTERNALERROR> res = hook_impl.function(*args)

INTERNALERROR> File “/anaconda3/lib/python3.7/site-packages/_pytest/mark/init.py”, line 156, in pytest_collection_modifyitems

INTERNALERROR> deselect_by_mark(items, config)

INTERNALERROR> File “/anaconda3/lib/python3.7/site-packages/_pytest/mark/init.py”, line 144, in deselect_by_mark

INTERNALERROR> if matchmark(item, matchexpr):

INTERNALERROR> File “/anaconda3/lib/python3.7/site-packages/_pytest/mark/legacy.py”, line 69, in matchmark

INTERNALERROR> return eval(markexpr, {}, MarkMapping.from_item(colitem))

INTERNALERROR> File “<string>”, line 1, in <module>

INTERNALERROR> AttributeError: ‘bool’ object has no attribute ‘py’

i can only imagine it maybe anaconda related (i activated the environment ?)

cheers

–First make sure to activate mflix environment or whatever you named it.
activate mflix
–Then you have to downgrade your pytest module;
pip install pytest==3.3.2
–Finally you have to run pytest commands in the mflix-python directory. I believe it gives error because it cant find .ini file when you are under tests or some other directory.