Skip to content

[Bug]: SciPy quick-start config is missing in a clean PyPI install #4

Description

@ilyuka

Result first

Hi,

I installed PhaseProbe 0.2.0 from PyPI in a clean Python 3.12 environment and tried the SciPy quick-start command:

phaseprobe perturb --config examples/scipy/lorenz.json

The command fails because examples/scipy/lorenz.json is not present in the working directory after a normal PyPI installation:

INVALID INPUT: cannot read configuration examples/scipy/lorenz.json: [Errno 2] No such file or directory: 'examples/scipy/lorenz.json'

RC=2

I expected the documented SciPy quick-start command to be runnable from a clean PyPI installation, or for the documentation to state that the example config requires a source checkout.

Minimal reproduction

python3 -m venv .venv
source .venv/bin/activate

python -m pip install --upgrade pip
python -m pip install "phaseprobe[scipy]==0.2.0"

test -f examples/scipy/lorenz.json
&& echo "SCIPY_CONFIG_PRESENT=YES"
|| echo "SCIPY_CONFIG_PRESENT=NO"

phaseprobe perturb --config examples/scipy/lorenz.json
echo "RC=$?"

Observed output:

SCIPY_CONFIG_PRESENT=NO
INVALID INPUT: cannot read configuration examples/scipy/lorenz.json: [Errno 2] No such file or directory: 'examples/scipy/lorenz.json'
RC=2

PhaseProbe and Python versions

PhaseProbe 0.2.0 Python 3.12.3

Operating system

Linux

Safety

  • I removed credentials, private model data, and personal information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions