Closed nickeubank closed 5 months ago
Hi!!
I'm using the same versions except from Bambi (which is the current dev version) and I can't reproduce this problem. Can you share the full traceback? Are you able to report the version of other dependencies? (pandas, numpy)
The full traceback is above. Here's the environment (just bambi, pandas, and statsmodels + deps, basically). I'm in vscode notebook, if you think that might matter. Mac OSX 13.6.2
# packages in environment at /Users/nce8/opt/miniconda3/envs/bambi:
#
# Name Version Build Channel
accelerate 0.28.0 pyhd8ed1ab_0 conda-forge
appnope 0.1.4 pyhd8ed1ab_0 conda-forge
arviz 0.17.1 pyhd8ed1ab_0 conda-forge
asttokens 2.4.1 pyhd8ed1ab_0 conda-forge
atk-1.0 2.38.0 hcb7b3dd_1 conda-forge
bambi 0.13.0 pyhd8ed1ab_0 conda-forge
blas 2.121 openblas conda-forge
blas-devel 3.9.0 21_osxarm64_openblas conda-forge
brotli 1.1.0 hb547adb_1 conda-forge
brotli-bin 1.1.0 hb547adb_1 conda-forge
brotli-python 1.1.0 py311ha891d26_1 conda-forge
bzip2 1.0.8 h93a5062_5 conda-forge
c-ares 1.27.0 h93a5062_0 conda-forge
ca-certificates 2024.2.2 hf0a4a13_0 conda-forge
cached-property 1.5.2 hd8ed1ab_1 conda-forge
cached_property 1.5.2 pyha770c72_1 conda-forge
cachetools 5.3.3 pyhd8ed1ab_0 conda-forge
cairo 1.18.0 hd1e100b_0 conda-forge
cctools_osx-arm64 986 h62378fb_0 conda-forge
certifi 2024.2.2 pyhd8ed1ab_0 conda-forge
charset-normalizer 3.3.2 pyhd8ed1ab_0 conda-forge
clang 16.0.6 h30cc82d_6 conda-forge
clang-16 16.0.6 default_he012953_6 conda-forge
clang_impl_osx-arm64 16.0.6 hc421ffc_11 conda-forge
clang_osx-arm64 16.0.6 h54d7cd3_11 conda-forge
clangxx 16.0.6 default_h4cf2255_6 conda-forge
clangxx_impl_osx-arm64 16.0.6 hcd7bac0_11 conda-forge
clangxx_osx-arm64 16.0.6 h54d7cd3_11 conda-forge
cloudpickle 3.0.0 pyhd8ed1ab_0 conda-forge
colorama 0.4.6 pyhd8ed1ab_0 conda-forge
comm 0.2.2 pyhd8ed1ab_0 conda-forge
compiler-rt 16.0.6 h3808999_2 conda-forge
compiler-rt_osx-arm64 16.0.6 h3808999_2 conda-forge
cons 0.4.6 pyhd8ed1ab_0 conda-forge
contourpy 1.2.0 py311hd03642b_0 conda-forge
cycler 0.12.1 pyhd8ed1ab_0 conda-forge
debugpy 1.8.1 py311h92babd0_0 conda-forge
decorator 5.1.1 pyhd8ed1ab_0 conda-forge
etuples 0.3.9 pyhd8ed1ab_0 conda-forge
exceptiongroup 1.2.0 pyhd8ed1ab_2 conda-forge
executing 2.0.1 pyhd8ed1ab_0 conda-forge
expat 2.6.2 hebf3989_0 conda-forge
fastprogress 1.0.3 pyhd8ed1ab_0 conda-forge
filelock 3.13.3 pyhd8ed1ab_0 conda-forge
font-ttf-dejavu-sans-mono 2.37 hab24e00_0 conda-forge
font-ttf-inconsolata 3.000 h77eed37_0 conda-forge
font-ttf-source-code-pro 2.038 h77eed37_0 conda-forge
font-ttf-ubuntu 0.83 h77eed37_1 conda-forge
fontconfig 2.14.2 h82840c6_0 conda-forge
fonts-conda-ecosystem 1 0 conda-forge
fonts-conda-forge 1 0 conda-forge
fonttools 4.50.0 py311h05b510d_0 conda-forge
formulae 0.5.3 pyhd8ed1ab_0 conda-forge
freetype 2.12.1 hadb7bae_2 conda-forge
fribidi 1.0.10 h27ca646_0 conda-forge
fsspec 2024.3.1 pyhca7485f_0 conda-forge
gdk-pixbuf 2.42.10 hcea6d13_5 conda-forge
gettext 0.21.1 h0186832_0 conda-forge
giflib 5.2.1 h1a8c8d9_3 conda-forge
gmp 6.3.0 hebf3989_1 conda-forge
gmpy2 2.1.2 py311h2ba9262_1 conda-forge
graphite2 1.3.13 h9f76cd9_1001 conda-forge
graphviz 9.0.0 h3face73_1 conda-forge
gtk2 2.24.33 h7895bb2_4 conda-forge
gts 0.7.6 he42f4ea_4 conda-forge
h5netcdf 1.3.0 pyhd8ed1ab_0 conda-forge
h5py 3.10.0 nompi_py311hd00467f_101 conda-forge
harfbuzz 8.3.0 h8f0ba13_0 conda-forge
hdf5 1.14.3 nompi_h5bb55e9_100 conda-forge
huggingface_hub 0.22.0 pyhd8ed1ab_0 conda-forge
icu 73.2 hc8870d7_0 conda-forge
idna 3.6 pyhd8ed1ab_0 conda-forge
importlib-metadata 7.1.0 pyha770c72_0 conda-forge
importlib_metadata 7.1.0 hd8ed1ab_0 conda-forge
ipykernel 6.29.3 pyh3cd1d5f_0 conda-forge
ipython 8.22.2 pyh707e725_0 conda-forge
jedi 0.19.1 pyhd8ed1ab_0 conda-forge
jinja2 3.1.3 pyhd8ed1ab_0 conda-forge
jupyter_client 8.6.1 pyhd8ed1ab_0 conda-forge
jupyter_core 5.7.2 py311h267d04e_0 conda-forge
kiwisolver 1.4.5 py311he4fd1f5_1 conda-forge
krb5 1.21.2 h92f50d5_0 conda-forge
lcms2 2.16 ha0e7c42_0 conda-forge
ld64_osx-arm64 711 ha4bd21c_0 conda-forge
lerc 4.0.0 h9a09cb3_0 conda-forge
libabseil 20230802.1 cxx17_h13dd4ca_0 conda-forge
libaec 1.1.3 hebf3989_0 conda-forge
libblas 3.9.0 21_osxarm64_openblas conda-forge
libbrotlicommon 1.1.0 hb547adb_1 conda-forge
libbrotlidec 1.1.0 hb547adb_1 conda-forge
libbrotlienc 1.1.0 hb547adb_1 conda-forge
libcblas 3.9.0 21_osxarm64_openblas conda-forge
libclang-cpp16 16.0.6 default_he012953_6 conda-forge
libcurl 8.6.0 h2d989ff_0 conda-forge
libcxx 16.0.6 h4653b0c_0 conda-forge
libdeflate 1.20 h93a5062_0 conda-forge
libedit 3.1.20191231 hc8eb9b7_2 conda-forge
libev 4.33 h93a5062_2 conda-forge
libexpat 2.6.2 hebf3989_0 conda-forge
libffi 3.4.2 h3422bc3_5 conda-forge
libgd 2.3.3 hfdf3952_9 conda-forge
libgfortran 5.0.0 13_2_0_hd922786_3 conda-forge
libgfortran5 13.2.0 hf226fd6_3 conda-forge
libglib 2.80.0 hfc324ee_1 conda-forge
libiconv 1.17 h0d3ecfb_2 conda-forge
libjpeg-turbo 3.0.0 hb547adb_1 conda-forge
liblapack 3.9.0 21_osxarm64_openblas conda-forge
liblapacke 3.9.0 21_osxarm64_openblas conda-forge
libllvm16 16.0.6 haab561b_3 conda-forge
libnghttp2 1.58.0 ha4dd798_1 conda-forge
libopenblas 0.3.26 openmp_h6c19121_0 conda-forge
libpng 1.6.43 h091b4b1_0 conda-forge
libprotobuf 4.25.1 h810fc01_2 conda-forge
librsvg 2.56.3 h55a2576_1 conda-forge
libsodium 1.0.18 h27ca646_1 conda-forge
libsqlite 3.45.2 h091b4b1_0 conda-forge
libssh2 1.11.0 h7a5bd25_0 conda-forge
libtiff 4.6.0 h07db509_3 conda-forge
libtorch 2.1.2 cpu_generic_hda0de89_3 conda-forge
libuv 1.48.0 h93a5062_0 conda-forge
libwebp 1.3.2 hf30222e_1 conda-forge
libwebp-base 1.3.2 hb547adb_0 conda-forge
libxcb 1.15 hf346824_0 conda-forge
libxml2 2.12.6 h0d0cfa8_1 conda-forge
libzlib 1.2.13 h53f4e23_5 conda-forge
llvm-openmp 18.1.2 hcd81f8e_0 conda-forge
llvm-tools 16.0.6 haab561b_3 conda-forge
logical-unification 0.4.6 pyhd8ed1ab_0 conda-forge
markupsafe 2.1.5 py311h05b510d_0 conda-forge
matplotlib-base 3.8.3 py311hb58f1d1_0 conda-forge
matplotlib-inline 0.1.6 pyhd8ed1ab_0 conda-forge
minikanren 1.0.3 pyhd8ed1ab_0 conda-forge
mpc 1.3.1 h91ba8db_0 conda-forge
mpfr 4.2.1 h9546428_0 conda-forge
mpmath 1.3.0 pyhd8ed1ab_0 conda-forge
multipledispatch 0.6.0 py_0 conda-forge
munkres 1.1.4 pyh9f0ad1d_0 conda-forge
ncurses 6.4.20240210 h078ce10_0 conda-forge
nest-asyncio 1.6.0 pyhd8ed1ab_0 conda-forge
networkx 3.2.1 pyhd8ed1ab_0 conda-forge
nomkl 1.0 h5ca1d4c_0 conda-forge
numpy 1.26.4 py311h7125741_0 conda-forge
openblas 0.3.26 openmp_h55c453e_0 conda-forge
openjpeg 2.5.2 h9f1df11_0 conda-forge
openssl 3.2.1 h0d3ecfb_1 conda-forge
packaging 24.0 pyhd8ed1ab_0 conda-forge
pandas 2.2.1 py311hfbe21a1_0 conda-forge
pango 1.52.1 hb067d4f_0 conda-forge
parso 0.8.3 pyhd8ed1ab_0 conda-forge
patsy 0.5.6 pyhd8ed1ab_0 conda-forge
pcre2 10.43 h26f9a81_0 conda-forge
pexpect 4.9.0 pyhd8ed1ab_0 conda-forge
pickleshare 0.7.5 py_1003 conda-forge
pillow 10.2.0 py311hb9c5795_0 conda-forge
pip 24.0 pyhd8ed1ab_0 conda-forge
pixman 0.43.4 hebf3989_0 conda-forge
platformdirs 4.2.0 pyhd8ed1ab_0 conda-forge
prompt-toolkit 3.0.42 pyha770c72_0 conda-forge
psutil 5.9.8 py311h05b510d_0 conda-forge
pthread-stubs 0.4 h27ca646_1001 conda-forge
ptyprocess 0.7.0 pyhd3deb0d_0 conda-forge
pure_eval 0.2.2 pyhd8ed1ab_0 conda-forge
pygments 2.17.2 pyhd8ed1ab_0 conda-forge
pymc 5.11.0 hd8ed1ab_0 conda-forge
pymc-base 5.11.0 pyhd8ed1ab_0 conda-forge
pyparsing 3.1.2 pyhd8ed1ab_0 conda-forge
pysocks 1.7.1 pyha2e5f31_6 conda-forge
pytensor 2.18.6 py311hbc2cede_0 conda-forge
pytensor-base 2.18.6 py311hfbe21a1_0 conda-forge
python 3.11.8 hdf0ec26_0_cpython conda-forge
python-dateutil 2.9.0 pyhd8ed1ab_0 conda-forge
python-graphviz 0.20.3 pyh717bed2_0 conda-forge
python-tzdata 2024.1 pyhd8ed1ab_0 conda-forge
python_abi 3.11 4_cp311 conda-forge
pytorch 2.1.2 cpu_generic_py311h38827da_3 conda-forge
pytz 2024.1 pyhd8ed1ab_0 conda-forge
pyyaml 6.0.1 py311heffc1b2_1 conda-forge
pyzmq 25.1.2 py311h6727e71_0 conda-forge
readline 8.2 h92ec313_1 conda-forge
requests 2.31.0 pyhd8ed1ab_0 conda-forge
safetensors 0.4.2 py311h94f323b_0 conda-forge
scipy 1.12.0 py311h4f9446f_2 conda-forge
seaborn 0.13.2 hd8ed1ab_0 conda-forge
seaborn-base 0.13.2 pyhd8ed1ab_0 conda-forge
setuptools 69.2.0 pyhd8ed1ab_0 conda-forge
sigtool 0.1.3 h44b9a77_0 conda-forge
six 1.16.0 pyh6c4a22f_0 conda-forge
sleef 3.5.1 h156473d_2 conda-forge
stack_data 0.6.2 pyhd8ed1ab_0 conda-forge
statsmodels 0.14.1 py311h9ea6feb_0 conda-forge
sympy 1.12 pypyh9d50eac_103 conda-forge
tapi 1100.0.11 he4954df_0 conda-forge
tk 8.6.13 h5083fa2_1 conda-forge
toolz 0.12.1 pyhd8ed1ab_0 conda-forge
tornado 6.4 py311h05b510d_0 conda-forge
tqdm 4.66.2 pyhd8ed1ab_0 conda-forge
traitlets 5.14.2 pyhd8ed1ab_0 conda-forge
typing-extensions 4.10.0 hd8ed1ab_0 conda-forge
typing_extensions 4.10.0 pyha770c72_0 conda-forge
tzdata 2024a h0c530f3_0 conda-forge
urllib3 2.2.1 pyhd8ed1ab_0 conda-forge
wcwidth 0.2.13 pyhd8ed1ab_0 conda-forge
wheel 0.43.0 pyhd8ed1ab_0 conda-forge
xarray 2024.2.0 pyhd8ed1ab_0 conda-forge
xarray-einstats 0.7.0 pyhd8ed1ab_0 conda-forge
xorg-libxau 1.0.11 hb547adb_0 conda-forge
xorg-libxdmcp 1.1.3 h27ca646_0 conda-forge
xz 5.2.6 h57fd34a_0 conda-forge
yaml 0.2.5 h3422bc3_2 conda-forge
zeromq 4.3.5 hebf3989_1 conda-forge
zipp 3.17.0 pyhd8ed1ab_0 conda-forge
zlib 1.2.13 h53f4e23_5 conda-forge
zstd 1.5.5 h4f39d0f_0 conda-forge
Huh, don't see it when I install and run in JupyterLab, seems VS Code specific.
Do you know which version of VS Code you're using? I also use it and I never had this problem, but I had several issues with notebooks in VS Code so I wouldn't be surprised.
Hurrah! VS Code update fixed it. THanks @tomicapretto
Amazing! @nickeubank
When fitting a model with a categorical variable, I'm getting an error trying to run
plot_trace
. I don't have issues withplot_trace
when doing examples like the sleep study example on the bambi home page, but I do with data I'm trying to analyze. Here's a small MWE that's just a small sample of data I'm using:Gets me this error:
I'm using:
Python 3.11.8 Bambi 0.13.0 Arxiv 0.17.1