Skip to content

no module named 'text_recognizer' #7

@bwanaaa

Description

@bwanaaa

from the lab2_sln directory I entered
$python text_recognizer/datasets/emnist_dataset.py
and got

fsdl-text-recognizer-project/lab2_sln$ python text_recognizer/dataset/emnist_dataset.pyTraceback (most recent call last):
  File "text_recognizer/datasets/emnist_dataset.py", line 16, in <module>
    from text_recognizer.datasets.dataset import _download_raw_dataset, Dataset, _parse_args
ModuleNotFoundError: No module named 'text_recognizer'

The emnist_dataset.py script DOES have this line

from text_recognizer.datasets.dataset import _download_raw_dataset, Dataset, _parse_args

and the dataset.py script has this line in it:
from text_recognizer import util

There is however NO text_recognizer.py script. However there is a text_recognizer directory with the lab2_sln directory

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