Skip to content

smodels v3.0.x PyPI distributions are broken #44

@matthewfeickert

Description

@matthewfeickert

The current distribution on PyPI is broken as it fails to install with both pip and uv. From the error messages it seems that smodels isn't being packaged correctly.

Reproducer with pip

$ docker run --rm -ti python:3.12 bash
root@c118f93e5e26:/# python -m venv venv && . venv/bin/activate
(venv) root@c118f93e5e26:/# python -m pip install --upgrade pip
(venv) root@c118f93e5e26:/# python -m pip install smodels
...
      ModuleNotFoundError: No module named 'smodels.tools.smodelsLogging'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for smodels

pip_full_log.txt

Reproducer with uv

$ docker run --rm -ti python:3.12 bash
root@c118f93e5e26:/# python -m venv venv && . venv/bin/activate
(venv) root@c118f93e5e26:/# python -m pip install --upgrade uv
(venv) root@c118f93e5e26:/# uv pip install smodels
...
          from smodels.tools.smodelsLogging import logger
      ModuleNotFoundError: No module named 'smodels.tools.smodelsLogging'

      hint: This usually indicates a problem with the package or the build environment.

uv_full_log.txt

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