Skip to content

AttributeError: module 'pysam.libcalignedsegment' has no attribute '_AlignedSegment_Cache' #5

@ljwharbers

Description

@ljwharbers

Hi,

I wanted to give gwplot a try in python, however after installing it using pip install gwplot I get the following error on importing the package:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[1], [line 1](vscode-notebook-cell:?execution_count=1&line=1)
----> [1](vscode-notebook-cell:?execution_count=1&line=1) from gwplot import Gw

File /vsc-hard-mounts/leuven-data/364/vsc36452/software/micromamba/lib/python3.12/site-packages/gwplot/__init__.py:4
      2 from gwplot.glfw_interface import GLFW
----> [4](https://vscode-remote+ssh-002dremote-002bg28l20.vscode-resource.vscode-cdn.net/vsc-hard-mounts/leuven-data/364/vsc36452/software/micromamba/lib/python3.12/site-packages/gwplot/__init__.py:4) from gwplot.interface import (
      5     Gw,
      6     GwPalette
      7 )
      9 import importlib.metadata
     11 __version__ = importlib.metadata.version("gwplot")

File gwplot/interface.pyx:1, in init gwplot.interface()

AttributeError: module 'pysam.libcalignedsegment' has no attribute '_AlignedSegment_Cache'

My pysam is version 0.23.0 (as indicated also in the .toml as a requirement).

Thanks again for the cool tool!

Cheers,
Luuk

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions