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

[BUG] pyarrow error in Gallery #305

Open
krandiash opened this issue Mar 13, 2023 · 0 comments
Open

[BUG] pyarrow error in Gallery #305

krandiash opened this issue Mar 13, 2023 · 0 comments
Assignees

Comments

@krandiash
Copy link
Contributor

import meerkat as mk
df = mk.get('cuad')
df['train'].gui.gallery()

When I double click a card in the gallery to pop it open, I get the following traceback:

Arguments: ()
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/Users/krandiash/opt/anaconda3/envs/main/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 407, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/Users/krandiash/opt/anaconda3/envs/main/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
    return await self.app(scope, receive, send)
  File "/Users/krandiash/opt/anaconda3/envs/main/lib/python3.9/site-packages/fastapi/applications.py", line 273, in __call__
    await super().__call__(scope, receive, send)
  File "/Users/krandiash/opt/anaconda3/envs/main/lib/python3.9/site-packages/starlette/applications.py", line 120, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/Users/krandiash/opt/anaconda3/envs/main/lib/python3.9/site-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/Users/krandiash/opt/anaconda3/envs/main/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/Users/krandiash/opt/anaconda3/envs/main/lib/python3.9/site-packages/starlette/middleware/cors.py", line 92, in __call__
    await self.simple_response(scope, receive, send, request_headers=headers)
  File "/Users/krandiash/opt/anaconda3/envs/main/lib/python3.9/site-packages/starlette/middleware/cors.py", line 147, in simple_response
    await self.app(scope, receive, send)
  File "/Users/krandiash/opt/anaconda3/envs/main/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
    raise exc
  File "/Users/krandiash/opt/anaconda3/envs/main/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "/Users/krandiash/opt/anaconda3/envs/main/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
    raise e
  File "/Users/krandiash/opt/anaconda3/envs/main/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/Users/krandiash/opt/anaconda3/envs/main/lib/python3.9/site-packages/starlette/routing.py", line 716, in __call__
    await route.handle(scope, receive, send)
  File "/Users/krandiash/opt/anaconda3/envs/main/lib/python3.9/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/Users/krandiash/opt/anaconda3/envs/main/lib/python3.9/site-packages/starlette/routing.py", line 66, in app
    response = await func(request)
  File "/Users/krandiash/opt/anaconda3/envs/main/lib/python3.9/site-packages/fastapi/routing.py", line 237, in app
    raw_response = await run_endpoint_function(
  File "/Users/krandiash/opt/anaconda3/envs/main/lib/python3.9/site-packages/fastapi/routing.py", line 165, in run_endpoint_function
    return await run_in_threadpool(dependant.call, **values)
  File "/Users/krandiash/opt/anaconda3/envs/main/lib/python3.9/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
    return await anyio.to_thread.run_sync(func, *args)
  File "/Users/krandiash/opt/anaconda3/envs/main/lib/python3.9/site-packages/anyio/to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "/Users/krandiash/opt/anaconda3/envs/main/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "/Users/krandiash/opt/anaconda3/envs/main/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "/Users/krandiash/Desktop/workspace/projects/meerkat/meerkat/interactive/endpoint.py", line 677, in wrapper
    raise e
  File "/Users/krandiash/Desktop/workspace/projects/meerkat/meerkat/interactive/endpoint.py", line 651, in wrapper
    result = fn(*_args, **_kwargs)
  File "/Users/krandiash/Desktop/workspace/projects/meerkat/meerkat/interactive/api/routers/dataframe.py", line 123, in rows
    df = df[posidxs]
  File "/Users/krandiash/Desktop/workspace/projects/meerkat/meerkat/interactive/graph/reactivity.py", line 204, in wrapper
    result = fn(*unpacked_args, **unpacked_kwargs)
  File "/Users/krandiash/Desktop/workspace/projects/meerkat/meerkat/dataframe.py", line 536, in __getitem__
    return self._get(posidx, materialize=False)
  File "/Users/krandiash/Desktop/workspace/projects/meerkat/meerkat/interactive/graph/marking.py", line 74, in decorate_context
    return reactive(func, nested_return=False)(*args, **kwargs)
  File "/Users/krandiash/Desktop/workspace/projects/meerkat/meerkat/interactive/graph/reactivity.py", line 204, in wrapper
    result = fn(*unpacked_args, **unpacked_kwargs)
  File "/Users/krandiash/Desktop/workspace/projects/meerkat/meerkat/interactive/graph/reactivity.py", line 137, in _fn_wrapper
    return _fn(*args, **kwargs)
  File "/Users/krandiash/Desktop/workspace/projects/meerkat/meerkat/dataframe.py", line 530, in _get
    data=self.data.apply("_get", index=posidx, materialize=materialize)
  File "/Users/krandiash/Desktop/workspace/projects/meerkat/meerkat/block/manager.py", line 98, in apply
    result = block_ref.apply(method_name=method_name, *args, **kwargs)
  File "/Users/krandiash/Desktop/workspace/projects/meerkat/meerkat/block/ref.py", line 44, in apply
    return getattr(self.block, method_name)(*args, **kwargs, block_ref=self)
  File "/Users/krandiash/Desktop/workspace/projects/meerkat/meerkat/block/arrow_block.py", line 136, in _get
    data = pa.concat_tables(self.data.slice(i, 1) for i in index)
  File "pyarrow/table.pxi", line 5219, in pyarrow.lib.concat_tables
TypeError: Cannot convert ConcatenationTable to pyarrow.lib.Table
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