Skip to content

Missing dependency openpyxl #479

@rwedge

Description

@rwedge

Environment Details

Please indicate the following details about the environment in which you found the bug:

  • SDGym version: 0.11.0
  • Python version: 3.11.14
  • Operating System: macOS

Error Description

In the most recent release, an sdgym testing dependency openpyxl was imported directly in the code base but not updated to be a standard dependency. This causes sdgym to crash on import if the dependency is not installed manually.

Steps to reproduce

>>> import sdgym
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/rwedge/miniconda3/envs/testing/lib/python3.11/site-packages/sdgym/__init__.py", line 15, in <module>
    from sdgym.benchmark import benchmark_single_table
  File "/Users/rwedge/miniconda3/envs/testing/lib/python3.11/site-packages/sdgym/benchmark.py", line 46, in <module>
    from sdgym.result_writer import LocalResultsWriter, S3ResultsWriter
  File "/Users/rwedge/miniconda3/envs/testing/lib/python3.11/site-packages/sdgym/result_writer.py", line 11, in <module>
    from openpyxl import load_workbook
ModuleNotFoundError: No module named 'openpyxl'

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions