Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GenevieveBuckley opened this issue Nov 2, 2021 · 0 comments
Open

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

GenevieveBuckley opened this issue Nov 2, 2021 · 0 comments

Comments

@GenevieveBuckley
Copy link
Collaborator

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant