Skip to content

Minimum tests failing - OSError: [WinError 1114] A dynamic link library (DLL) initialization routine failed #802

@amontanez24

Description

@amontanez24

Environment Details

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

  • SDMetrics version: 0.23.0
  • Python version: 3.10, 3.11, 3.12 (maybe others)
  • Operating System: Windows

Error Description

When running the minimum tests on Windows and Python 3.11 and under I see the following error:

ERROR tests/unit/version/test_version.py - OSError: [WinError 1114] A dynamic link library (DLL) initialization routine failed. Error loading "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\site-packages\torch\lib\c10.dll" or one of its dependencies.

!!!!!!!!!!!!!!!!!! Interrupted: 29 errors during collection !!!!!!!!!!!!!!!!!!!

======================= 1 warning, 29 errors in 37.23s ========================

Here is an example failing workflow.

Upon further investigation, I was able to reproduce locally and discovered that it happens if the new version of torch (2.9.0) is installed and a version of numpy < 2.0.0 is installed.

You can try the solution from this PR on SDV to fix this.

Steps to reproduce

On Windows, setup a python environment with python version 3.11 or 3.10. Then run the following:

pip install sdmetrics[dev]
invoke minimum

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