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

ModuleNotFoundError: No module named 'pascal_voc_writer' #4

Open
ajayvbabu opened this issue Jul 31, 2020 · 1 comment
Open

ModuleNotFoundError: No module named 'pascal_voc_writer' #4

ajayvbabu opened this issue Jul 31, 2020 · 1 comment

Comments

@ajayvbabu
Copy link

/Users/ajayvbabu/x/aaaa/YoloToTfRecords/pascal_voc_writer/VisDrone/0000001_02999_d_0000005.jpg
Traceback (most recent call last):
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/init.py", line 359, in get_provider
module = sys.modules[moduleOrReq]
KeyError: 'pascal_voc_writer'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "YoloToTfRecords/pascal_voc_writer/init.py", line 142, in
parse_yolo_labels(images_list_file_name=trainFiles,classes=classes)
File "YoloToTfRecords/pascal_voc_writer/init.py", line 88, in parse_yolo_labels
writer = Writer(imageFile, width=width, height=height)
File "YoloToTfRecords/pascal_voc_writer/init.py", line 7, in init
environment = Environment(loader=PackageLoader('pascal_voc_writer', 'templates'), keep_trailing_newline=True)
File "/Users/ajayvbabu/Library/Python/3.7/lib/python/site-packages/jinja2/loaders.py", line 237, in init
provider = get_provider(package_name)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/init.py", line 361, in get_provider
import(moduleOrReq)
ModuleNotFoundError: No module named 'pascal_voc_writer'

@prak74
Copy link

prak74 commented Sep 5, 2020

There apparently exists a module named pascal_voc_writer on pip. Just install that using
pip install pascal_voc_writer

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

2 participants