Skip to content

import dpsimpy fails in Docker/Binder #432

@georgii-tishenin

Description

@georgii-tishenin

Describe the bug
When using the Python wrapper of DPsim via Binder (e.g. Quickstart Guide.ipynb example), the import of dpsimpy fails.

To Reproduce
Steps to reproduce the behavior:

  1. Go to DPsim GitHub
  2. Click on launch Binder badge in README file.
  3. Open QuickStart Guide.ipynb
  4. Run import dpsimpy cell -> produces an error: ImportError: /home/jovyan/.local/lib/python3.13/site-packages/dpsimpy.cpython-313-x86_64-linux-gnu.so: undefined symbol: villas__node__message__unpack

Expected behavior
no error in step 4.

Additional context
This seems to happen only in the Docker environment using the Dockerfile. Hence:

  • Local (not Docker-based) installation of dpsimpy works without issues.
  • CI passes. This may be worth to add a test to catch this problem in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions