Skip to content

Could not find C standard library #127

Open

Description

@anhvietnguyennva

I got the error: RuntimeError: Could not find C standard library when running the getting started script https://github.com/elliottech/lighter-python?tab=readme-ov-file#getting-started. How to fix it?

I'm using Python 3.11.0, windows 11

Activity

  1. anhvietnguyennva commented on Mar 3, 2026

    @anhvietnguyennva
    Author

    In the README.md, it requries Python 3.8+. However, from Python 3.8 onwards, ctypes.util.find_msvcrt() always returns None.

  2. biberhund commented on Mar 6, 2026

    @biberhund

    Same issue, Python3.12, Win11

  3. 0xsagashi commented on Mar 12, 2026

    @0xsagashi

    Hi @biberhund @anhvietnguyennva ,
    Same issue here.
    Resolved by downgrading the SDK from 1.0.6 to 1.0.3. (Ty BlazeFury)
    Also make sure to have your VC_redist installed, and your Path updated.

    Windows 10 - Python 3.11

  4. DoganM95 commented on Mar 13, 2026

    @DoganM95

    Same here. On windows it says

    in get_libc raise RuntimeError("Could not find C standard library")
    

    But on linux it works just fine.

  5. DoganM95 commented on Mar 13, 2026

    @DoganM95

    0xsacha from lighter discord recommended downgrading to 1.0.3 and it works on windows without trowing the C lib error:

    pip install --upgrade --force-reinstall git+https://github.com/elliottech/lighter-python.git@v1.0.3

    To the devs, please fix this with the next update, since any version above 1.0.3 is broken in this regard.

  6. anhvietnguyennva commented on Mar 15, 2026

    @anhvietnguyennva
    Author

    I need staking/unstaking in the new release version, so can not downgrade to 1.0.3. Please fix it devs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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