Comments (10)
Hi @pifparfait , we unfortunately don't provide ARM wheels yet. That means that you are needing to build from the source distributions. At the moment, dimod requires boost, though we're planning to remove that dependency soon (see dwavesystems/dimod#618, dwavesystems/dimod#748).
You can try installing boost and then trying to install dimod again.
from dwave-ocean-sdk.
@arcondello Many thanks for the answer. Did you ever try to install boost by command lines?
from dwave-ocean-sdk.
I believe it should be as simple as apt-get install libboost-dev
.
from dwave-ocean-sdk.
@arcondello, many thanks!! It looks that it has been installed. But when I'm trying to import "from braket.ocean_plugin import BraketSampler, BraketDWaveSampler" I got this message. Any idea? ---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
in
1 import boto3
2 from braket.aws import AwsDevice
----> 3 from braket.ocean_plugin import BraketSampler, BraketDWaveSampler
/usr/local/lib/python3.7/dist-packages/braket/ocean_plugin/init.py in
12 # language governing permissions and limitations under the License.
13
---> 14 from braket.ocean_plugin.braket_dwave_sampler import BraketDWaveSampler # noqa: F401
15 from braket.ocean_plugin.braket_sampler import BraketSampler # noqa: F401
16 from braket.ocean_plugin.braket_solver_metadata import BraketSolverMetadata # noqa: F401
/usr/local/lib/python3.7/dist-packages/braket/ocean_plugin/braket_dwave_sampler.py in
20
21 from boltons.dictutils import FrozenDict
---> 22 from dimod import SampleSet
23
24 from braket.aws import AwsDevice, AwsSession
ImportError: cannot import name 'SampleSet' from 'dimod' (/home/pi/.local/lib/python3.7/site-packages/dimod/init.py)
from dwave-ocean-sdk.
Can you run pip3 freeze
and send the output? Also, were your install steps (something like)
apt-get install libboost-dev
pip3 install amazon-braket-ocean-plugin
from dwave-ocean-sdk.
sure!! Thanks @arcondello
absl-py==0.12.0
amazon-braket-default-simulator==1.1.1.post2
amazon-braket-ocean-plugin @ file:///home/pi/qRobot/libcint/build/amazon-braket-ocean-plugin-python
amazon-braket-pennylane-plugin==1.1.0.post1
amazon-braket-schemas==1.1.3
amazon-braket-sdk==1.5.15
appdirs==1.4.4
argon2-cffi==20.1.0
asn1crypto==0.24.0
astroid==2.1.0
asttokens==1.1.13
astunparse==1.6.3
async-generator==1.10
attrs==20.3.0
autograd==1.3
automationhat==0.2.0
backcall==0.2.0
backoff==1.10.0
beautifulsoup4==4.7.1
bleach==3.3.0
blinker==1.4
blinkt==0.1.2
boltons==20.2.1
boto3==1.17.53
botocore==1.20.53
bottle==0.12.19
buttonshim==0.0.2
cachetools==4.2.1
Cap1xxx==0.1.3
certifi==2018.8.24
cffi==1.14.5
chardet==3.0.4
cirq==0.10.0
Click==7.0
colorama==0.3.7
colorzero==1.1
conan==1.35.1
cookies==2.2.1
cryptography==2.6.1
cupshelpers==1.0
cycler==0.10.0
Cython==0.29.21
decorator==4.3.0
defusedxml==0.7.1
deprecation==2.0.7
dill==0.3.3
dimod==0.9.14
distro==1.5.0
dlx==1.0.4
docplex==2.20.204
docutils==0.14
drumhat==0.1.0
dwave-networkx==0.8.8
entrypoints==0.3
enum34==1.1.10
envirophat==1.0.0
ExplorerHAT==0.4.2
fastdtw==0.3.4
fasteners==0.16
fastjsonschema==2.15.0
filelock==3.0.12
Flask==1.0.2
fourletterphat==0.1.0
future==0.18.2
gast==0.3.3
gdown==3.12.2
google-api-core==1.26.3
google-auth==1.29.0
google-auth-oauthlib==0.4.4
google-pasta==0.2.0
googleapis-common-protos==1.53.0
gpiozero==1.5.1
grpcio==1.37.0
h5py==2.10.0
homebase==1.0.1
html5lib==1.0.1
idna==2.6
importlib-metadata==3.10.1
inflection==0.5.1
ipykernel==5.5.3
ipython==7.22.0
ipython-genutils==0.2.0
ipywidgets==7.6.3
isort==4.3.4
itsdangerous==0.24
jedi==0.18.0
Jinja2==2.10
jmespath==0.10.0
joblib==1.0.1
jsonschema==2.6.0
jupyter==1.0.0
jupyter-client==6.2.0
jupyter-console==6.4.0
jupyter-core==4.7.1
jupyterlab-pygments==0.1.2
jupyterlab-widgets==1.0.0
Keras-Preprocessing==1.1.2
keyring==17.1.1
keyrings.alt==3.1.1
kiwisolver==1.3.1
lazy-object-proxy==1.3.1
llvmlite==0.27.0
logilab-common==1.4.2
lxml==4.6.3
Markdown==3.3.4
MarkupSafe==1.1.0
marshmallow==2.21.0
marshmallow-polyfield==3.2
matplotlib==3.4.1
mccabe==0.6.1
microdotphat==0.2.1
mistune==0.8.4
more-itertools==8.7.0
mote==0.0.4
motephat==0.0.3
mpmath==1.2.1
multitasking==0.0.9
mypy==0.670
mypy-extensions==0.4.1
nbclient==0.5.3
nbconvert==5.4.1
nbformat==5.1.3
nest-asyncio==1.5.1
networkx==2.5.1
node-semver==0.6.1
notebook==6.3.0
ntlm-auth==1.5.0
numpy==1.20.2
oauthlib==2.1.0
olefile==0.46
openfermion==1.0.1
openfermionpsi4==0.5
openfermionpyscf==0.2
opt-einsum==3.3.0
packaging==20.9
pandas==1.2.3
pandocfilters==1.4.3
pantilthat==0.0.7
parso==0.8.2
patch-ng==1.17.4
PennyLane==0.14.1
pexpect==4.6.0
pgzero==1.2
phatbeat==0.1.1
pianohat==0.1.0
pickleshare==0.7.5
piglow==1.2.5
pigpio==1.78
Pillow==8.2.0
plotly==4.14.3
plucky==0.4.3
pluginbase==1.0.0
ply==3.11
prometheus-client==0.10.1
prompt-toolkit==3.0.18
protobuf==3.13.0
psutil==5.5.1
ptyprocess==0.7.0
PubChemPy==1.0.4
pyasn1==0.4.8
pyasn1-modules==0.2.8
pybind11==2.6.2
pycairo==1.16.2
pycparser==2.20
pycrypto==2.6.1
pycups==1.9.73
pydantic==1.8.1
pydot==1.4.2
pygame==1.9.4.post1
Pygments==2.8.1
PyGObject==3.30.4
pyinotify==0.9.6
PyJWT==1.7.0
pylatexenc==2.10
pylint==2.2.2
pyOpenSSL==19.0.0
pyparsing==2.4.7
pyrsistent==0.17.3
pyserial==3.4
pysmbc==1.0.15.6
PySocks==1.7.1
python-apt==1.8.4.3
python-constraint==1.4.0
python-dateutil==2.8.1
pytz==2021.1
pyxdg==0.25
PyYAML==5.4.1
pyzmq==22.0.3
qiskit==0.25.1
qiskit-aer==0.8.1
qiskit-aqua==0.9.1
qiskit-finance==0.1.0
qiskit-ibmq-provider==0.12.2
qiskit-ignis==0.6.0
qiskit-nature==0.1.1
qiskit-optimization==0.1.0
qiskit-terra==0.17.1
qtconsole==5.0.3
QtPy==1.9.0
Quandl==3.6.0
rainbowhat==0.1.0
reportlab==3.5.13
requests==2.25.1
requests-ntlm==1.1.0
requests-oauthlib==1.0.0
responses==0.9.0
retrying==1.3.3
retworkx==0.8.0
roman==2.0.0
RPi.GPIO==0.7.0
rsa==4.7.2
RTIMULib==7.2.1
s3transfer==0.3.7
scikit-build==0.11.1
scikit-learn==0.24.1
scipy==1.6.1
scrollphat==0.0.7
scrollphathd==1.2.1
seaborn==0.11.1
SecretStorage==2.3.1
semantic-version==2.6.0
Send2Trash==1.5.0
sense-hat==2.2.0
simplejson==3.16.0
six==1.15.0
skywriter==0.0.7
sn3218==1.2.7
sortedcontainers==2.3.0
soupsieve==1.8
spidev==3.4
ssh-import-id==5.7
sympy==1.7.1
tensorboard==2.4.1
tensorboard-plugin-wit==1.8.0
tensorflow==2.3.1
tensorflow-estimator==2.3.0
termcolor==1.1.0
terminado==0.9.4
testpath==0.4.4
thonny==3.3.6
threadpoolctl==2.1.0
toml==0.10.2
tornado==6.1
touchphat==0.0.1
tqdm==4.60.0
traitlets==5.0.5
twython==3.7.0
typed-ast==1.3.1
typing-extensions==3.7.4.3
unicornhathd==0.0.4
urllib3==1.26.4
wcwidth==0.2.5
webencodings==0.5.1
websockets==8.1
Werkzeug==0.14.1
widgetsnbextension==3.5.1
wrapt==1.12.1
yfinance==0.1.55
zipp==3.4.1
from dwave-ocean-sdk.
Hmm, dimod seems to be installed correctly. What about python -c "from dimod import SampleSet"
(substituting python3
if that's what you're using) does that work without complaining or raise an error?
Also, please check that the output of pip3 freeze
is the same as python -m pip freeze
(again substituting python3
if needed).
from dwave-ocean-sdk.
@arcondello it works! I had to reset the terminal. Now I have an issue with:
Building wheels for collected packages: dwave-tabu, minorminer
Building wheel for dwave-tabu (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-klb28v7z/dwave-tabu_c6b6fb80c9964a0eb1a9f289678999c1/setup.py'"'"'; file='"'"'/tmp/pip-install-klb28v7z/dwave-tabu_c6b6fb80c9964a0eb1a9f289678999c1/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-qq0ya9m7
cwd: /tmp/pip-install-klb28v7z/dwave-tabu_c6b6fb80c9964a0eb1a9f289678999c1/
Complete output (9 lines):
running bdist_wheel
running build
running build_py
running build_ext
building 'tabu._tabu_search' extension
swigging tabu/tabu_search.i to tabu/tabu_search_wrap.cpp
swig -python -c++ -threads -o tabu/tabu_search_wrap.cpp tabu/tabu_search.i
unable to execute 'swig': No such file or directory
error: command 'swig' failed with exit status 1
ERROR: Failed building wheel for dwave-tabu
Running setup.py clean for dwave-tabu
Building wheel for minorminer (setup.py) ... done
Created wheel for minorminer: filename=minorminer-0.2.5-cp37-cp37m-linux_aarch64.whl size=4608440 sha256=356a5ead654ee14635565d3ab840c70f901bb46b1cb54b7fff34e8f5c37c6a9b
Stored in directory: /root/.cache/pip/wheels/88/6c/af/247ad48a11483b87e77c6d2c9a8e9564db3e3702a1e239c63e
Successfully built minorminer
Failed to build dwave-tabu
Installing collected packages: PySocks, plucky, homebase, fasteners, dwave-networkx, minorminer, dwave-tabu, dwave-cloud-client, dwave-system
Running setup.py install for dwave-tabu ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-klb28v7z/dwave-tabu_c6b6fb80c9964a0eb1a9f289678999c1/setup.py'"'"'; file='"'"'/tmp/pip-install-klb28v7z/dwave-tabu_c6b6fb80c9964a0eb1a9f289678999c1/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-4v83n2ne/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/dwave-tabu
cwd: /tmp/pip-install-klb28v7z/dwave-tabu_c6b6fb80c9964a0eb1a9f289678999c1/
Complete output (9 lines):
running install
running build
running build_py
running build_ext
building 'tabu._tabu_search' extension
swigging tabu/tabu_search.i to tabu/tabu_search_wrap.cpp
swig -python -c++ -threads -o tabu/tabu_search_wrap.cpp tabu/tabu_search.i
unable to execute 'swig': No such file or directory
error: command 'swig' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-klb28v7z/dwave-tabu_c6b6fb80c9964a0eb1a9f289678999c1/setup.py'"'"'; file='"'"'/tmp/pip-install-klb28v7z/dwave-tabu_c6b6fb80c9964a0eb1a9f289678999c1/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-4v83n2ne/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/dwave-tabu Check the logs for full command output.
from dwave-ocean-sdk.
I think this duplicates dwavesystems/dwave-tabu#77, you might try the suggestions in dwavesystems/dwave-tabu#77 (comment)
from dwave-ocean-sdk.
I solved it with: pip install -U pip setuptools
USE_CYTHON=1 pip install -e git+https://github.com/dwavesystems/dwave-tabu.git#egg=dwave-tabu
@arcondello Many thanks for your help!
from dwave-ocean-sdk.
Related Issues (20)
- Deprecate dwave-greedy, dwave-neal and dwave-tabu in favor of dwave-samplers
- The 'Getting Started' section of README doesn't explain where to put the API key HOT 1
- How to count time ? HOT 2
- Please allow to do task submission and any other operations using C++
- Switch quadratic interaction in diet example to ints
- Look into migrating from sphinx-panels to sphinx-design
- New Solver for Sampling or Satisfaction HOT 7
- REAL variables (e.g. 'rice') cannot have interactions error in Diet Planning example HOT 2
- Consider splitting the "test_individual_pkgs" test in CI into multiple jobs
- Drop support for Python 3.7 HOT 1
- We should redirect old individual package docs to the main Ocean docs
- multi objective framing
- Unable to install due to failed building wheel for rectangle-packer HOT 5
- Sphinx>4.5.0 does not render :code: with single backslash HOT 2
- File I/O
- dwave.conf issue HOT 1
- Collision of libraries at HPC Forschungszentrum Jülich HOT 2
- Error: Invalid configuration when using Sampler() HOT 4
- Error in one Diet Planning code line
- Upgrade CI to use Apple silicon resources only
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dwave-ocean-sdk.