Skip to content

cannot import name 'set_default_params' from 'cachier' #241

@daroczig

Description

@daroczig

I suppose this is related to #237, which introduced renaming "default" to "global" params with a deprecation warning. Still, with the new cachier 3.1.0 release from an hour ago, I see the below breaking change:

$ docker run -ti --rm python bash

root@692082a607bd:/# pip install cachier
Collecting cachier
  Downloading cachier-3.1.0-py3-none-any.whl.metadata (20 kB)
Collecting portalocker>=2.3.2 (from cachier)
  Downloading portalocker-2.10.1-py3-none-any.whl.metadata (8.5 kB)
Collecting watchdog>=2.3.1 (from cachier)
  Downloading watchdog-5.0.3-py3-none-manylinux2014_x86_64.whl.metadata (41 kB)
Downloading cachier-3.1.0-py3-none-any.whl (23 kB)
Downloading portalocker-2.10.1-py3-none-any.whl (18 kB)
Downloading watchdog-5.0.3-py3-none-manylinux2014_x86_64.whl (79 kB)
Installing collected packages: watchdog, portalocker, cachier
Successfully installed cachier-3.1.0 portalocker-2.10.1 watchdog-5.0.3
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.

root@692082a607bd:/# python
Python 3.13.0 (main, Oct 17 2024, 03:03:33) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from cachier import set_default_params
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    from cachier import set_default_params
ImportError: cannot import name 'set_default_params' from 'cachier' (/usr/local/lib/python3.13/site-packages/cachier/__init__.py). Did you mean: 'set_global_params'?

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