Comments (4)
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.
from tweedledum.
Thanks @mtreinish.
I will investigate this further.
from tweedledum.
@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)
^
from tweedledum.
I have had the same issue on an M1 MacBook with macOS Ventura 13.0.1.
There is a workaround:
- pip install tweedledum-dev
- 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.
from tweedledum.
Related Issues (20)
- CMake: doesn't install anything if -DTWEEDLEDUM_PYBINDS=OFF HOT 2
- Add support for python dimacs reader in memory HOT 2
- Import tweedledum failing on MacOS HOT 11
- DOC: error in README.md
- pip install fails HOT 3
- ability to specify a timeout on exact synthesis
- compute_depth() crashes on empty circuit
- Building fails HOT 6
- Build failure of tests (catch2) with gcc 10.3.0, glibc 2.34 HOT 1
- macOS 13 could not install tweedledum with CMake issue HOT 1
- With TWEEDLEDUM_PYBINDS=OFF fewer C++ files are compiled but still produces the same result
- Tests fail: E ModuleNotFoundError: No module named 'pybind11_tests'
- 3313 assertions in 73 test cases
- Python build should reuse the C++ library
- Build fails with Python 3.11 because of outdated pybind11 HOT 2
- "license_file" will be deprecated 10/30/2023 (replaced with "license_files") HOT 2
- Failure reading DIMACS files with 10 variables or more
- Unable to pip install -- invalid pyproject.toml configuration HOT 5
- Push a release with python 3.9 wheels HOT 1
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 tweedledum.