Skip to content

decorator not included in pyproject.toml #94

@JackReevesEyre-NOAA

Description

@JackReevesEyre-NOAA

Installing thalassa with pip, which (I think) uses the pyproject.toml file for dependencies, results in import errors. Specifically these are related to the decorator library not being included in the env.

To recreate:
In a bash shell:

mkdir thalassa_test_env
cd thalassa_test_env
python -m venv .venv
source .venv/bin/activate
pip install thalassa
python -c "import thalassa"

results in:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/jre/test/thalassa_env/.venv/lib/python3.12/site-packages/thalassa/__init__.py", line 9, in <module>
    from .api import open_dataset
  File "/home/jre/test/thalassa_env/.venv/lib/python3.12/site-packages/thalassa/api.py", line 10, in <module>
    from . import normalization
  File "/home/jre/test/thalassa_env/.venv/lib/python3.12/site-packages/thalassa/normalization.py", line 12, in <module>
    from . import utils
  File "/home/jre/test/thalassa_env/.venv/lib/python3.12/site-packages/thalassa/utils.py", line 8, in <module>
    import decorator
ModuleNotFoundError: No module named 'decorator'

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