Closed grant-westfall closed 1 year ago
Hi @grant-westfall,
Thank you for reporting the issue.
Please try to use the following code:
dlr_selection = mr.Select(choices=list(df['DlrNm'].unique()), label="Dealer choice")
If you still have a problem:
pip freeze
to show all packages that you have installed.Here's a screenshot of my code. pip freeze returned the following:
absl-py==0.11.0, aiobotocore==1.3.2, aiohttp==3.7.4.post0, aioitertools==0.7.1, alembic==1.6.5, amqp==5.1.1, anyio==3.2.1, appdirs==1.4.4, argon2-cffi==20.1.0, asgiref==3.7.2, asn1crypto==1.4.0, async-generator==1.10, async-timeout==3.0.1, attrs==21.2.0, autobahn==23.1.2, Automat==22.10.0, aws-cfn-bootstrap==2.0, azure-common==1.1.27, azure-core==1.15.0, azure-storage-blob==12.8.1, Babel==2.9.1, backcall==0.2.0, bcrypt==3.2.0, beautifulsoup4==4.12.2, billiard==3.6.4.0, bleach==3.3.0, boto3==1.26.83, botocore==1.29.152, Bottleneck==1.3.2, cached-property==1.5.2, celery==5.2.7, certifi==2021.5.30, certipy==0.1.3, cffi==1.14.5, channels==4.0.0, chardet==4.0.0, click==8.1.3, click-didyoumean==0.3.0, click-plugins==1.1.1, click-repl==0.2.0, cloudpickle==1.6.0, colorama==0.4.4, constantly==15.1.0, croniter==1.3.15, cryptography==41.0.1, cx-Oracle==8.2.1, cycler==0.10.0, daphne==4.0.0, debugpy==1.3.0, decorator==4.4.2, defusedxml==0.7.1, dj-rest-auth==3.0.0, Django==3.2.5, django-allauth==0.52.0, django-cors-headers==3.10.1, django-drf-filepond==0.4.1, django-filter==21.1, django-storages==1.13.2, djangorestframework==3.12.4, docutils==0.14, entrypoints==0.3, et-xmlfile==1.1.0, execnb==0.1.5, fastcore==1.5.29, fastjsonschema==2.17.1, fsspec==2021.6.1, future==0.18.2, gevent==22.10.2, gitdb==4.0.7, GitPython==3.1.18, greenlet==2.0.2, h2o==3.32.1.3, htmlmin==0.1.12, hyperlink==21.0.0, idna==2.10, ImageHash==4.2.0, importlib-metadata==4.5.0, importlib-resources==5.12.0, incremental==22.10.0, ipykernel==6.16.2, ipython==7.34.0
Thank you @grant-westfall. I think you paste only half of the pip freeze output. Could you please paste full output?
I see that you have Django==3.2.5
, in the newest version of mercury
the Django
should be above version 4.0
. Please try to update mercury
:
pip install -U mercury
Thanks for the quick responses! Updating mercury didn't update Django above version 4.0, here's the relevant output:
pip install -U mercury
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: mercury in /export/home/grantw_adm/.local/lib/python3.7/site-packages (2.2.7)
Collecting mercury
Using cached mercury-2.2.9.tar.gz (2.6 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
INFO: pip is looking at multiple versions of mercury to determine which version is compatible with other requirements. This could take a while.
Using cached mercury-2.2.8.tar.gz (2.6 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: django==3.2.5 in /export/home/grantw_adm/.local/lib/python3.7/site-packages (from mercury) (3.2.5)
And here's the full pip freeze output:
absl-py==0.11.0
aiobotocore==1.3.2
aiohttp==3.7.4.post0
aioitertools==0.7.1
alembic==1.6.5
amqp==5.1.1
anyio==3.2.1
appdirs==1.4.4
argon2-cffi==20.1.0
asgiref==3.7.2
asn1crypto==1.4.0
async-generator==1.10
async-timeout==3.0.1
attrs==21.2.0
autobahn==23.1.2
Automat==22.10.0
aws-cfn-bootstrap==2.0
azure-common==1.1.27
azure-core==1.15.0
azure-storage-blob==12.8.1
Babel==2.9.1
backcall==0.2.0
bcrypt==3.2.0
beautifulsoup4==4.12.2
billiard==3.6.4.0
bleach==3.3.0
boto3==1.26.83
botocore==1.29.152
Bottleneck==1.3.2
cached-property==1.5.2
celery==5.2.7
certifi==2021.5.30
certipy==0.1.3
cffi==1.14.5
channels==4.0.0
chardet==4.0.0
click==8.1.3
click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.2.0
cloudpickle==1.6.0
colorama==0.4.4
constantly==15.1.0
croniter==1.3.15
cryptography==41.0.1
cx-Oracle==8.2.1
cycler==0.10.0
daphne==4.0.0
debugpy==1.3.0
decorator==4.4.2
defusedxml==0.7.1
dj-rest-auth==3.0.0
Django==3.2.5
django-allauth==0.52.0
django-cors-headers==3.10.1
django-drf-filepond==0.4.1
django-filter==21.1
django-storages==1.13.2
djangorestframework==3.12.4
docutils==0.14
entrypoints==0.3
et-xmlfile==1.1.0
execnb==0.1.5
fastcore==1.5.29
fastjsonschema==2.17.1
fsspec==2021.6.1
future==0.18.2
gevent==22.10.2
gitdb==4.0.7
GitPython==3.1.18
greenlet==2.0.2
h2o==3.32.1.3
htmlmin==0.1.12
hyperlink==21.0.0
idna==2.10
ImageHash==4.2.0
importlib-metadata==4.5.0
importlib-resources==5.12.0
incremental==22.10.0
ipykernel==6.16.2
ipython==7.34.0
ipython-genutils==0.2.0
ipywidgets==8.0.3
isodate==0.6.0
jedi==0.18.0
Jinja2==3.0.1
jmespath==0.10.0
joblib==1.0.1
json5==0.9.6
jsonschema==3.2.0
jupyter==1.0.0
jupyter-client==6.1.12
jupyter-console==6.4.0
jupyter-core==4.7.1
jupyter-server==1.9.0
jupyter-server-mathjax==0.2.3
jupyter-telemetry==0.1.0
jupyterhub==1.4.1
jupyterlab==3.0.16
jupyterlab-git==0.30.1
jupyterlab-pygments==0.1.2
jupyterlab-server==2.6.0
jupyterlab-widgets==3.0.7
jupyterthemes==0.20.0
kiwisolver==1.3.1
kmodes==0.12.2
kombu==5.2.4
lesscpy==0.15.1
lightgbm==3.2.1
llvmlite==0.35.0
lockfile==0.11.0
Mako==1.1.4
Markdown==3.3.6
MarkupSafe==2.0.1
matplotlib==3.4.2
matplotlib-inline==0.1.2
mercury==2.2.7
missingno==0.4.2
mistune==2.0.5
modelmonitor @ file:///root/python_package/modelmonitor-0.1.0.tar.gz
msrest==0.6.21
multidict==5.1.0
multimethod==1.4
nbclassic==0.3.1
nbclient==0.5.3
nbconvert==7.5.0
nbdime==3.1.0
nbformat==5.8.0
nest-asyncio==1.5.1
networkx==2.5.1
nltk==3.6.2
notebook==6.4.0
numba==0.52.0
numpy==1.21.0
oauthlib==3.1.1
openpyxl==3.1.2
oscrypto==1.2.1
packaging==20.9
pamela==1.0.0
pandas==1.2.5
pandas-profiling==3.0.0
pandocfilters==1.4.3
paramiko==2.7.2
parso==0.8.2
patsy==0.5.1
pexpect==4.8.0
phik==0.11.2
pickleshare==0.7.5
Pillow==8.2.0
ply==3.11
prometheus-client==0.11.0
prompt-toolkit==3.0.19
psutil==5.9.5
ptyprocess==0.7.0
pyasn1==0.5.0
pyasn1-modules==0.3.0
pycparser==2.20
pycryptodomex==3.10.1
pydantic==1.8.2
pyee==8.2.2
Pygments==2.9.0
PyJWT==2.7.0
PyNaCl==1.4.0
pyodbc==4.0.30
pyOpenSSL==23.2.0
pyparsing==2.4.7
pyppeteer==1.0.2
pyrsistent==0.17.3
pystache==0.5.4
python-daemon==2.2.3
python-dateutil==2.8.1
python-dotenv==0.21.1
python-editor==1.0.4
python-json-logger==2.0.1
python3-openid==3.2.0
pytz==2023.3
PyWavelets==1.1.1
PyYAML==6.0
pyzmq==22.1.0
qtconsole==5.1.0
QtPy==1.9.0
regex==2021.4.4
requests==2.25.1
requests-oauthlib==1.3.0
requests-unixsocket==0.2.0
ruamel.yaml==0.17.10
ruamel.yaml.clib==0.2.2
s3fs==2021.6.1
s3transfer==0.6.1
scikit-learn==0.24.2
scipy==1.7.0
seaborn==0.11.1
Send2Trash==1.7.1
service-identity==21.1.0
shap==0.38.1
shortuuid==1.0.11
simplejson==3.2.0
six==1.16.0
sklearn==0.0
slicer==0.0.7
smmap==4.0.0
sniffio==1.2.0
snowflake==0.0.3
snowflake-connector-python==2.4.6
snowflake-sqlalchemy==1.4.4
sosreport==3.2
soupsieve==2.4.1
spyder-kernels==2.0.4
SQLAlchemy==1.4.27
sqlparse==0.4.4
statsmodels==0.12.2
sweetviz==2.1.4
tabulate==0.8.9
tangled-up-in-unicode==0.1.0
terminado==0.10.1
testpath==0.5.0
threadpoolctl==2.1.0
tinycss2==1.2.1
tornado==6.1
tqdm==4.61.1
traitlets==5.9.0
Twisted==22.10.0
txaio==23.1.1
typing_extensions==4.6.3
urllib3==1.26.5
vine==5.0.0
visions==0.7.1
wcwidth==0.2.5
webencodings==0.5.1
websocket-client==1.5.3
websockets==10.4
whitenoise==6.4.0
widgetsnbextension==4.0.7
wrapt==1.12.1
wurlitzer==2.1.0
xeus-python==0.12.5
xgboost==1.4.2
xlrd==2.0.1
XlsxWriter==1.4.3
yarl==1.6.3
zipp==3.4.1
zope.event==4.6
zope.interface==6.0
OK, I see the problem. You have Python 3.7. Please update Python version to at least 3.8 version and then please update mercury
. We support Python version 3.8 - 3.11.
Oh, that'll do it. Thanks for your help!
Please let me know if you make it works.
May I ask what are you building? What is your use case? and how have you found Mercury?
Will do! I'm working on a web app that'll allow our sales team members to easily view and understand some analysis of my team's modelling results. I came across Mercury from this article: https://towardsdatascience.com/create-a-web-app-from-your-jupyter-notebook-with-mercury-21239b7abb37.
Im closing the issue. If you still have a problem please reopen.
Hello! I'm new to Mercury, and I'm getting this error message when I run the following:
dlr_selection = mr.Select(choices=df['DlrNm'].to_list(), label="Dealer choice")
Error displaying widget: model not foundAny ideas about how I can fix this?