Skip to content

music.Setup() fails if nest is imported #70

@cristianoalessandro

Description

@cristianoalessandro

Hi all,

I recently found this issue. If nest is imported, music.Setup() complains that Setup constructor was already called.

#!/usr/bin/env python3

import music
import nest

import ctypes
ctypes.CDLL("libmpi.so", mode=ctypes.RTLD_GLOBAL)

setup = music.Setup()

running this simple code throws the error:

Error in MUSIC library: rank #0: Setup constructor was called a second time.
Only one Setup object can exist at any instance of time.

This is independent of the order of the two imports, and the issue disappears by commenting out import nest.

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