Closed wysstartgo closed 1 month ago
In the latest version, I have fixed nanobind to 1.9.2. #40
I don't know why pip doesn't solve this dependency correctly. Maybe you need to manually install the correct version of nanobind.
[build-system]
requires = [
"setuptools>=42",
"scikit-build>=0.13",
"scikit-build-core>=0.3.3",
"nanobind==v1.9.2",
"cmake>=3.20",
"ninja",
]
Sorry, the 0.4.8 is not uploaded to pypi correctly.
All the pre-compiled files of 0.4.8 have been uploaded to pypi manually.
when I use pip install symusic==0.4.8,the error below occurs:
/tmp/pip-install-kti1b0xx/symusic_2329d688018f47829fa1210f09dfd269/3rdparty/zpp_bits/zpp_bits.h:2400:41: required from ‘constexpr auto zpp::bits::out<ByteView, Options>::operator()(auto:143&& ...) [with auto:143 = {const std::vector<symusic::Note<symusic::Tick>, std::allocator<symusic::Note<symusic::Tick> > >&}; ByteView = std::vector<unsigned char, std::allocator<unsigned char> >; Options = {}]’
/tmp/pip-install-kti1b0xx/symusic_2329d688018f47829fa1210f09dfd269/src/io/zpp.cpp:85:8: required from ‘symusic::vec<unsigned char> symusic::details::serailize_zpp(const T&) [with T = std::vector<symusic::Note<symusic::Tick>, std::allocator<symusic::Note<symusic::Tick> > >; symusic::vec<unsigned char> = std::vector<unsigned char, std::allocator<unsigned char> >]’
/tmp/pip-install-kti1b0xx/symusic_2329d688018f47829fa1210f09dfd269/src/io/zpp.cpp:130:1: required from here
/tmp/pip-install-kti1b0xx/symusic_2329d688018f47829fa1210f09dfd269/3rdparty/zpp_bits/zpp_bits.h:80:30: error: ‘__builtin_bit_cast’ was not declared in this scope; did you mean ‘__builtin_strcat’?
80 | return __builtin_bit_cast(ToType, from);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
| __builtin_strcat
[71/76] Building CXX object 3rdparty/prestosynth/CMakeFiles/prestosynth.dir/src/soundfont_internal.cpp.o
[72/76] Building CXX object CMakeFiles/symusic.dir/src/io/midi.cpp.o
[73/76] Building CXX object CMakeFiles/core.dir/py_src/core.cpp.o
ninja: build stopped: subcommand failed.
*** CMake build failed
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for symusic
Failed to build symusic
ERROR: Could not build wheels for symusic, which is required to install pyproject.toml-based projects
Can you provide the version about GCC and G++?
@wysstartgo You can refer here: https://github.com/Natooz/MidiTok/issues/155#issuecomment-2027122797
The zpp_bits
library requires a newer compiler to support some of the features in the c++20 standard. However, because of its better performance, I chose to use it for pickle support.
when I run pip install symusic,the error occurs:
I checked the nanobind,it is 2.0.0