question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

macOS-only failures in CI with RDKit visualization

See original GitHub issue

Log: https://github.com/openforcefield/openff-toolkit/runs/5504391595?check_suite_focus=true

Traceback:

________________ TestMoleculeVisualization.test_visualize_rdkit ________________
openff/toolkit/tests/test_molecule.py:3797: in test_visualize_rdkit
    assert isinstance(mol.visualize(backend="rdkit"), IPython.core.display.SVG)
openff/toolkit/topology/molecule.py:6479: in visualize
    from rdkit.Chem.Draw import (  # type: ignore[import]
../../../miniconda3/envs/test/lib/python3.9/site-packages/rdkit/Chem/Draw/__init__.py:14: in <module>
    from rdkit.Chem.Draw import rdMolDraw2D
E   ImportError: dlopen(/Users/runner/miniconda3/envs/test/lib/python3.9/site-packages/rdkit/Chem/Draw/rdMolDraw2D.so, 2): Library not loaded: @rpath/libfontconfig.1.dylib
E     Referenced from: /Users/runner/miniconda3/envs/test/lib/libcairo.2.dylib
E     Reason: Incompatible library version: libcairo.2.dylib requires version 14.0.0 or later, but libfontconfig.1.dylib provides version 13.0.0

I can’t reproduce this locally (macOS, Python 3.9) with the same versions of cairo, pycairo, and rdkit, the latter of which was recently bumped to 2021.09.5. I checked the RDKit and its feedstock’s issue tracker and nobody else has reported it yet.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mattwthompsoncommented, Mar 24, 2022

I somehow did not have the thought of looking as far as the fontconfig feedstock, where I found a familiar face already tracked this down and reported it! https://github.com/conda-forge/fontconfig-feedstock/issues/54

0reactions
mattwthompsoncommented, Apr 15, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

macOS dylib version changed despite fontconfig ... - GitHub
I am trying to debug a CI error where a dependency of ours (RDKit) is failing to import since the fontconfig build number...
Read more >
Getting Started with the RDKit in Python
If you find mistakes, or have suggestions for improvements, please either fix ... Similarity maps are a way to visualize the atomic contributions...
Read more >
RDKit Cookbook — The RDKit 2022.09.1 documentation
This document provides example recipes of how to carry out particular tasks using the RDKit functionality from Python. The contents have been contributed...
Read more >
The RDKit Book — The RDKit 2022.09.1 documentation
The RDKit Aromaticity Model​​ Notice that exocyclic bonds to electronegative atoms “steal” the valence electron from the ring atom and that dummy atoms ......
Read more >
rdkit.Chem.Draw package
rdkit.Chem.Draw. DrawMorganEnv (mol, atomId, radius, molSize=150, 150, baseRad=0.3, useSVG=True, aromaticColor=0.9, 0.9, 0.2, ringColor=0.8, 0.8, 0.8, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found