Coder Social home page Coder Social logo

Install Issue on m1 macs about tweedledum HOT 4 OPEN

boschmitt avatar boschmitt commented on July 17, 2024 1
Install Issue on m1 macs

from tweedledum.

Comments (4)

mtreinish avatar mtreinish commented on July 17, 2024

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.

boschmitt avatar boschmitt commented on July 17, 2024

Thanks @mtreinish.

I will investigate this further.

from tweedledum.

BoltzmannEntropy avatar BoltzmannEntropy commented on July 17, 2024

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

EDDahl avatar EDDahl commented on July 17, 2024

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.

from tweedledum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.