Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mdecandia opened this issue Jul 2, 2020 · 0 comments
Labels

Comments

@mdecandia
Copy link
Member

mdecandia commented Jul 2, 2020

Description
Got error File "c:\users\mdecandia\desktop\env\lib\site-packages\dimod\bqm\__init__.py", line 16, in <module> 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 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

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

Additional Context
Windows was running on a VM using VMware Fusion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants