Installation#
Installing darfix involves creating a python environment, installing dependencies and potentially Windows enabling long paths.
Environment#
It is recommended to create a virtual environment to avoid conflicts between dependencies.
On Linux or Mac
python3 -m venv /path/to/new/virtual/environment
source /path/to/new/virtual/environment/bin/activate
On Windows
python3 -m venv C:\path\to\new\virtual\environment
C:\path\to\new\virtual\environment\Scripts\activate.bat
Note: To deactivate the environment, call: deactivate
Install#
Installation from pypi#
Recommended installation (with all darfix dependencies) is:
pip install darfix[full]
Note
To install darfix with a minimal set of dependencies you can run instead
pip install darfix
Hint
If you have trouble during installation see the Troubleshooting section
Install from sources#
git clone https://gitlab.esrf.fr/XRD/darfix.git
cd darfix
pip install .[full]
Note
Or with a minimal set of dependencies:
pip install .
Hint
If you have trouble during installation see the Troubleshooting section
Test#
To test the orange workflow (only if you have access to the source code)
darfix src/orangecontrib/darfix/tutorials/darfix_example_hdf.ows
Troubleshooting#
On Windows you may get this installation error
Building wheels for collected packages: ewoksorange
Building wheel for ewoksorange (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for ewoksorange (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [154 lines of output]
...
error: could not create 'build\lib\ewoksorange\tests\examples\ewoks_example_1_addon\orangecontrib\ewoks_example_supercategory\ewoks_example_subcategory\tutorials\sumtask_tutorial3.ows': No such file or directory
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ewoksorange
Failed to build ewoksorange
ERROR: Could not build wheels for ewoksorange, which is required to install pyproject.toml-based projects
If you do, you need to enable long paths. Instructions to do this in Windows 10 or later can be found here.
Use#
Start the graphical interface
darfix
Drag widgets from the left panel to the canvas to start making your workflow.