Skip to content

Update deprecated code #6

Update deprecated code

Update deprecated code #6

GitHub Actions / TestsResults_mongo33.11_mongodb_backend failed Oct 8, 2024 in 0s

1 errors, 2 skipped, 81 pass in 0s

84 tests   81 ✅  0s ⏱️
 2 suites   2 💤
 2 files     0 ❌  1 🔥

Results for commit cfc0aad.

Annotations

Check failure on line 0 in mongodb_backend.tests.MongoDBORMTests.test_export_data

See this annotation in the file changed.

@github-actions github-actions / TestsResults_mongo33.11_mongodb_backend

test_export_data (mongodb_backend.tests.MongoDBORMTests.test_export_data) with error

report_tests/mongodb_backend.xml [took 0s]
Raw output
Error At test_export_data
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/pandas/compat/_optional.py", line 135, in import_optional_dependency
    module = importlib.import_module(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/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 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'openpyxl'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/runner/work/mongodb_backend/mongodb_backend/src/erp/server/bin/addons/mongodb_backend/tests/__init__.py", line 436, in test_export_data
    df_xlsx = pd.read_excel(xlsx_f)
              ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/pandas/io/excel/_base.py", line 495, in read_excel
    io = ExcelFile(
         ^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/pandas/io/excel/_base.py", line 1567, in __init__
    self._reader = self._engines[engine](
                   ^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/pandas/io/excel/_openpyxl.py", line 552, in __init__
    import_optional_dependency("openpyxl")
  File "/opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/pandas/compat/_optional.py", line 138, in import_optional_dependency
    raise ImportError(msg)
ImportError: Missing optional dependency 'openpyxl'.  Use pip or conda to install openpyxl.