Skip to content

Events dependency is out of date #139

@rajsite

Description

@rajsite

Description

The range specifier used does not allow pulling in the latest version of Events==0.5

If we do want to only support the range defined by caret specifiers (>=0.4 and < 0.5) then we should update and adopt the new version of ^0.5.

Context

Trying to load nisystemlink-clients in a browser wasm environment such as pyodide fails.
To reproduce the failure:

  1. Go to the pyodide repl in browser
  2. Run the commands:
    import micropip
    await micropip.install("nisystemlink-clients", keep_going=True)
  3. Notice the failure message:
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/lib/python3.12/site-packages/micropip/package_manager.py", line 146, in install
    return await install(
           ^^^^^^^^^^^^^^
  File "/lib/python3.12/site-packages/micropip/install.py", line 56, in install
    raise ValueError(
ValueError: Can't find a pure Python 3 wheel for: 'events<0.5,>=0.4', 'pydantic-core==2.33.2'
See: https://pyodide.org/en/stable/usage/faq.html#why-can-t-micropip-find-a-pure-python-wheel-for-a-package

I believe the root cause of the issue is that it looks like version 0.4 of the Events library was only published as a source distribution: https://pypi.org/project/Events/0.4/#files
While version 0.5 is published as a modern wheel (.whl): https://pypi.org/project/Events/#files

You can verify version 0.5 will load correctly by following the repro steps above but instead just loading Events:

import micropip
await micropip.install("Events", keep_going=True)

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency file

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions