plotly / dash-bio

Open-source bioinformatics components for Dash
https://dash-gallery.plotly.host/Portal/?search=Bioinformatics
MIT License
529 stars 194 forks source link

js element TypeError: Cannot read properties of undefined (reading 'Config') #768

Open hozeren opened 6 months ago

hozeren commented 6 months ago

Error Cannot read properties of undefined (reading 'Config') (This error originated from the built-in JavaScript code that runs Dash apps. Click to see the full stack trace or open your browser's console.)

TypeError: Cannot read properties of undefined (reading 'Config')

at e.exports (http://127.0.0.1:8050/_dash-component-suites/dash_bio/async-alignment.v1_0_2m1647653451.js:55:398620)

at t.exports.695.../build/plotcss (http://127.0.0.1:8050/_dash-component-suites/dash_bio/async-alignment.v1_0_2m1647653451.js:55:396842)

at a (http://127.0.0.1:8050/_dash-component-suites/dash_bio/async-alignment.v1_0_2m1647653451.js:1:42674)

at http://127.0.0.1:8050/_dash-component-suites/dash_bio/async-alignment.v1_0_2m1647653451.js:1:42709

at t.exports.14.../src/core (http://127.0.0.1:8050/_dash-component-suites/dash_bio/async-alignment.v1_0_2m1647653451.js:1:48751)

at a (http://127.0.0.1:8050/_dash-component-suites/dash_bio/async-alignment.v1_0_2m1647653451.js:1:42674)

at http://127.0.0.1:8050/_dash-component-suites/dash_bio/async-alignment.v1_0_2m1647653451.js:1:42709

at t.exports.26../aggregate (http://127.0.0.1:8050/_dash-component-suites/dash_bio/async-alignment.v1_0_2m1647653451.js:1:50023)

at a (http://127.0.0.1:8050/_dash-component-suites/dash_bio/async-alignment.v1_0_2m1647653451.js:1:42674)

at t (http://127.0.0.1:8050/_dash-component-suites/dash_bio/async-alignment.v1_0_2m1647653451.js:1:42801)

To Reproduce It might be related to dash imports; import dash from dash import html from dash import dcc import dash_bootstrap_components as dbc import dash_daq as daq from dash import dash_table from dash.dash_table.Format import Format, Scheme, Sign, Symbol from dash.dependencies import Input, Output, State from dash.exceptions import PreventUpdate import dash_bio as dashbio

Expected behavior Behaviour should be like this; https://dash.plotly.com/dash-bio/alignmentchart

Surprisingly, with this same packages, this example works. However, when I implement this into my website, it does not work. Data was clearly read and fed into function as in example.

Screenshots image

Python version: [e.g., 3.7.2] Python 3.10.14

Python environment (all installed packages in your current environment): absl-py 1.4.0 aicsimageio 4.14.0 aiobotocore 2.5.4 aiohttp 3.8.4 aioitertools 0.11.0 aiosignal 1.2.0 AmberLite 22.0 AmberUtils 21.0 anndata 0.10.3 annotated-types 0.6.0 applicability-domain 0.1.0 array-api-compat 1.4 asciitree 0.3.3 asgiref 3.4.1 astor 0.8.1 asttokens 2.0.5 async-timeout 4.0.2 attrs 22.2.0 autograd 1.5 autograd-gamma 0.5.0 azure-common 1.1.28 azure-core 1.26.4 azure-identity 1.13.0 azure-keyvault-secrets 4.7.0 backcall 0.2.0 base58 2.1.1 bcrypt 4.1.2 beautifulsoup4 4.11.2 biopython 1.83 bleach 6.0.0 blinker 1.6.2 botocore 1.31.17 Brotli 1.0.9 cachelib 0.9.0 cachetools 4.2.2 certifi 2021.10.8 cffi 1.14.6 charset-normalizer 2.0.12 chemicals 1.1.2 click 8.1.3 click-plugins 1.1.1 cligj 0.7.2 cloudpickle 2.1.0 colorama 0.4.4 colorlover 0.3.0 colour 0.1.5 cplex 22.1.1.0 cryptography 41.0.7 cufflinks 0.17.3 cycler 0.11.0 dash 2.9.2 dash-bio 1.0.2 dash-bootstrap-components 1.4.0 dash-core-components 2.0.0 dash-daq 0.5.0 dash-extensions 0.1.13 dash-html-components 2.0.0 dash-loading-spinners 1.0.0 dash-table 5.0.0 dask 2023.10.1 dataframe-image 0.1.5 debugpy 1.6.0 decorator 5.1.1 defusedxml 0.7.1 dgl 1.1.3 dgllife 0.3.2 distributed 2023.10.1 Django 2.1.15 django-pyodbc 1.1.3 django-pyodbc-azure 2.1.0.0 docplex 2.23.222 dpcpp-cpp-rt 2024.0.3 EditorConfig 0.12.4 elementpath 4.1.5 entrypoints 0.4 et-xmlfile 1.1.0 excel2json 1.0.1 exceptiongroup 1.1.3 executing 0.8.3 fasteners 0.19 fastjsonschema 2.16.3 filelock 3.13.1 Fiona 1.8.22 Flask 2.0.2 Flask-Caching 2.0.2 Flask-Compress 1.10.1 fluids 1.0.22 fonttools 4.33.0 formulaic 0.6.1 fpdf 1.7.2 frozenlist 1.3.3 fsspec 2023.6.0 future 0.18.3 geopandas 0.12.2 GEOparse 2.0.3 gmpy2 2.1.2 google-auth 2.6.0 google-auth-oauthlib 0.5.2 graphviz 0.20.1 grpcio 1.48.2 h5py 3.10.0 hyperopt 0.2.7 idna 3.3 imagecodecs 2023.9.18 imageio 2.32.0 importlib-metadata 6.0.0 intel-cmplr-lib-rt 2024.0.3 intel-cmplr-lic-rt 2024.0.3 intel-opencl-rt 2024.0.3 intel-openmp 2024.0.3 interface-meta 1.3.0 ipykernel 6.13.0 ipython 8.2.0 ipywidgets 8.0.4 isodate 0.6.1 itsdangerous 2.0.1 jedi 0.18.1 Jinja2 3.1.2 jmespath 1.0.1 joblib 1.2.0 jsbeautifier 1.15.1 jsonschema 4.17.3 jsonschema-specifications 2023.12.1 jupyter-client 7.2.2 jupyter_core 5.2.0 jupyterlab-pygments 0.2.2 jupyterlab-widgets 3.0.5 kaleido 0.2.1 kiwisolver 1.4.2 lazy_loader 0.3 lazypredict 0.2.12 lifelines 0.27.7 lightgbm 3.3.5 llvmlite 0.40.0 locket 1.0.0 loky 3.1.0 lxml 4.9.3 Markdown 3.4.1 MarkupSafe 2.1.2 matplotlib 3.5.1 matplotlib-inline 0.1.3 mistune 2.0.5 mkl 2024.0.0 mkl-random 1.2.2 mkl-service 2.4.0 MMPBSA.py 16.0 mordred 1.2.0 more-itertools 9.1.0 mpmath 1.3.0 msal 1.26.0 msal-extensions 1.1.0 msgpack 1.0.7 multidict 6.0.4 munch 2.5.0 natsort 8.4.0 nbclient 0.7.2 nbconvert 7.2.9 nbformat 5.7.3 nest-asyncio 1.5.5 networkx 2.8 ngboost 0.4.1 numba 0.57.0 numcodecs 0.12.1 numpy 1.24.4 nvidia-cublas-cu12 12.1.3.1 nvidia-cuda-cupti-cu12 12.1.105 nvidia-cuda-nvrtc-cu12 12.1.105 nvidia-cuda-runtime-cu12 12.1.105 nvidia-cudnn-cu12 8.9.2.26 nvidia-cufft-cu12 11.0.2.54 nvidia-curand-cu12 10.3.2.106 nvidia-cusolver-cu12 11.4.5.107 nvidia-cusparse-cu12 12.1.0.106 nvidia-nccl-cu12 2.19.3 nvidia-nvjitlink-cu12 12.4.99 nvidia-nvtx-cu12 12.1.105 oauthlib 3.2.2 ome-types 0.4.2 ome-zarr 0.8.2 openpyxl 3.0.9 packaging 21.3 packmol-memgen 1.2.3rc0 pandas 1.4.2 pandocfilters 1.5.0 paramiko 2.12.0 ParmEd 3.4.1 parso 0.8.3 partd 1.4.1 patsy 0.5.3 pdb4amber 22.0 periodictable 1.6.1 pexpect 4.9.0 pickleshare 0.7.5 Pillow 9.1.0 pip 23.3.1 platformdirs 3.0.0 plotly 5.13.1 plotly-express 0.4.1 ply 3.11 pooch 1.7.0 portalocker 2.8.2 prompt-toolkit 3.0.29 protobuf 3.20.3 psutil 5.9.0 ptyprocess 0.7.0 PubChemPy 1.0.4 PuLP 2.7.0 pure-eval 0.2.2 py4j 0.10.9.7 pyarrow 14.0.0 pyasn1 0.4.8 pyasn1-modules 0.2.8 pycparser 2.20 pydantic 2.4.2 pydantic_core 2.10.1 Pygments 2.11.2 PyJWT 2.4.0 pyMSMT 22.0 PyNaCl 1.5.0 pyodbc 4.0.31 Pyomo 6.4.0 pyOpenSSL 23.2.0 pyparsing 3.0.8 pyproj 3.4.1 pyrsistent 0.19.3 python-dateutil 2.8.2 pytraj 2.0.6 pytz 2021.1 PyYAML 6.0.1 pyzmq 22.3.0 rdkit 2022.9.4 rdkit-pypi 2022.3.1.1 referencing 0.33.0 requests 2.27.1 requests-oauthlib 1.3.0 resource-backed-dask-array 0.1.0 rpds-py 0.18.0 rsa 4.7.2 rsconnect_python 1.22.0 s3fs 2023.6.0 sander 22.0 scikit-image 0.22.0 scikit-learn 1.2.1 scip 0.1.12 scipy 1.10.1 scopy 1.2.5 seaborn 0.12.2 semver 2.13.0 setuptools 68.2.2 shap 0.41.0 shapely 2.0.0 six 1.16.0 sklearn 0.0 slicer 0.0.7 sortedcontainers 2.4.0 soupsieve 2.4 sqlparse 0.4.1 stack-data 0.2.0 statsmodels 0.13.5 sympy 1.12 tbb 2021.11.0 tblib 3.0.0 tenacity 8.2.2 tensorboard 2.12.1 tensorboard-data-server 0.7.0 tensorboard-plugin-wit 1.8.1 threadpoolctl 2.2.0 tifffile 2023.2.28 tinycss2 1.2.1 toolz 0.12.0 torch 2.2.0 torchvision 0.17.0 tornado 6.1 tqdm 4.65.0 traitlets 5.9.0 triton 2.2.0 typing_extensions 4.8.0 urllib3 1.26.9 wcwidth 0.2.5 webencodings 0.5.1 websocket-client 1.6.0 Werkzeug 2.0.2 wheel 0.41.2 widgetsnbextension 4.0.5 wincertstore 0.2 wrapt 1.15.0 xarray 2023.10.1 xgboost 1.7.5 xlrd 2.0.1 XlsxWriter 3.0.3 xmlschema 2.5.0 xsdata 23.8 yarl 1.8.2 zarr 2.15.0 zict 3.0.0 zipp 3.15.0