bodo-inc / bodo-examples Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Hello, thanks for providing this great module.
I installed bodo by pip3 successfully.
However, when I run the @bodo.jit
, it occur error that it has no attribute jit.
"AttributeError: partially initialized module 'bodo' has no attribute 'jit' (most likely due to a circular import)
How to fix this environment issue? Thank you
The above issue is fixed.
I would like to ask whether bodo support csv files? Does it only support parquet?
Thank you very much.
In pypi (https://pypi.org/project/bodo/) bodo's latest version is 2022.7.4. This only allows me to use python 3.10.
In the quick start guide (https://docs.bodo.ai/2024.4/installation_and_setup/install/) I noticed that somehow it is possible to use python version 3.12 with bodo library:
With that said, all of these commands run just fine:
conda create -n Bodo python=3.12 -c conda-forge
conda activate Bodo
but this command fails to solve the environment:
conda install bodo -c bodo.ai -c conda-forge
Is this an error or expected behavior? The guide leads me to think that we are able to install bodo's latest version on windows, hence:
However, at anaconda package repo (https://anaconda.org/bodo.ai/bodo)
There are no bodo installers for windows.
Is it possible to install bodo 2024.8 on windows? do i have to use wsl?
Hi, I'm having issues installing and using Bodo in JupyterLab 3.X.
I've tried installing bodo via conda but that doesn't work.
I've tried the sample here: https://github.com/Bodo-inc/Bodo-examples/blob/master/docker/BodoNotebook.Dockerfile but still unable to resolve the conda bodo package.
[+] Building 15.8s (5/5) FINISHED
=> [internal] load build definition from dockerfile 0.0s
=> => transferring dockerfile: 207B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/jupyter/minimal-notebook:latest 1.1s
=> CACHED [1/2] FROM docker.io/jupyter/minimal-notebook:latest@sha256:cfeab9b91dfce03d9be1683f9d4728860c30757c593f9b9277da4ce7d1a4e7f3 0.0s
=> ERROR [2/2] RUN conda install -y bodo ipyparallel -c bodo.ai -c conda-forge 14.7s
------
> [2/2] RUN conda install -y bodo ipyparallel -c bodo.ai -c conda-forge:
#5 0.684 Collecting package metadata (current_repodata.json): ...working... done
#5 5.036 Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
#5 5.037 Collecting package metadata (repodata.json): ...working... done
#5 13.57 Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
#5 13.58
#5 13.58 PackagesNotFoundError: The following packages are not available from current channels:
#5 13.58
#5 13.58 - bodo
#5 13.58
#5 13.58 Current channels:
#5 13.58
#5 13.58 - https://conda.anaconda.org/bodo.ai/linux-aarch64
#5 13.58 - https://conda.anaconda.org/bodo.ai/noarch
#5 13.58 - https://conda.anaconda.org/conda-forge/linux-aarch64
#5 13.58 - https://conda.anaconda.org/conda-forge/noarch
#5 13.58
#5 13.58 To search for alternate channels that may provide the conda package you're
#5 13.58 looking for, navigate to
#5 13.58
#5 13.58 https://anaconda.org
#5 13.58
#5 13.58 and use the search bar at the top of the page.
#5 13.58
#5 13.58
------
I then proceeded to install ipyparallel and bodo via pip and have tried setting up the jupyterlab as per instructions: https://docs.bodo.ai/latest/source/installation_and_setup/ipyparallel.html#ipyparallelsetup
However, after running the sample code there are import issues with the bodo package (see last notebook cell output)
# input
import ipyparallel as ipp
import psutil; n = min(psutil.cpu_count(logical=False), 8)
rc = ipp.Cluster(engines='mpi', n=n).start_and_connect_sync(activate=True)
# result
Using existing profile dir: '/opt/app-root/src/.ipython/profile_default'
Starting 8 engines with <class 'ipyparallel.cluster.launcher.MPIEngineSetLauncher'>
100%
8/8 [00:12<00:00, 12.02s/engine]
# Input
%%px
from mpi4py import MPI
comm = MPI.COMM_WORLD
print(f"Hello World from rank {comm.Get_rank()}. total ranks={comm.Get_size()}")
# result
[stdout:0] Hello World from rank 0. total ranks=8
[stdout:1] Hello World from rank 1. total ranks=8
[stdout:7] Hello World from rank 7. total ranks=8
[stdout:4] Hello World from rank 4. total ranks=8
[stdout:6] Hello World from rank 6. total ranks=8
[stdout:2] Hello World from rank 2. total ranks=8
[stdout:5] Hello World from rank 5. total ranks=8
[stdout:3] Hello World from rank 3. total ranks=8
# input
import bodo
โ
# result
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-6-7b53d0178f92> in <module>
----> 1 import bodo
/opt/conda/lib/python3.8/site-packages/bodo/__init__.py in <module>
20 from numba.core.types import List
21 import bodo.libs
---> 22 import bodo.libs.distributed_api
23 import bodo.libs.timsort
24 import bodo.io
/opt/conda/lib/python3.8/site-packages/bodo/libs/distributed_api.py in <module>
20 from numba.parfors.array_analysis import ArrayAnalysis
21 import bodo
---> 22 from bodo.hiframes.datetime_date_ext import datetime_date_array_type
23 from bodo.hiframes.datetime_timedelta_ext import datetime_timedelta_array_type
24 from bodo.hiframes.pd_categorical_ext import CategoricalArrayType
/opt/conda/lib/python3.8/site-packages/bodo/hiframes/datetime_date_ext.py in <module>
17 import bodo
18 from bodo.hiframes.datetime_datetime_ext import DatetimeDatetimeType
---> 19 from bodo.hiframes.datetime_timedelta_ext import datetime_timedelta_type
20 from bodo.libs import hdatetime_ext
21 from bodo.utils.indexing import array_getitem_bool_index, array_getitem_int_index, array_getitem_slice_index, array_setitem_bool_index, array_setitem_int_index, array_setitem_slice_index
/opt/conda/lib/python3.8/site-packages/bodo/hiframes/datetime_timedelta_ext.py in <module>
15 import bodo
16 from bodo.hiframes.datetime_datetime_ext import datetime_datetime_type
---> 17 from bodo.libs import hdatetime_ext
18 from bodo.utils.indexing import get_new_null_mask_bool_index, get_new_null_mask_int_index, get_new_null_mask_slice_index, setitem_slice_index_null_bits
19 from bodo.utils.typing import BodoError, get_overload_const_str, is_iterable_type, is_list_like_index_type, is_overload_constant_str
ImportError: libmpi-badaf374.so.12.1.8: cannot open shared object file: No such file or directory
(2022-01-27 20:29:29) (/opt/conda/lib/python3.8/site-packages/bodo/libs)
-$ pip list | grep -i bodo
bodo 2021.10.1
(2022-01-27 20:30:37) (/opt/conda/lib/python3.8/site-packages/bodo/libs)
-$ pip list | grep -i ipyparallel
ipyparallel 8.1.0
(2022-01-27 20:30:44) (/opt/conda/lib/python3.8/site-packages/bodo/libs)
-$ pip list | grep -i jupyterlab
jupyterlab 3.2.8
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.