dwavesystems / dwave-ocean-sdk

Installer for D-Wave's Ocean tools
https://docs.ocean.dwavesys.com
Apache License 2.0
416 stars 155 forks source link

problem while installing amazon-braket-ocean-plugin on ARM64 #125

Closed pifparfait closed 3 years ago

pifparfait commented 3 years ago

Description I'm trying to install ion ARM64 the amazon-braket-ocean-plugin. But I got an issue

To Reproduce pip3 install amazon-braket-ocean-plugin

dimod/roof_duality/src/fix_variables.cpp:30:10: fatal error: boost/graph/graph_traits.hpp: No such file or directory

include <boost/graph/graph_traits.hpp>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1

----------------------------------------

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-7h7kufq3/dimod/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-l2xntlxv/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-7h7kufq3/dimod/

Environment:

Additional context Building wheel for dimod (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-gl_8jz/dimod_408a1a4a564e454081b5958e5fc33c14/setup.py'"'"'; file='"'"'/tmp/pip-install-gl_8jz/dimod_408a1a4a564e454081b5958e5fc33c14/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-_0f7bxfk cwd: /tmp/pip-install-gl_8jz/dimod_408a1a4a564e454081b5958e5fc33c14/ Complete output (146 lines): /usr/local/lib/python3.7/dist-packages/setuptools/dist.py:645: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead % (opt, underscore_opt)) /usr/local/lib/python3.7/dist-packages/setuptools/dist.py:645: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead % (opt, underscore_opt)) running bdist_wheel running build running build_py creating build creating build/lib.linux-aarch64-3.7 creating build/lib.linux-aarch64-3.7/dimod copying dimod/utilities.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/sampleset.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/vartypes.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/decorators.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/compatibility23.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/variables.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/converters.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/package_info.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/init.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/binary_quadratic_model.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/traversal.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/meta.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/exceptions.py -> build/lib.linux-aarch64-3.7/dimod creating build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/construction.py -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/init.py -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/adjdictbqm.py -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/make.py -> build/lib.linux-aarch64-3.7/dimod/bqm creating build/lib.linux-aarch64-3.7/dimod/core copying dimod/core/structured.py -> build/lib.linux-aarch64-3.7/dimod/core copying dimod/core/polysampler.py -> build/lib.linux-aarch64-3.7/dimod/core copying dimod/core/sampler.py -> build/lib.linux-aarch64-3.7/dimod/core copying dimod/core/init.py -> build/lib.linux-aarch64-3.7/dimod/core copying dimod/core/initialized.py -> build/lib.linux-aarch64-3.7/dimod/core copying dimod/core/composite.py -> build/lib.linux-aarch64-3.7/dimod/core copying dimod/core/bqm.py -> build/lib.linux-aarch64-3.7/dimod/core creating build/lib.linux-aarch64-3.7/dimod/discrete copying dimod/discrete/discrete_quadratic_model.py -> build/lib.linux-aarch64-3.7/dimod/discrete copying dimod/discrete/init.py -> build/lib.linux-aarch64-3.7/dimod/discrete creating build/lib.linux-aarch64-3.7/dimod/generators copying dimod/generators/chimera.py -> build/lib.linux-aarch64-3.7/dimod/generators copying dimod/generators/fcl.py -> build/lib.linux-aarch64-3.7/dimod/generators copying dimod/generators/random.py -> build/lib.linux-aarch64-3.7/dimod/generators copying dimod/generators/init.py -> build/lib.linux-aarch64-3.7/dimod/generators copying dimod/generators/anti_crossing.py -> build/lib.linux-aarch64-3.7/dimod/generators copying dimod/generators/constraints.py -> build/lib.linux-aarch64-3.7/dimod/generators creating build/lib.linux-aarch64-3.7/dimod/higherorder copying dimod/higherorder/polynomial.py -> build/lib.linux-aarch64-3.7/dimod/higherorder copying dimod/higherorder/utils.py -> build/lib.linux-aarch64-3.7/dimod/higherorder copying dimod/higherorder/init.py -> build/lib.linux-aarch64-3.7/dimod/higherorder creating build/lib.linux-aarch64-3.7/dimod/reference copying dimod/reference/init.py -> build/lib.linux-aarch64-3.7/dimod/reference creating build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/truncatecomposite.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/structure.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/spin_transform.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/fixedvariable.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/connectedcomponent.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/tracking.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/roofduality.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/init.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/scalecomposite.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/higherordercomposites.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/clipcomposite.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites creating build/lib.linux-aarch64-3.7/dimod/reference/samplers copying dimod/reference/samplers/exact_solver.py -> build/lib.linux-aarch64-3.7/dimod/reference/samplers copying dimod/reference/samplers/simulated_annealing.py -> build/lib.linux-aarch64-3.7/dimod/reference/samplers copying dimod/reference/samplers/null_sampler.py -> build/lib.linux-aarch64-3.7/dimod/reference/samplers copying dimod/reference/samplers/identity_sampler.py -> build/lib.linux-aarch64-3.7/dimod/reference/samplers copying dimod/reference/samplers/init.py -> build/lib.linux-aarch64-3.7/dimod/reference/samplers copying dimod/reference/samplers/random_sampler.py -> build/lib.linux-aarch64-3.7/dimod/reference/samplers creating build/lib.linux-aarch64-3.7/dimod/roof_duality copying dimod/roof_duality/init.py -> build/lib.linux-aarch64-3.7/dimod/roof_duality copying dimod/roof_duality/fix_variables.py -> build/lib.linux-aarch64-3.7/dimod/roof_duality creating build/lib.linux-aarch64-3.7/dimod/serialization copying dimod/serialization/coo.py -> build/lib.linux-aarch64-3.7/dimod/serialization copying dimod/serialization/utils.py -> build/lib.linux-aarch64-3.7/dimod/serialization copying dimod/serialization/format.py -> build/lib.linux-aarch64-3.7/dimod/serialization copying dimod/serialization/json.py -> build/lib.linux-aarch64-3.7/dimod/serialization copying dimod/serialization/fileview.py -> build/lib.linux-aarch64-3.7/dimod/serialization copying dimod/serialization/init.py -> build/lib.linux-aarch64-3.7/dimod/serialization creating build/lib.linux-aarch64-3.7/dimod/testing copying dimod/testing/sampler.py -> build/lib.linux-aarch64-3.7/dimod/testing copying dimod/testing/init.py -> build/lib.linux-aarch64-3.7/dimod/testing copying dimod/testing/asserts.py -> build/lib.linux-aarch64-3.7/dimod/testing creating build/lib.linux-aarch64-3.7/dimod/views copying dimod/views/samples.py -> build/lib.linux-aarch64-3.7/dimod/views copying dimod/views/init.py -> build/lib.linux-aarch64-3.7/dimod/views running egg_info writing dimod.egg-info/PKG-INFO writing dependency_links to dimod.egg-info/dependency_links.txt writing requirements to dimod.egg-info/requires.txt writing top-level names to dimod.egg-info/top_level.txt reading manifest file 'dimod.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '.cc' under directory 'dimod/bqm' warning: no files found matching '.h' under directory 'dimod/bqm' writing manifest file 'dimod.egg-info/SOURCES.txt' copying dimod/init.pxd -> build/lib.linux-aarch64-3.7/dimod creating build/lib.linux-aarch64-3.7/dimod/include creating build/lib.linux-aarch64-3.7/dimod/include/dimod copying dimod/include/dimod/adjarraybqm.h -> build/lib.linux-aarch64-3.7/dimod/include/dimod copying dimod/include/dimod/adjmapbqm.h -> build/lib.linux-aarch64-3.7/dimod/include/dimod copying dimod/include/dimod/adjvectorbqm.h -> build/lib.linux-aarch64-3.7/dimod/include/dimod copying dimod/include/dimod/utils.h -> build/lib.linux-aarch64-3.7/dimod/include/dimod copying dimod/bqm/init.pxd -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/adjarraybqm.cpp -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/adjarraybqm.pxd -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/adjarraybqm.pyx -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/adjmapbqm.cpp -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/adjmapbqm.pxd -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/adjmapbqm.pyx -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/adjvectorbqm.cpp -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/adjvectorbqm.pxd -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/adjvectorbqm.pyx -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/common.cpp -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/common.pxd -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/common.pyx -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/cppbqm.pxd -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/shapeablebqm.pyx.src -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/utils.cpp -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/utils.pxd -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/utils.pyx -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/discrete/init.pxd -> build/lib.linux-aarch64-3.7/dimod/discrete copying dimod/discrete/cydiscrete_quadratic_model.cpp -> build/lib.linux-aarch64-3.7/dimod/discrete copying dimod/discrete/cydiscrete_quadratic_model.pxd -> build/lib.linux-aarch64-3.7/dimod/discrete copying dimod/discrete/cydiscrete_quadratic_model.pyx -> build/lib.linux-aarch64-3.7/dimod/discrete copying dimod/roof_duality/_fix_variables.cpp -> build/lib.linux-aarch64-3.7/dimod/roof_duality copying dimod/roof_duality/_fix_variables.pyx -> build/lib.linux-aarch64-3.7/dimod/roof_duality creating build/lib.linux-aarch64-3.7/dimod/roof_duality/src copying dimod/roof_duality/src/compressed_matrix.hpp -> build/lib.linux-aarch64-3.7/dimod/roof_duality/src copying dimod/roof_duality/src/fix_variables.cpp -> build/lib.linux-aarch64-3.7/dimod/roof_duality/src copying dimod/roof_duality/src/fix_variables.hpp -> build/lib.linux-aarch64-3.7/dimod/roof_duality/src running build_ext building 'dimod.roof_duality._fix_variables' extension creating build/temp.linux-aarch64-3.7 creating build/temp.linux-aarch64-3.7/dimod creating build/temp.linux-aarch64-3.7/dimod/roof_duality creating build/temp.linux-aarch64-3.7/dimod/roof_duality/src aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Idimod/roof_duality/src/ -I/usr/include/python3.7m -I/usr/local/lib/python3.7/dist-packages/numpy/core/include -I/tmp/pip-install-gl_8j__z/dimod_408a1a4a564e454081b5958e5fc33c14/dimod/include -c dimod/roof_duality/_fix_variables.cpp -o build/temp.linux-aarch64-3.7/dimod/roof_duality/_fix_variables.o -std=c++11 -std=c++11 aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Idimod/roof_duality/src/ -I/usr/include/python3.7m -I/usr/local/lib/python3.7/dist-packages/numpy/core/include -I/tmp/pip-install-gl_8jz/dimod_408a1a4a564e454081b5958e5fc33c14/dimod/include -c dimod/roof_duality/src/fix_variables.cpp -o build/temp.linux-aarch64-3.7/dimod/roof_duality/src/fix_variables.o -std=c++11 -std=c++11 dimod/roof_duality/src/fix_variables.cpp:30:10: fatal error: boost/graph/graph_traits.hpp: No such file or directory

