PatrikHlobil / Pandas-Bokeh

Bokeh Plotting Backend for Pandas and GeoPandas
MIT License
878 stars 112 forks source link

pytest Test Fails #138

Open StevenBusuttil opened 1 year ago

StevenBusuttil commented 1 year ago

While following the steps for contributing here, I am getting the following error when running pytest Tests:

(venv) PS C:\Users\sbusuttil\pandas-bokeh\Pandas-Bokeh>  pytest Tests
Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 1072, in _find_spec
AttributeError: 'AssertionRewritingHook' object has no attribute 'find_spec'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\sbusuttil\pandas-bokeh\Pandas-Bokeh\venv\Scripts\pytest.exe\__main__.py", line 7, in <module>
  File "C:\Users\sbusuttil\pandas-bokeh\Pandas-Bokeh\venv\Lib\site-packages\_pytest\config\__init__.py", line 63, in main
    config = _prepareconfig(args, plugins)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\sbusuttil\pandas-bokeh\Pandas-Bokeh\venv\Lib\site-packages\_pytest\config\__init__.py", line 206, in _prepareconfig
    return pluginmanager.hook.pytest_cmdline_parse(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\sbusuttil\pandas-bokeh\Pandas-Bokeh\venv\Lib\site-packages\pluggy\hooks.py", line 286, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\sbusuttil\pandas-bokeh\Pandas-Bokeh\venv\Lib\site-packages\pluggy\manager.py", line 93, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\sbusuttil\pandas-bokeh\Pandas-Bokeh\venv\Lib\site-packages\pluggy\manager.py", line 84, in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
                                                         ^^^^^^^^^^^^^^^
  File "C:\Users\sbusuttil\pandas-bokeh\Pandas-Bokeh\venv\Lib\site-packages\pluggy\callers.py", line 203, in _multicall
    gen.send(outcome)
  File "C:\Users\sbusuttil\pandas-bokeh\Pandas-Bokeh\venv\Lib\site-packages\_pytest\helpconfig.py", line 94, in pytest_cmdline_parse
    config = outcome.get_result()
             ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\sbusuttil\pandas-bokeh\Pandas-Bokeh\venv\Lib\site-packages\pluggy\callers.py", line 80, in get_result
    raise ex[1].with_traceback(ex[2])
  File "C:\Users\sbusuttil\pandas-bokeh\Pandas-Bokeh\venv\Lib\site-packages\pluggy\callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\sbusuttil\pandas-bokeh\Pandas-Bokeh\venv\Lib\site-packages\_pytest\config\__init__.py", line 687, in pytest_cmdline_parse
    self.parse(args)
  File "C:\Users\sbusuttil\pandas-bokeh\Pandas-Bokeh\venv\Lib\site-packages\_pytest\config\__init__.py", line 895, in parse
    self._preparse(args, addopts=addopts)
  File "C:\Users\sbusuttil\pandas-bokeh\Pandas-Bokeh\venv\Lib\site-packages\_pytest\config\__init__.py", line 841, in _preparse
    self.pluginmanager.load_setuptools_entrypoints("pytest11")
  File "C:\Users\sbusuttil\pandas-bokeh\Pandas-Bokeh\venv\Lib\site-packages\pluggy\manager.py", line 299, in load_setuptools_entrypoints
    plugin = ep.load()
             ^^^^^^^^^
  File "C:\Users\sbusuttil\pandas-bokeh\Pandas-Bokeh\venv\Lib\site-packages\importlib_metadata\__init__.py", line 209, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\sbusuttil\AppData\Local\Programs\Python\Python311\Lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1138, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1074, in _find_spec
  File "<frozen importlib._bootstrap>", line 1048, in _find_spec_legacy
  File "C:\Users\sbusuttil\pandas-bokeh\Pandas-Bokeh\venv\Lib\site-packages\_pytest\assertion\rewrite.py", line 169, in find_module
    source_stat, co = _rewrite_test(self.config, fn_pypath)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\sbusuttil\pandas-bokeh\Pandas-Bokeh\venv\Lib\site-packages\_pytest\assertion\rewrite.py", line 406, in _rewrite_test
    co = compile(tree, fn.strpath, "exec", dont_inherit=True)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: required field "lineno" missing from alias