dials.data command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dials.data: command not found
or when using sudo you get the following error message
sudo: dials.data: command not found
Solutions to dials.data: command not found
How To Fix dials.data: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dials.data is provided by python3-dials-data package.
python3-dials-data is:
Lightweight, simple Python(-only) package. It is used to provide access to data files used in regression tests, but does not contain any of those data files itself.
Although it is envisaged as mostly being used in a cctbx/DIALS environment for tests in DIALS, dxtbx, xia2 and related packages, it has no dependencies on either cctbx or DIALS, in fact all dependencies are explicitly declared in the setup.py file and are installable via standard setuptools/pip methods. This means dials_data can easily be used in other projects accessing the same data, and can be used in temporary environments such as Travis containers.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-dials-data
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-dials-data.
sudo apt -y install python3-dials-data
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-dials-data
Summary
In this tutorial we learn how to fix dials.data command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.