Open The-Real-Thisas opened 2 years ago
It looks like the wheels are missing from pypi on arm64 macOS on the latest 1.1.1 release. The build job looks like it failed: https://github.com/boschmitt/tweedledum/actions/runs/1218553134 but it was long enough ago that the logs are gone. @boschmitt can you retrigger the job so we can see what the failure is?
In the meantime you can probably just run pip install --prefer-binary tweedledum tweedldum
and it will install tweedledum from 1.1.0 which has the missing wheels available.
Thanks @mtreinish.
I will investigate this further.
@mtreinish this does not work with arm64, I have the same issue.
arch -arm64 pip install cmake tweedledum --no-binary :all:
[58/73] Building CXX object CMakeFiles/_tweedledum.dir/src/Synthesis/xag/xag_synth.cpp.o
[59/73] Building CXX object CMakeFiles/_tweedledum.dir/src/Synthesis/decomp_synth.cpp.o
[60/73] Building CXX object CMakeFiles/_tweedledum.dir/src/Synthesis/diagonal_synth.cpp.o
[61/73] Building CXX object CMakeFiles/_tweedledum.dir/src/Synthesis/gray_synth.cpp.o
[62/73] Building CXX object CMakeFiles/_tweedledum.dir/src/Utils/Visualization/string_utf8.cpp.o
FAILED: CMakeFiles/_tweedledum.dir/src/Utils/Visualization/string_utf8.cpp.o
/Library/Developer/CommandLineTools/usr/bin/c++ -DABC_NAMESPACE=pabc -DABC_NO_USE_READLINE -DDISABLE_NAUTY -DFMT_HEADER_ONLY=1 -DLIN64 -D_tweedledum_EXPORTS -I/private/var/folders/4y/fksy204x14b55bxyl0ytbjwm0000gn/T/pip-install-dli152zz/tweedledum_35ba19d29c9444f9b3bf756075aa975e/include -I/private/var/folders/4y/fksy204x14b55bxyl0ytbjwm0000gn/T/pip-install-dli152zz/tweedledum_35ba19d29c9444f9b3bf756075aa975e/external/abcsat -I/private/var/folders/4y/fksy204x14b55bxyl0ytbjwm0000gn/T/pip-install-dli152zz/tweedledum_35ba19d29c9444f9b3bf756075aa975e/external/abcesop -I/private/var/folders/4y/fksy204x14b55bxyl0ytbjwm0000gn/T/pip-install-dli152zz/tweedledum_35ba19d29c9444f9b3bf756075aa975e/external/abcresub -isystem /private/var/folders/4y/fksy204x14b55bxyl0ytbjwm0000gn/T/pip-install-dli152zz/tweedledum_35ba19d29c9444f9b3bf756075aa975e/external/pybind11/include -isystem /Users/sol/.pyenv/versions/3.9.7/include/python3.9 -isystem /private/var/folders/4y/fksy204x14b55bxyl0ytbjwm0000gn/T/pip-install-dli152zz/tweedledum_35ba19d29c9444f9b3bf756075aa975e/external/eigen -isystem /opt/homebrew/include -isystem /private/var/folders/4y/fksy204x14b55bxyl0ytbjwm0000gn/T/pip-install-dli152zz/tweedledum_35ba19d29c9444f9b3bf756075aa975e/external/mockturtle -isystem /private/var/folders/4y/fksy204x14b55bxyl0ytbjwm0000gn/T/pip-install-dli152zz/tweedledum_35ba19d29c9444f9b3bf756075aa975e/external/kitty -isystem /private/var/folders/4y/fksy204x14b55bxyl0ytbjwm0000gn/T/pip-install-dli152zz/tweedledum_35ba19d29c9444f9b3bf756075aa975e/external/lorina -isystem /private/var/folders/4y/fksy204x14b55bxyl0ytbjwm0000gn/T/pip-install-dli152zz/tweedledum_35ba19d29c9444f9b3bf756075aa975e/external/rang -isystem /private/var/folders/4y/fksy204x14b55bxyl0ytbjwm0000gn/T/pip-install-dli152zz/tweedledum_35ba19d29c9444f9b3bf756075aa975e/external/parallel_hashmap -isystem /private/var/folders/4y/fksy204x14b55bxyl0ytbjwm0000gn/T/pip-install-dli152zz/tweedledum_35ba19d29c9444f9b3bf756075aa975e/external/percy -isystem /private/var/folders/4y/fksy204x14b55bxyl0ytbjwm0000gn/T/pip-install-dli152zz/tweedledum_35ba19d29c9444f9b3bf756075aa975e/external/nlohmann -isystem /private/var/folders/4y/fksy204x14b55bxyl0ytbjwm0000gn/T/pip-install-dli152zz/tweedledum_35ba19d29c9444f9b3bf756075aa975e/external/bill -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -mmacosx-version-min=12.0 -fPIC -fvisibility=hidden -flto -std=gnu++17 -MD -MT CMakeFiles/_tweedledum.dir/src/Utils/Visualization/string_utf8.cpp.o -MF CMakeFiles/_tweedledum.dir/src/Utils/Visualization/string_utf8.cpp.o.d -o CMakeFiles/_tweedledum.dir/src/Utils/Visualization/string_utf8.cpp.o -c /private/var/folders/4y/fksy204x14b55bxyl0ytbjwm0000gn/T/pip-install-dli152zz/tweedledum_35ba19d29c9444f9b3bf756075aa975e/src/Utils/Visualization/string_utf8.cpp
/private/var/folders/4y/fksy204x14b55bxyl0ytbjwm0000gn/T/pip-install-dli152zz/tweedledum_35ba19d29c9444f9b3bf756075aa975e/src/Utils/Visualization/string_utf8.cpp:328:15: error: no matching function for call to 'format'
fmt::format(U"{:>2}", wire - diagram.num_qubits());
^~~~~~~~~~~
/opt/homebrew/include/fmt/core.h:3204:31: note: candidate function [with T = <unsigned int>] not viable: no known conversion from 'const char32_t [6]' to 'format_string<unsigned int>' (aka 'basic_format_string<char, unsigned int>') for 1st argument
FMT_NODISCARD FMT_INLINE auto format(format_string<T...> fmt, T&&... args)
^
I have had the same issue on an M1 MacBook with macOS Ventura 13.0.1.
There is a workaround:
1) pip install tweedledum-dev 2) hack the installation as follows: a) in the site-packages directory rename tweedledum_dev-1.2.0.dev202109060824.dist-info/ to tweedledum_dev-1.2.0.dist-info/ b) edit the METADATA file in the dist-info directory as follows: i) change tweedledum-dev in the Name: line to tweedledum ii) change 1.2.0.dev202109060824 in the Version: line to 1.2.0
After you do this, pip will think you have satisfied the requirement for tweedledum (rather than tweedledum-dev) and so will allow you to install packages that depend on tweedledum.
If this approach does not appeal to you, you can punt on virtual environment and use Anaconda, which also works.
Describe the bug
Does not install on m1 macs.
Reproducible example code
Expected behavior
Successful installation.
Information
Additional context
I got this issue while installing qiskit which depends on tweedledum.
I can confirm that
pip install tweedledum==1.1.0
works butpip install tweedledum
doesn't.