arviz-devs / arviz_dashboard

Bayesian Dashboard built on top of Panel
Apache License 2.0
5 stars 1 forks source link

pyproject #18

Closed ndmlny-qs closed 1 year ago

ndmlny-qs commented 1 year ago

This commit adds the following new files.

It removes the older style installation files below in favor of the pyproject.toml file.

The README.md file has been updated to reflect how to install a development copy of arviz_dashboard. We are also moving all files in the repo so that we have a src-layout repository for future directions with tests as well as the possibility of needing to create a monorepo for JavaScript dependencies.

Resolves #17

ndmlny-qs commented 1 year ago

great, I'll merge and work on the pre-commit directives before I move to the GH actions

yilinxia commented 1 year ago

I tested the package following the README and it works for me. HW, I encountered an error when using the Pymc (not sure if we should consider this)

CompileError: Compilation failed (return status=1):
/usr/bin/g++ -shared -g -Wno-c++11-narrowing -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -march=skylake-avx512 -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mno-sgx -mbmi2 -mno-pconfig -mno-wbnoinvd -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mrtm -mhle -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mavx512f -mno-avx512er -mavx512cd -mno-avx512pf -mno-prefetchwt1 -mclflushopt -mxsavec -mxsaves -mavx512dq -mavx512bw -mavx512vl -mno-avx512ifma -mno-avx512vbmi -mno-avx5124fmaps -mno-avx5124vnniw -mno-clwb -mno-mwaitx -mno-clzero -mno-pku -mno-rdpid -mno-gfni -mno-shstk -mno-avx512vbmi2 -mno-avx512vnni -mno-vaes -mno-vpclmulqdq -mno-avx512bitalg -mno-avx512vpopcntdq -mno-movdiri -mno-movdir64b -mno-waitpkg -mno-cldemote -mno-ptwrite --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=33792 -mtune=skylake-avx512 -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -fPIC -I/home/codespace/.local/lib/python3.10/site-packages/numpy/core/include -I/usr/local/python/3.10.8/include/python3.10 -I/usr/local/python/3.10.8/lib/python3.10/site-packages/pytensor/link/c/c_code -L/usr/local/python/3.10.8/lib -fvisibility=hidden -o /home/codespace/.pytensor/compiledir_Linux-5.15--azure-x86_64-with-glibc2.31-x86_64-3.10.8-64/lazylinker_ext/lazylinker_ext.so /home/codespace/.pytensor/compiledir_Linux-5.15--azure-x86_64-with-glibc2.31-x86_64-3.10.8-64/lazylinker_ext/mod.cpp -lpython3.10
/usr/bin/ld: /usr/local/python/3.10.8/lib/libpython3.10.a(bytearrayobject.o): relocation R_X86_64_PC32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
ndmlny-qs commented 1 year ago

I've had that error crop up when NumPy was not isolated in an environment correctly. I think it is okay for us to ignore for now, but we can reference back to this issue if needed.