Skip to content

Add chardet as a dependency in requirements.txt? #2

Closed

Description

@GenevieveBuckley

I think chardet needs to be added to the requirements.txt. It's used in utils/metadata.py, and I get an import error in the first cell of the DaskFustion_Example.ipynb notebook if chardet is not installed.

To reproduce:

  1. Create a new python environment with the dependencies from
conda create -n daskfusion python=3.9 pip -y
conda activate daskfusion
python -m pip install -r requirements.txt
  1. Run the first cell of the DaskFusion_Example.ipynb notebook (or import utils.metadata)
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
/tmp/ipykernel_77756/2037699358.py in <module>
     12 from fuse.fuse import fuse_func
     13 from utils.download_sample import download_from_dropbox
---> 14 from utils.metadata import extract_coordinates, normalize_coords_to_pixel
     15 from utils.imutils import crop_black_border, load_image, transpose
     16 from utils.shapely_and_napari_utils import get_transformed_array_corners, numpy_shape_to_shapely

~/GitHub/DaskFusion/utils/metadata.py in <module>
      4 from typing import Tuple, Union
      5 
----> 6 import chardet
      7 import pandas as pd
      8 

ModuleNotFoundError: No module named 'chardet'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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