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

Exception when using World Map Slice #1135

Closed
maver1ck opened this issue Sep 19, 2016 · 13 comments
Closed

Exception when using World Map Slice #1135

maver1ck opened this issue Sep 19, 2016 · 13 comments
Labels
validation:required A committer should validate the issue

Comments

@maver1ck
Copy link
Contributor

maver1ck commented Sep 19, 2016

When choosing World Map Slice, I'm getting this exception.
Unfortunatelly exception isn't pass to UI, so query is running infinitely.

2016-09-19 12:05:28,571:ERROR:root:Wrong number of items passed 2, placement implies 1
Traceback (most recent call last):
  File "/home/mbrynski/.local/lib/python3.4/site-packages/pandas/indexes/base.py", line 1945, in get_loc
    return self._engine.get_loc(key)
  File "pandas/index.pyx", line 137, in pandas.index.IndexEngine.get_loc (pandas/index.c:4154)
  File "pandas/index.pyx", line 159, in pandas.index.IndexEngine.get_loc (pandas/index.c:4018)
  File "pandas/hashtable.pyx", line 675, in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:12368)
  File "pandas/hashtable.pyx", line 683, in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:12322)
KeyError: 'm1'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/mbrynski/.local/lib/python3.4/site-packages/pandas/core/internals.py", line 3415, in set
    loc = self.items.get_loc(item)
  File "/home/mbrynski/.local/lib/python3.4/site-packages/pandas/indexes/base.py", line 1947, in get_loc
    return self._engine.get_loc(self._maybe_cast_indexer(key))
  File "pandas/index.pyx", line 137, in pandas.index.IndexEngine.get_loc (pandas/index.c:4154)
  File "pandas/index.pyx", line 159, in pandas.index.IndexEngine.get_loc (pandas/index.c:4018)
  File "pandas/hashtable.pyx", line 675, in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:12368)
  File "pandas/hashtable.pyx", line 683, in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:12322)
KeyError: 'm1'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/mbrynski/.local/lib/python3.4/site-packages/caravel/views.py", line 827, in explore
    payload = obj.get_json()
  File "/home/mbrynski/.local/lib/python3.4/site-packages/caravel/viz.py", line 294, in get_json
    'data': self.get_data(),
  File "/home/mbrynski/.local/lib/python3.4/site-packages/caravel/viz.py", line 1481, in get_data
    ndf['m1'] = df[metric]
  File "/home/mbrynski/.local/lib/python3.4/site-packages/pandas/core/frame.py", line 2357, in __setitem__
    self._set_item(key, value)
  File "/home/mbrynski/.local/lib/python3.4/site-packages/pandas/core/frame.py", line 2424, in _set_item
    NDFrame._set_item(self, key, value)
  File "/home/mbrynski/.local/lib/python3.4/site-packages/pandas/core/generic.py", line 1464, in _set_item
    self._data.set(key, value)
  File "/home/mbrynski/.local/lib/python3.4/site-packages/pandas/core/internals.py", line 3418, in set
    self.insert(len(self.items), item, value)
  File "/home/mbrynski/.local/lib/python3.4/site-packages/pandas/core/internals.py", line 3519, in insert
    placement=slice(loc, loc + 1))
  File "/home/mbrynski/.local/lib/python3.4/site-packages/pandas/core/internals.py", line 2518, in make_block
    return klass(values, ndim=ndim, fastpath=fastpath, placement=placement)
  File "/home/mbrynski/.local/lib/python3.4/site-packages/pandas/core/internals.py", line 90, in __init__
    len(self.mgr_locs)))
ValueError: Wrong number of items passed 2, placement implies 1
[2016-09-19 12:05:37 +0000] [1197] [INFO] Handling signal: winch
@xrmx
Copy link
Contributor

xrmx commented Sep 19, 2016

Which version is this? If that's not master possibly it has already been fixed there.

@maver1ck
Copy link
Contributor Author

Official from pip (so I assume it's 0.10.0)

@xrmx
Copy link
Contributor

xrmx commented Sep 19, 2016

@maver1ck could you please try to reproduce in master please? If that's a production instance don't upgrade there though :)

@xrmx xrmx added the validation:required A committer should validate the issue label Sep 19, 2016
@maver1ck
Copy link
Contributor Author

maver1ck commented Sep 19, 2016

Yep.
Is there an instruction how to install master ?
pip install git+https://github.com/airbnb/caravel/ + js_build.sh ?
Something more ?

@xrmx
Copy link
Contributor

xrmx commented Sep 19, 2016

@maver1ck
Copy link
Contributor Author

Got this.
OK. The bug was repaired.
I think that by this commit.
3c92ba9

@xrmx
Copy link
Contributor

xrmx commented Sep 19, 2016

Cool, closing then.

@xrmx xrmx closed this as completed Sep 19, 2016
@maver1ck
Copy link
Contributor Author

Any ETA of next version of Caravel so ?

@xrmx
Copy link
Contributor

xrmx commented Sep 19, 2016

@maver1ck no ETA afaik

@maver1ck
Copy link
Contributor Author

maver1ck commented Sep 19, 2016

OK.
I'm trying to use master but it is full of bugs.
Should I start reporting them ?

@xrmx
Copy link
Contributor

xrmx commented Sep 19, 2016

@maver1ck if they are not already reported yes, also PR even more welcome :)

In the meantime they are merged this two should already fix a couple of annoyances: #1127 and #1130

@maver1ck
Copy link
Contributor Author

@xrmx
I'd like to contribute but unfortunatelly I'm rather backend developer and I don't have experience with JS and react.
Do you have some easy backend tasks ?

@xrmx
Copy link
Contributor

xrmx commented Sep 20, 2016

@maver1ck #1141 is probably easy to fix as some variable is used but not defined, maybe a typo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
validation:required A committer should validate the issue
Projects
None yet
Development

No branches or pull requests

2 participants