Troubleshooting

Published

November 4, 2024

Learn how to resolve commonly encountered issues with the ValidMind AI risk platform.

Cannot access expected features

Issue

You cannot access functionality described in our user guides or recent releases.

Fix

Make sure you are running most recent versions of ValidMind,1 and have the proper permissions assigned.2

Cannot install the ValidMind Developer Framework

Issue

You cannot run pip install validmind or import validmind as vm in the ValidMind Developer Framework notebooks.

Fix

Make sure you are installing the latest version of the developer framework3 by running this command:

%pip install --upgrade validmind

Cannot initialize ValidMind client library

Issue

When you run vm.init(), you encounter an error message like this:

MissingAPICredentialsError: API key and secret must be provided either as environment variables or as arguments to init.

or

InvalidProjectError: Model could not be found

Fix

Make sure that you are using the correct initialization credentials for the model you are trying to connect to.

Follow the steps in Install and initialize the client library for detailed instructions on how to integrate the developer framework and upload to the platform UI.

How to upgrade

ValidMind Platform UI

To access the latest version of the ValidMind Platform UI,4 hard refresh your browser tab:

  • Windows: Ctrl + Shift + R OR Ctrl + F5
  • MacOS: ⌘ Cmd + Shift + R OR hold down ⌘ Cmd and click the Reload button

ValidMind Developer Framework

To upgrade to the latest version of the ValidMind Developer Framework:5

  1. In your Jupyter Notebook:

    • Using JupyterHub:6 Hard refresh your browser tab.
    • In your own developer environment:7 Restart your notebook.
  2. Then within a code cell or your terminal, run:

    %pip install --upgrade validmind

You may need to restart your kernel after running the upgrade package for changes to be applied.

Additional resources