tkrabel / bamboolib

bamboolib - a GUI for pandas DataFrames
https://bamboolib.com
939 stars 94 forks source link

Permission denied #40

Closed priamai closed 2 years ago

priamai commented 2 years ago

Environment

(base) jovyan@66c9eae4b466:~$ jupyter labextension list
JupyterLab v2.3.2
Known labextensions:
   app dir: /opt/conda/share/jupyter/lab
        @jupyter-widgets/jupyterlab-manager v2.0.0  enabled  OK
        bamboolib v1.30.0  enabled  OK
        ipyslickgrid v0.0.3  enabled  OK
        jupyterlab-plotly v4.14.3  enabled  OK
        luxwidget v0.1.4  enabled  OK
        mitosheet v0.1.340  enabled  OK
        plotlywidget v4.14.3  enabled  OK`
(base) jovyan@66c9eae4b466:~$ pip list
Package                       Version
----------------------------- ---------
alembic                       1.7.6
altair                        4.2.0
analytics-python              1.2.9
ansiwrap                      0.8.4
anyio                         3.5.0
argon2-cffi                   21.3.0
argon2-cffi-bindings          21.2.0
asttokens                     2.0.5
async-generator               1.10
attrs                         21.4.0
autopep8                      1.6.0
Babel                         2.9.1
backcall                      0.2.0
backoff                       1.11.1
backports.functools-lru-cache 1.6.4
bamboolib                     1.30.0
beautifulsoup4                4.10.0
bleach                        4.1.0
blinker                       1.4
bokeh                         2.4.2
boto3                         1.21.24
botocore                      1.24.24
Bottleneck                    1.3.4
brotlipy                      0.7.0
cached-property               1.5.2
certifi                       2021.10.8
certipy                       0.1.3
cffi                          1.15.0
charset-normalizer            2.0.12
click                         8.0.4
cloudpickle                   2.0.0
colorama                      0.4.4
conda                         4.11.0
conda-package-handling        1.7.3
cryptography                  2.9.2
cycler                        0.11.0
Cython                        0.29.28
cytoolz                       0.11.2
dask                          2022.2.1
debugpy                       1.5.1
decorator                     5.1.1
defusedxml                    0.7.1
dill                          0.3.4
distributed                   2022.2.1
distro                        1.7.0
entrypoints                   0.4
executing                     0.8.3
flit_core                     3.7.1
fonttools                     4.30.0
fsspec                        2022.2.0
gmpy2                         2.1.2
greenlet                      1.1.2
h5py                          3.6.0
HeapDict                      1.0.1
humanize                      4.0.0
idna                          3.3
imagecodecs                   2022.2.22
imageio                       2.16.1
importlib-metadata            4.11.3
importlib-resources           5.4.0
ipdb                          0.13.9
ipykernel                     6.9.2
ipympl                        0.8.8
ipyslickgrid                  0.0.3
ipython                       7.32.0
ipython-genutils              0.2.0
ipywidgets                    7.6.5
iso3166                       2.0.2
jedi                          0.18.1
Jinja2                        3.0.3
jmespath                      1.0.0
joblib                        1.1.0
json5                         0.9.5
jsonschema                    4.4.0
jupyter                       1.0.0
jupyter-client                7.1.2
jupyter-console               6.4.3
jupyter-core                  4.9.2
jupyter-server                1.15.1
jupyter-telemetry             0.1.0
jupyterhub                    0.9.2
jupyterlab                    2.3.2
jupyterlab-pygments           0.1.2
jupyterlab-server             1.2.0
jupyterlab-widgets            1.0.2
jupytext                      1.13.7
kiwisolver                    1.3.2
libmambapy                    0.22.1
llvmlite                      0.38.0
locket                        0.2.0
lux-api                       0.5.1
lux-widget                    0.1.4
Mako                          1.2.0
mamba                         0.22.1
markdown-it-py                1.1.0
MarkupSafe                    2.1.0
matplotlib                    3.5.1
matplotlib-inline             0.1.3
mdit-py-plugins               0.3.0
mistune                       0.8.4
mitosheet                     0.1.340
monotonic                     1.6
mpmath                        1.2.1
msgpack                       1.0.3
munkres                       1.1.4
nbclassic                     0.3.6
nbclient                      0.5.13
nbconvert                     6.4.4
nbformat                      5.2.0
nest-asyncio                  1.5.4
networkx                      2.7.1
notebook                      6.4.9
notebook-shim                 0.1.0
numba                         0.55.1
numexpr                       2.8.0
numpy                         1.21.5
oauthlib                      3.2.0
packaging                     21.3
pamela                        1.0.0
pandas                        1.4.1
pandocfilters                 1.5.0
papermill                     2.3.4
parso                         0.8.3
partd                         1.2.0
patsy                         0.5.2
pexpect                       4.8.0
pickleshare                   0.7.5
Pillow                        9.0.1
pip                           22.0.4
ploomber                      0.16
ploomber-scaffold             0.3.1
plotly                        4.14.3
posthog                       1.4.5
ppscore                       1.2.0
prometheus-client             0.13.1
prompt-toolkit                3.0.27
protobuf                      3.19.4
psutil                        5.9.0
psycopg2                      2.9.3
ptyprocess                    0.7.0
pure-eval                     0.2.2
pycodestyle                   2.8.0
pycosat                       0.6.3
pycparser                     2.21
pycurl                        7.45.1
pydantic                      1.9.0
pyflakes                      2.4.0
Pygments                      2.11.2
pygraphviz                    1.9
PyJWT                         2.3.0
pyOpenSSL                     22.0.0
pyparsing                     3.0.7
pyrsistent                    0.18.1
PySocks                       1.7.1
python-dateutil               2.8.2
python-json-logger            2.0.1
python-oauth2                 1.1.1
pytz                          2021.3
PyWavelets                    1.3.0
PyYAML                        6.0
pyzmq                         22.3.0
qtconsole                     5.2.2
QtPy                          2.0.1
requests                      2.27.1
retrying                      1.3.3
ruamel.yaml                   0.17.21
ruamel.yaml.clib              0.2.6
ruamel-yaml-conda             0.15.80
s3transfer                    0.5.2
scikit-image                  0.19.2
scikit-learn                  0.24.2
scipy                         1.8.0
seaborn                       0.10.1
Send2Trash                    1.8.0
setuptools                    59.8.0
sh                            1.14.2
six                           1.16.0
sniffio                       1.2.0
sortedcontainers              2.4.0
soupsieve                     2.3.1
SQLAlchemy                    1.4.32
sqlparse                      0.4.2
stack-data                    0.2.0
statsmodels                   0.13.2
sympy                         1.10
tables                        3.7.0
tabulate                      0.8.9
tblib                         1.7.0
tenacity                      8.0.1
terminado                     0.13.3
testpath                      0.6.0
textwrap3                     0.9.2
threadpoolctl                 3.1.0
tifffile                      2022.2.9
toml                          0.10.2
toolz                         0.11.2
tornado                       6.1
tqdm                          4.63.0
traitlets                     5.1.1
typing_extensions             4.1.1
unicodedata2                  14.0.0
urllib3                       1.26.8
wcwidth                       0.2.5
webencodings                  0.5.1
websocket-client              1.3.1
wheel                         0.37.1
widgetsnbextension            3.5.2
xlrd                          2.0.1
zict                          2.1.0
zipp                          3.7.0

Description of Issue

PermissionError: [Errno 13] Permission denied: '/home/jovyan/.bamboolib/config.toml'

Reproduction Steps

Run example code:

import bamboolib as bam
import pandas as pd
df = pd.read_csv(bam.titanic_csv)
df

What steps have you taken to resolve this already?

None

Anything else?

None

priamai commented 2 years ago

I am just wondering if there is a way to change the path of that config file to say local folder could solve the problem?

FlorianWetschoreck commented 2 years ago

Thanks for reaching out. Please note that bamboolib has been acquired by Databricks and we only provide support for bamboolib within Databricks.

Having said that, the error "PermissionError: [Errno 13] Permission denied: '/home/jovyan/.bamboolib/config.toml'" refers to the config within the Docker container because home/joyvan is the default user folder for the Docker config that you might have used. It should work if you fix your permissions or fix your docker setup.

priamai commented 2 years ago

You are right it's because I installed Bamboolib with root so the permissions are not right:

drwxr-xr-x 1 root   root  4096 Mar 14 18:57 ..
drwxr-sr-x 2 root   users 4096 Mar 23 12:00 .bamboolib
-rw-rw-r-- 1 jovyan users  220 Feb 25  2020 .bash_logout
-rw-rw-r-- 1 jovyan users 3823 Mar 14 18:57 .bashrc
drwsrwsr-x 1 jovyan users 4096 Mar 23 11:55 .cache
drwsrwsr-x 1 jovyan users 4096 Mar 14 18:58 .conda
drwsrwsr-x 3 jovyan users 4096 Mar 14 19:52 .config
drwxr-sr-x 5 jovyan users 4096 Mar 23 12:11 .ipython
drwsrws--- 1 jovyan users 4096 Mar 23 12:11 .jupyter
drwxr-sr-x 3 jovyan users 4096 Mar 23 12:04 .local
drwxr-sr-x 3 jovyan users 4096 Mar 23 12:20 .mito
drwsrwsr-x 1 jovyan users 4096 Mar 23 11:55 .npm
-rw-rw-r-- 1 jovyan users  807 Feb 25  2020 .profile
drwsrwsr-x 2 jovyan users 4096 Mar 22 11:32 .ssh
-rw-rw-r-- 1 jovyan users  165 Mar 14 18:57 .wget-hsts
drwsrwsr-x 9 jovyan users 4096 Mar  6 18:00 work

Oh that is a shame, for support in Databricks I am assuming only the paid version?

FlorianWetschoreck commented 2 years ago

Happy to hear that it worked!

I do not know yet in which versions bamboolib will be available in Databricks but in general Databricks has been very generous e.g. with its free community version