Skip to content

module 'pysam.libcalignedsegment' has no attribute 'CMATCH' #1339

@Adamtaranto

Description

@Adamtaranto

I'm getting a strange pysam error that only seems to occur when I am running with Python 3.8 on on MacOS latest in this github action. Error does not occur on ubuntu.

When importing pysam I get this error:

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pysam/__init__.py:21: in <module>
    from pysam.libcalignedsegment import *
E   AttributeError: module 'pysam.libcalignedsegment' has no attribute 'CMATCH'

Versions:

  • Python version: 3.8.10 (v3.8.10:3d8993a744, May 3 2021, 09:09:08)
  • [Clang 12.0.5 (clang-1205.0.22.9)]
  • Pysam: pysam-0.23.0-cp38-cp38-macosx_11_0_universal2.whl

Here is the log of the github action where this is failing: https://github.com/tanghaibao/jcvi/actions/runs/14951392044/job/42001281341

I don't see how libcalignedsegment could be missing that attribute.

Maybe similar to #1055 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions