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

getting all ready to run #2

Open
AndrzejBandurski opened this issue Sep 20, 2019 · 1 comment
Open

getting all ready to run #2

AndrzejBandurski opened this issue Sep 20, 2019 · 1 comment

Comments

@AndrzejBandurski
Copy link

Hi, following your installation description I'm getting an error running the last python code

  • python -c "import t4; t4.Package.install('s3://quilt-example', 'quilt/open_images', './')"

Traceback (most recent call last):
File "", line 1, in
File "/home/andrzej/anaconda3/envs/quilt-open-images-dev/lib/python3.6/site-packages/t4/packages.py", line 343, in install
pkg = cls.browse(name=name, registry=registry, top_hash=top_hash)
File "/home/andrzej/anaconda3/envs/quilt-open-images-dev/lib/python3.6/site-packages/t4/packages.py", line 375, in browse
return cls._from_path(pkg_path)
File "/home/andrzej/anaconda3/envs/quilt-open-images-dev/lib/python3.6/site-packages/t4/packages.py", line 393, in _from_path
with open(parse_file_url(src_url)) as open_file:
IsADirectoryError: [Errno 21] Is a directory: '/home/andrzej/machineLearning/open-images/quilt/open_images/.quilt/packages/./'

python openimager.py also quits with an error

Traceback (most recent call last):
File "openimager.py", line 89, in
download(categories)
File "openimager.py", line 35, in download
label_map = dict(class_names.set_index('LabelName').loc[categories, 'LabelID']
File "/home/andrzej/anaconda3/envs/quilt-open-images-dev/lib/python3.6/site-packages/pandas/core/indexing.py", line 1418, in getitem
return self._getitem_tuple(key)
File "/home/andrzej/anaconda3/envs/quilt-open-images-dev/lib/python3.6/site-packages/pandas/core/indexing.py", line 805, in _getitem_tuple
return self._getitem_lowerdim(tup)
File "/home/andrzej/anaconda3/envs/quilt-open-images-dev/lib/python3.6/site-packages/pandas/core/indexing.py", line 961, in _getitem_lowerdim
return getattr(section, self.name)[new_key]
File "/home/andrzej/anaconda3/envs/quilt-open-images-dev/lib/python3.6/site-packages/pandas/core/indexing.py", line 1424, in getitem
return self._getitem_axis(maybe_callable, axis=axis)
File "/home/andrzej/anaconda3/envs/quilt-open-images-dev/lib/python3.6/site-packages/pandas/core/indexing.py", line 1839, in _getitem_axis
return self._getitem_iterable(key, axis=axis)
File "/home/andrzej/anaconda3/envs/quilt-open-images-dev/lib/python3.6/site-packages/pandas/core/indexing.py", line 1133, in _getitem_iterable
keyarr, indexer = self._get_listlike_indexer(key, axis, raise_missing=False)
File "/home/andrzej/anaconda3/envs/quilt-open-images-dev/lib/python3.6/site-packages/pandas/core/indexing.py", line 1092, in _get_listlike_indexer
keyarr, indexer, o._get_axis_number(axis), raise_missing=raise_missing
File "/home/andrzej/anaconda3/envs/quilt-open-images-dev/lib/python3.6/site-packages/pandas/core/indexing.py", line 1177, in _validate_read_indexer
key=key, axis=self.obj._get_axis_name(axis)
KeyError: "None of [Index(['Sandwiches', 'Hamburgers'], dtype='object', name='LabelName')] are in the [index]"

any thoughts on that ??
thanks!

@ResidentMario
Copy link
Contributor

The first error is due to a breaking API change that changed the order of the arguments to t4.Package.install. The updated instructions in the documentation should explain how the parameterization now works (note that the name of the Python package has changed as well, from t4 to quilt3—e.g. pip install -U quilt3 is the new install path).

The second error is due to Google transparently updating from V4 to V5 of the dataset, which introduced breaking changes in the names of things. The install script has not been updated and still uses the old asset paths and label names. For more information, see #1.

Hopefully a future update to this repo will fix these issues.

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