include <boost/graph/graph_traits.hpp>

        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated. error: command 'aarch64-linux-gnu-gcc' failed with exit status 1

ERROR: Failed building wheel for dimod Running setup.py clean for dimod Failed to build dimod Installing collected packages: dimod Running setup.py install for dimod ... 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-gl_8jz/dimod_408a1a4a564e454081b5958e5fc33c14/setup.py'"'"'; file='"'"'/tmp/pip-install-gl_8jz/dimod_408a1a4a564e454081b5958e5fc33c14/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-c6qmsqha/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/dimod cwd: /tmp/pip-install-gl_8jz/dimod_408a1a4a564e454081b5958e5fc33c14/ Complete output (146 lines): /usr/local/lib/python3.7/dist-packages/setuptools/dist.py:645: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead % (opt, underscore_opt)) /usr/local/lib/python3.7/dist-packages/setuptools/dist.py:645: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead % (opt, underscore_opt)) running install running build running build_py creating build creating build/lib.linux-aarch64-3.7 creating build/lib.linux-aarch64-3.7/dimod copying dimod/utilities.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/sampleset.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/vartypes.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/decorators.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/compatibility23.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/variables.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/converters.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/package_info.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/init.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/binary_quadratic_model.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/traversal.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/meta.py -> build/lib.linux-aarch64-3.7/dimod copying dimod/exceptions.py -> build/lib.linux-aarch64-3.7/dimod creating build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/construction.py -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/init.py -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/adjdictbqm.py -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/make.py -> build/lib.linux-aarch64-3.7/dimod/bqm creating build/lib.linux-aarch64-3.7/dimod/core copying dimod/core/structured.py -> build/lib.linux-aarch64-3.7/dimod/core copying dimod/core/polysampler.py -> build/lib.linux-aarch64-3.7/dimod/core copying dimod/core/sampler.py -> build/lib.linux-aarch64-3.7/dimod/core copying dimod/core/init.py -> build/lib.linux-aarch64-3.7/dimod/core copying dimod/core/initialized.py -> build/lib.linux-aarch64-3.7/dimod/core copying dimod/core/composite.py -> build/lib.linux-aarch64-3.7/dimod/core copying dimod/core/bqm.py -> build/lib.linux-aarch64-3.7/dimod/core creating build/lib.linux-aarch64-3.7/dimod/discrete copying dimod/discrete/discrete_quadratic_model.py -> build/lib.linux-aarch64-3.7/dimod/discrete copying dimod/discrete/init.py -> build/lib.linux-aarch64-3.7/dimod/discrete creating build/lib.linux-aarch64-3.7/dimod/generators copying dimod/generators/chimera.py -> build/lib.linux-aarch64-3.7/dimod/generators copying dimod/generators/fcl.py -> build/lib.linux-aarch64-3.7/dimod/generators copying dimod/generators/random.py -> build/lib.linux-aarch64-3.7/dimod/generators copying dimod/generators/init.py -> build/lib.linux-aarch64-3.7/dimod/generators copying dimod/generators/anti_crossing.py -> build/lib.linux-aarch64-3.7/dimod/generators copying dimod/generators/constraints.py -> build/lib.linux-aarch64-3.7/dimod/generators creating build/lib.linux-aarch64-3.7/dimod/higherorder copying dimod/higherorder/polynomial.py -> build/lib.linux-aarch64-3.7/dimod/higherorder copying dimod/higherorder/utils.py -> build/lib.linux-aarch64-3.7/dimod/higherorder copying dimod/higherorder/init.py -> build/lib.linux-aarch64-3.7/dimod/higherorder creating build/lib.linux-aarch64-3.7/dimod/reference copying dimod/reference/init.py -> build/lib.linux-aarch64-3.7/dimod/reference creating build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/truncatecomposite.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/structure.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/spin_transform.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/fixedvariable.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/connectedcomponent.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/tracking.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/roofduality.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/init.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/scalecomposite.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/higherordercomposites.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites copying dimod/reference/composites/clipcomposite.py -> build/lib.linux-aarch64-3.7/dimod/reference/composites creating build/lib.linux-aarch64-3.7/dimod/reference/samplers copying dimod/reference/samplers/exact_solver.py -> build/lib.linux-aarch64-3.7/dimod/reference/samplers copying dimod/reference/samplers/simulated_annealing.py -> build/lib.linux-aarch64-3.7/dimod/reference/samplers copying dimod/reference/samplers/null_sampler.py -> build/lib.linux-aarch64-3.7/dimod/reference/samplers copying dimod/reference/samplers/identity_sampler.py -> build/lib.linux-aarch64-3.7/dimod/reference/samplers copying dimod/reference/samplers/init.py -> build/lib.linux-aarch64-3.7/dimod/reference/samplers copying dimod/reference/samplers/random_sampler.py -> build/lib.linux-aarch64-3.7/dimod/reference/samplers creating build/lib.linux-aarch64-3.7/dimod/roof_duality copying dimod/roof_duality/init.py -> build/lib.linux-aarch64-3.7/dimod/roof_duality copying dimod/roof_duality/fix_variables.py -> build/lib.linux-aarch64-3.7/dimod/roof_duality creating build/lib.linux-aarch64-3.7/dimod/serialization copying dimod/serialization/coo.py -> build/lib.linux-aarch64-3.7/dimod/serialization copying dimod/serialization/utils.py -> build/lib.linux-aarch64-3.7/dimod/serialization copying dimod/serialization/format.py -> build/lib.linux-aarch64-3.7/dimod/serialization copying dimod/serialization/json.py -> build/lib.linux-aarch64-3.7/dimod/serialization copying dimod/serialization/fileview.py -> build/lib.linux-aarch64-3.7/dimod/serialization copying dimod/serialization/init.py -> build/lib.linux-aarch64-3.7/dimod/serialization creating build/lib.linux-aarch64-3.7/dimod/testing copying dimod/testing/sampler.py -> build/lib.linux-aarch64-3.7/dimod/testing copying dimod/testing/init.py -> build/lib.linux-aarch64-3.7/dimod/testing copying dimod/testing/asserts.py -> build/lib.linux-aarch64-3.7/dimod/testing creating build/lib.linux-aarch64-3.7/dimod/views copying dimod/views/samples.py -> build/lib.linux-aarch64-3.7/dimod/views copying dimod/views/init.py -> build/lib.linux-aarch64-3.7/dimod/views running egg_info writing dimod.egg-info/PKG-INFO writing dependency_links to dimod.egg-info/dependency_links.txt writing requirements to dimod.egg-info/requires.txt writing top-level names to dimod.egg-info/top_level.txt reading manifest file 'dimod.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '.cc' under directory 'dimod/bqm' warning: no files found matching '.h' under directory 'dimod/bqm' writing manifest file 'dimod.egg-info/SOURCES.txt' copying dimod/init.pxd -> build/lib.linux-aarch64-3.7/dimod creating build/lib.linux-aarch64-3.7/dimod/include creating build/lib.linux-aarch64-3.7/dimod/include/dimod copying dimod/include/dimod/adjarraybqm.h -> build/lib.linux-aarch64-3.7/dimod/include/dimod copying dimod/include/dimod/adjmapbqm.h -> build/lib.linux-aarch64-3.7/dimod/include/dimod copying dimod/include/dimod/adjvectorbqm.h -> build/lib.linux-aarch64-3.7/dimod/include/dimod copying dimod/include/dimod/utils.h -> build/lib.linux-aarch64-3.7/dimod/include/dimod copying dimod/bqm/init.pxd -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/adjarraybqm.cpp -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/adjarraybqm.pxd -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/adjarraybqm.pyx -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/adjmapbqm.cpp -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/adjmapbqm.pxd -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/adjmapbqm.pyx -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/adjvectorbqm.cpp -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/adjvectorbqm.pxd -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/adjvectorbqm.pyx -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/common.cpp -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/common.pxd -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/common.pyx -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/cppbqm.pxd -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/shapeablebqm.pyx.src -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/utils.cpp -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/utils.pxd -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/bqm/utils.pyx -> build/lib.linux-aarch64-3.7/dimod/bqm copying dimod/discrete/init.pxd -> build/lib.linux-aarch64-3.7/dimod/discrete copying dimod/discrete/cydiscrete_quadratic_model.cpp -> build/lib.linux-aarch64-3.7/dimod/discrete copying dimod/discrete/cydiscrete_quadratic_model.pxd -> build/lib.linux-aarch64-3.7/dimod/discrete copying dimod/discrete/cydiscrete_quadratic_model.pyx -> build/lib.linux-aarch64-3.7/dimod/discrete copying dimod/roof_duality/_fix_variables.cpp -> build/lib.linux-aarch64-3.7/dimod/roof_duality copying dimod/roof_duality/_fix_variables.pyx -> build/lib.linux-aarch64-3.7/dimod/roof_duality creating build/lib.linux-aarch64-3.7/dimod/roof_duality/src copying dimod/roof_duality/src/compressed_matrix.hpp -> build/lib.linux-aarch64-3.7/dimod/roof_duality/src copying dimod/roof_duality/src/fix_variables.cpp -> build/lib.linux-aarch64-3.7/dimod/roof_duality/src copying dimod/roof_duality/src/fix_variables.hpp -> build/lib.linux-aarch64-3.7/dimod/roof_duality/src running build_ext building 'dimod.roof_duality._fix_variables' extension creating build/temp.linux-aarch64-3.7 creating build/temp.linux-aarch64-3.7/dimod creating build/temp.linux-aarch64-3.7/dimod/roof_duality creating build/temp.linux-aarch64-3.7/dimod/roof_duality/src aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Idimod/roof_duality/src/ -I/usr/include/python3.7m -I/usr/local/lib/python3.7/dist-packages/numpy/core/include -I/tmp/pip-install-gl_8jz/dimod_408a1a4a564e454081b5958e5fc33c14/dimod/include -c dimod/roof_duality/_fix_variables.cpp -o build/temp.linux-aarch64-3.7/dimod/roof_duality/_fix_variables.o -std=c++11 -std=c++11 aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Idimod/roof_duality/src/ -I/usr/include/python3.7m -I/usr/local/lib/python3.7/dist-packages/numpy/core/include -I/tmp/pip-install-gl_8j__z/dimod_408a1a4a564e454081b5958e5fc33c14/dimod/include -c dimod/roof_duality/src/fix_variables.cpp -o build/temp.linux-aarch64-3.7/dimod/roof_duality/src/fix_variables.o -std=c++11 -std=c++11 dimod/roof_duality/src/fix_variables.cpp:30:10: fatal error: boost/graph/graph_traits.hpp: No such file or directory

include <boost/graph/graph_traits.hpp>

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'aarch64-linux-gnu-gcc' 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-gl_8jz/dimod_408a1a4a564e454081b5958e5fc33c14/setup.py'"'"'; file='"'"'/tmp/pip-install-gl_8jz/dimod_408a1a4a564e454081b5958e5fc33c14/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-c6qmsqha/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/dimod Check the logs for full command output.

arcondello commented 3 years ago

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 https://github.com/dwavesystems/dimod/issues/618, https://github.com/dwavesystems/dimod/pull/748).

You can try installing boost and then trying to install dimod again.

pifparfait commented 3 years ago

@arcondello Many thanks for the answer. Did you ever try to install boost by command lines?

arcondello commented 3 years ago

I believe it should be as simple as apt-get install libboost-dev.

pifparfait commented 3 years ago

@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)
arcondello commented 3 years ago

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
pifparfait commented 3 years ago

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

arcondello commented 3 years ago

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).

pifparfait commented 3 years ago

@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.

arcondello commented 3 years ago

I think this duplicates https://github.com/dwavesystems/dwave-tabu/issues/77, you might try the suggestions in https://github.com/dwavesystems/dwave-tabu/issues/77#issuecomment-828446682

pifparfait commented 3 years ago

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!