Skip to content

Wrong module name when using 'cargo build' #3

@Psykopear

Description

@Psykopear

I cloned the repo and ran 'cargo build' inside the directory (rustc --version => 1.15.1).
Everything's fine except i had to rename the produced file from 'liblibrespot.so' to 'librespot.so' because otherwise python would complain at import time:

>>> import liblibrespot
ImportError: dynamic module does not define module export function (PyInit_liblibrespot)

Changing the name field in the [lib] section in the Cargo.toml from 'librespot' to 'respot' solved the problem, but I'm not sure that's the right way as I never programmed in Rust.

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