pipmay display this error message when trying to install the Terality package on an unsupported Python version (3.6 or older).
Please ensure you are running Python 3.7 or newer. You can get your current Python version by running the following Python code:
from platform import python_version
If you are running Python 3.6 or older, please install a more recent Python version to use Terality. We suggest using
pyenvto manage several Python versions.
Depending on your setup, you might encounter dependency issues when installing the Terality package in the default Google Colab environment. If you see such a message, simply click the RESTART RUNTIME button at the bottom.
There may be several causes for an authentication error.
In most situations, this error can be fixed by:
Possible causes for this error include:
- Did you run
terality account configure?
- Did you restart your Python interpreter or notebook kernel?
Sometimes, the Terality client may be using an out-of-date configuration. To be sure that your credentials are correctly loaded, restart your notebook kernel, or restart your Python interpreter.
- Did you generate a new API key in the dashboard?
Currently, Terality only supports one API key per user. When you generate a new API key, old API keys are marked as invalid. You need to run the quickstart guide again with the new API key: follow the steps on https://app.terality.com.
The Terality client could not find the Terality configuration and credentials on this machine.
If you don't have a Terality account yet, please follow the guide to get started with a free account:
You can see this message while trying to run the Terality CLI in a terminal (such as when running
terality account create). It means that the Terality CLI is not correctly installed in your current Python environment.
First, ensure that
teralityis correctly installed in the current Python environment: in the same terminal, run
pip install --upgrade --force-reinstall teralityand retry.
If that doesn't solve the issue, check that the previous command does not output any warning looking like
WARNING: The script terality is installed in /Users/<you>/Library/Python/3.7/bin which is not on PATH.
If you see this warning, you have two solutions:
python -m teralityinstead of
terality. For instance, use
python -m terality account configureinstead of
terality account configure.
In a notebook, you may get the following error when running
terality account configure:
File "<ipython-input-1-01d28d6ffdce>", line 1
terality account configure --email email@example.com
SyntaxError: invalid syntax
This error is caused by forgetting the exclamation mark at the beginning of the command. To fix that, prepend an exclamation mark at the beginning of the cell:
When running in a notebook the following command:
the command will display "Your Terality API key:" then be stuck.
To fix that, add the API key to the command:
Terality frequently releases new client versions that include important fixes. We recommend always using the latest version of the client. In some cases, upgrading the client may solve an error you're encountering.
We have a how-to guide about upgrading your client version here:
This message is due to the way some versions of
pipresolve dependencies, and is harmless. To make this message disappear and reduce installation times, consider upgrading your
pip install --upgrade pip