Skip to content

ImportError: cannot import name 'hash_name' from 'fsspec.implementations.cached' #214

@dpprdan

Description

@dpprdan

In get an ImportError on import pins in a new conda environment.

My environment.yml

name: pins_test
channels:
  - conda-forge
  - nodefaults
dependencies:
  - python=3.11
  - s3fs
  - boto3
  - pins
  - ipykernel

On import pins I get a

ImportError: cannot import name 'hash_name' from 'fsspec.implementations.cached' (c:\Users\Daniel\AppData\Local\mambaforge\envs\pins_test\Lib\site-packages\fsspec\implementations\cached.py)

hash_name is (supposed to be) imported here:

from fsspec.implementations.cached import SimpleCacheFileSystem, hash_name

But fsspec/implementations/cached.py does not contain an importable hash_name function since this commit, AFAICT.

cf. https://community.rstudio.com/t/python-pins-will-not-run-in-shiny-for-python-app-on-posit-connect-server/173148

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