dwavesystems / dwave-samplers

Classical algorithms for solving binary quadratic models
Apache License 2.0
11 stars 15 forks source link

`ImportError` after pip installing `dwave-system` #57

Closed arcondello closed 1 year ago

arcondello commented 1 year ago

See https://github.com/dwavesystems/dwave-preprocessing/issues/130.

tldr; delvewheel patches dwave/__init__.py to make use of the new .pyd files. So installing dwave-system (or another namespace package) afterwards overwrites that patch.

The solution is to use the new --namespace-pkg flag introduced in delvewheel 1.4.0.