Skip to content

'Error: Module did not self-register.' with Worker Threads #180

@zhaoaaaaa5

Description

@zhaoaaaaa5

node: 10.14.0
python: 2.7.15

After the dependency is pulled, the main process and the child process require('speaker') at the same time, and the child process will display Error: Module did not self-register when running.

No problem version
node: 20.12.0
python: 3.9.16

If the new version is used, the subprocess require('speaker') in the main process can be used at the same time without error, and the audio can be played normally

There is a way that the respective main process subprocess require('speaker') will not report errors and the audio will play properly without upgrading the node version

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