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

KeyError when trying out the Example #205

Open
Gindo70 opened this issue Jun 21, 2018 · 1 comment
Open

KeyError when trying out the Example #205

Gindo70 opened this issue Jun 21, 2018 · 1 comment

Comments

@Gindo70
Copy link

Gindo70 commented Jun 21, 2018

Hi,

when i try to run following Code from the Example i get a KeyError.

training_dictionary, test_dictionary = keras_rcnn.datasets.shape.load_data()

KeyError                                  Traceback (most recent call last)
<ipython-input-1-eb62b4b51859> in <module>()
      5 import keras_rcnn.preprocessing
      6 
----> 7 training_dictionary, test_dictionary = keras_rcnn.datasets.shape.load_data()

~/anaconda3/lib/python3.5/site-packages/keras_rcnn-0.0.2-py3.5.egg/keras_rcnn/datasets/shape.py in load_data()
     11     resource_path = "/".join(["data", "schema.json"])
     12 
---> 13     with open(pkg_resources.resource_filename("keras_rcnn", resource_path)) as stream:
     14         schema = json.load(stream)
     15 

~/anaconda3/lib/python3.5/site-packages/pkg_resources/__init__.py in resource_filename(self, package_or_requirement, resource_name)
   1135         """Return a true filesystem path for specified resource"""
   1136         return get_provider(package_or_requirement).get_resource_filename(
-> 1137             self, resource_name
   1138         )
   1139 

~/anaconda3/lib/python3.5/site-packages/pkg_resources/__init__.py in get_resource_filename(self, manager, resource_name)
   1644             for name in eagers:
   1645                 self._extract_resource(manager, self._eager_to_zip(name))
-> 1646         return self._extract_resource(manager, zip_path)
   1647 
   1648     @staticmethod

~/anaconda3/lib/python3.5/site-packages/pkg_resources/__init__.py in _extract_resource(self, manager, zip_path)
   1665             return os.path.dirname(last)
   1666 
-> 1667         timestamp, size = self._get_date_and_size(self.zipinfo[zip_path])
   1668 
   1669         if not WRITE_SUPPORT:

KeyError: 'keras_rcnn/data/schema.json'

Any help is appreciated.

@jhung0
Copy link
Contributor

jhung0 commented Jun 22, 2018 via email

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