dwavesystems / dwavesystems/dimod
Running dimod on Windows requires the latest Visual C++ which may not always be installed
- Dominant language
- Python
- Stars
- 143
- Forks
- 91
- Avg merge
- 1h 24m
- Merged PRs (30d)
- 3
Description
**Description**
Got error ```File "c:\users\mdecandia\desktop\env\lib\site-packages\dimod\bqm\__init__.py", line 16, in
from dimod.bqm.adjarraybqm import AdjArrayBQM
ImportError: DLL load failed: The specified module could not be found.```
when running `dwave setup` after installing `dwave-ocean-sdk` in a fresh virtual environment on Windows.
Installing the latest version of Visual C++ from [here](https://support.microsoft.com/en-ca/help/2977003/the-latest-supported-visual-c-downloads) fixed the issue.
**Steps To Reproduce**
1. Run Windows 10 Pro on a VM
2. Create a python virtual environment
3. Run `pip install dwave-ocean-sdk`
4. Run `dwave setup`
**Possible Root Cause**
From @randomir:
A basic (or universal) MSVC redistributable (a collection of DLLs for C/C++ programs compiled with MS VC++) comes with Windows, and the problem (like this) usually arises when the C++ program/compiler uses some "too modern" features that require a newer VC redist. (For example, that's what happened here: [Issue 577](https://github.com/dwavesystems/dimod/issues/577)
**Environment**
- OS: Windows 10 Pro, version 1909
- Python version: Python 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)] on win32

**Additional Context**
Windows was running on a VM using VMware Fusion
Contributor guide
Assessment
This issue has not been assessed yet.