dwavesystems / dwavesystems/dimod

Running dimod on Windows requires the latest Visual C++ which may not always be installed

Open
#669 0 comments 0 reactions 0 assignees View on GitHub
bug
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
![Screen Shot 2020-06-30 at 15 30 29 PM](https://user-images.githubusercontent.com/7495207/86407534-14d0b980-bc6a-11ea-8579-7ad794f5a7bd.png)

**Additional Context**
Windows was running on a VM using VMware Fusion

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.