Repository navigation
Description
Description
Reminder for me to bump unifrac-binaries for 2027.4 so that we don't retain the libcxx pin that I added in this dev cycle.
I had to pin libcxx=23.1.4 in the osx seed environments (2027.1/tiny & 2027.1/qiime2) to fix a broken unifrac import. Error shown below because the logs associated with this failed run will get deleted:
ERROR: failed to import QIIME 2 plugin module 'q2_boots.plugin_setup'
Traceback (most recent call last):
File "<string>", line 19, in <module>
File "/Users/runner/work/distributions/distributions/test-env/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 999, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/Users/runner/work/distributions/distributions/test-env/lib/python3.12/site-packages/q2_boots/__init__.py", line 12, in <module>
from ._beta import beta, beta_collection, beta_average
File "/Users/runner/work/distributions/distributions/test-env/lib/python3.12/site-packages/q2_boots/_beta.py", line 19, in <module>
from q2_diversity_lib.beta import METRICS
File "/Users/runner/work/distributions/distributions/test-env/lib/python3.12/site-packages/q2_diversity_lib/beta.py", line 12, in <module>
import unifrac
File "/Users/runner/work/distributions/distributions/test-env/lib/python3.12/site-packages/unifrac/__init__.py", line 51, in <module>
from unifrac._api import ssu, ssu_fast, set_random_seed, ssu_dense_pair
ImportError: dlopen(/Users/runner/work/distributions/distributions/test-env/lib/python3.12/site-packages/unifrac/_api.cpython-312-darwin.so, 0x0002): Symbol not found: __ZNKSt3__121__basic_string_commonILb1EE20__throw_length_errorEv
Referenced from: <A6552DEB-6F00-35D4-A8EA-F590D78A1ECD> /Users/runner/work/distributions/distributions/test-env/lib/libssu.so
Expected in: <8AC9E5D0-D3D4-331F-BC69-6204125B42E6> /Users/runner/work/distributions/distributions/test-env/lib/libc++.1.0.dylib
The short story of this issue is that newer builds of libcxx are no longer compatible with unifrac-binaries 1.5.1 due to when they were built & compiled. We can't request a new build on bioconda that will fix this issue because the only version of unifrac-binaries they retain in their recipes is 1.7.
Our simplest solution (as opposed to either trying to build/host a fixed version of unifrac-binaries 1.5.1 ourselves or request a new version recipe on bioconda) is to just bump unifrac-binaries in the next dependency release (2027.4) which will allow us to drop the libcxx pin.
I tested locally and confirmed that unifrac-binaries 1.6 & 1.7 both work, so these are our smallest possible jumps to fix this issue.
For posterity, my local testing:
- Created test envs with unifrac-binaries=1.x unifrac libcxx=23.1.5=h88b51c2_2
- Ran python -c 'import unifrac' & ssu --help
Activity
lizgehret commentedon Nov 24, 2026
closed by #1896 #1897 #1898 #1908 #1909 #1910 #1911