Skip to content

Windows: ImportError 'DLL load failed while importing _greenlet' with default uvx resolution (greenlet 3.5.4); pinning 3.2.4 fixes it #688

Description

@singhguri

Environment

  • Windows 10/11 (git-bash), Python 3.11
  • Installed via uvx mcp-server-linkedin@latest (uv 0.7.x)

Symptom

The server crashes on startup before doing anything:

ImportError: DLL load failed while importing _greenlet: The specified module could not be found.

Full traceback: patchright.async_api -> patchright._impl._greenlets -> greenlet -> _greenlet C-extension fails to load.

Root cause

uvx mcp-server-linkedin@latest resolves greenlet 3.5.4 whose Windows wheel's _greenlet.pyd fails to import (missing VC runtime dependency / broken wheel for this platform). The same machine works fine with a pinned older greenlet.

Fix that works

uv tool run --with greenlet==3.2.4 --with mcp-server-linkedin mcp-server-linkedin

Verified: server starts, all tools (get_person_profile, search_people, get_company_profile, etc.) work, login flow works.

Suggested fix

  • Pin greenlet<3.3 (or >=3.2.4,<3.3) in the package's dependency spec, or
  • Investigate why greenlet 3.5.4's Windows wheel fails to load and bump to a fixed release.

Happy to provide more logs. This blocks all Windows users of the server.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions