Inductiva runs the simulations, so you can run the science.
In this troubleshooting section, we aim to guide you through resolving issues related to incorrect or incomplete installation of the Inductiva package or its dependencies.
If you find bugs, need help, or want to talk to the developers, reach out to us on Inductiva’s Discord: join here if you’re new, or head to the server if you’re already a member.
If you encounter issues installing the Inductiva API package, there are several steps you can take:
pip install --upgrade pip
If installing the package fails, you can retry it on a new Python virtual environment. A virtual environment allows you to have a fresh Python environment with isolated dependencies.
In your shell, run:
python -m venv <venv>
In that command, you should replace <venv> with the path (e.g., .venv) in
which you would like to create the environment. Then, to activate the environment
(again, correctly replacing <venv>), run:
For bash/zsh:
source <venv>/bin/activate
For cmd.exe (Windows):
<venv>\Scripts\activate.bat
For PowerShell (Windows):
<venv>\Scripts\Activate.ps1
After activating the virtual environment, you can install the package as described below:
pip install --upgrade inductiva
inductiva.exeYou receive an error message like unable to create inductiva.exe when running
pip install inductiva. This issue is most common on Windows systems and
typically occurs due to insufficient permissions to create the executable file.
pip install inductiva
inductiva is Not RecognizedWhen attempting to run inductiva, you see the error:
'inductiva' is not recognized as an internal or external command.
This happens for one of two reasons:
inductiva.exe file was not created successfully. (Refer to Unable to Create inductiva.exe).Scripts folder from your Python installation directory is missing from
your PATH environment variable. You might also see a warning like this during
installation:
WARNING: The script inductiva.exe is installed in 'C:\path\to\python\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Windows + R to open the Run dialog.sysdm.cpl and click OK.PATH variable and click Edit.Scripts folder in your Python installation directory.
Example: C:\path\to\python\Scripts~/.zshrc):
nano ~/.zshrc
export PATH="/path/to/python/Scripts:$PATH"
Note: Replace
/path/to/python/Scriptswith the actual path to theScriptsfolder on your system. The actual path can be seen in the warning message.