|
| 1 | +.. _Troubleshooting: |
| 2 | + |
| 3 | +Troubleshooting |
| 4 | +=============== |
| 5 | + |
| 6 | +Updating Mantid Imaging on IDAaaS |
| 7 | +--------------------------------- |
| 8 | + |
| 9 | +Updating Unstable package |
| 10 | +######################### |
| 11 | + |
| 12 | +To update the unstable package please copy and run this command in a terminal: |
| 13 | + |
| 14 | +.. code-block:: bash |
| 15 | +
|
| 16 | + source /opt/miniconda/bin/activate /opt/miniconda && ENVIRONMENT_NAME=mantidimaging_unstable REPO_LABEL=unstable source <(curl -s https://raw.githubusercontent.com/mantidproject/mantidimaging/master/install.sh) |
| 17 | +
|
| 18 | +Updating Release package |
| 19 | +######################## |
| 20 | + |
| 21 | +To update the release package please copy and run this command in a terminal: |
| 22 | + |
| 23 | +.. code-block:: bash |
| 24 | +
|
| 25 | + source /opt/miniconda/bin/activate /opt/miniconda && source <(curl -s https://raw.githubusercontent.com/mantidproject/mantidimaging/master/install.sh) |
| 26 | +
|
| 27 | +Updating when not on IDAaaS |
| 28 | +########################### |
| 29 | + |
| 30 | +When updating the package, and not on IDAaaS, you will have to: |
| 31 | + |
| 32 | +- Open a terminal which has the :code:`base` Anaconda environment activated, or |
| 33 | +- replace the :code:`/opt/miniconda/` paths in :code:`source /opt/miniconda/bin/activate /opt/miniconda` |
| 34 | +command with the path where :code:`conda` is installed on your system. |
| 35 | + |
| 36 | +Afterwards run the remainder of the command to update the environment: |
| 37 | + |
| 38 | +- For Unstable |
| 39 | + |
| 40 | +.. code-block:: bash |
| 41 | +
|
| 42 | + ENVIRONMENT_NAME=mantidimaging_unstable REPO_LABEL=unstable source <(curl -s https://raw.githubusercontent.com/mantidproject/mantidimaging/master/install.sh) |
| 43 | +
|
| 44 | +
|
| 45 | +- For Release |
| 46 | + |
| 47 | +.. code-block:: bash |
| 48 | +
|
| 49 | + source <(curl -s https://raw.githubusercontent.com/mantidproject/mantidimaging/master/install.sh) |
| 50 | +
|
| 51 | +
|
| 52 | +
|
| 53 | +Can't reconstruct with FBP_CUDA and SIRT_CUDA |
| 54 | +--------------------------------------------- |
| 55 | + |
| 56 | +These algorithms have 2 requirements: |
| 57 | + |
| 58 | +- Having a CUDA-compatible graphics card (GPU) |
| 59 | +- Having the CUDA Runtime 10.2 libraries installed |
| 60 | + |
| 61 | + |
| 62 | +Having a CUDA-compatible graphics card |
| 63 | +###################################### |
| 64 | + |
| 65 | +Please check that your GPU is on the list of compatible GPUs https://developer.nvidia.com/cuda-gpus |
| 66 | + |
| 67 | +Having the CUDA Runtime 10.2 libraries installed |
| 68 | +################################################ |
| 69 | + |
| 70 | +Please install the CUDA Runtime version 10.2 binaries from https://developer.nvidia.com/cuda-10.2-download-archive |
| 71 | + |
| 72 | +Reinstalling CUDA on Linux can be quickly done with this script |
| 73 | + |
| 74 | + |
| 75 | +.. code-block:: bash |
| 76 | +
|
| 77 | + # uninstall nvidia driver and cuda driver |
| 78 | + nvidia-uninstall && /usr/local/cuda/bin/cuda-uninstaller |
| 79 | +
|
| 80 | + # download the CUDA installer |
| 81 | + wget http://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda_10.2.89_440.33.01_linux.run ~/Downloads/cuda_10.2.89_440.33.01_linux.run |
| 82 | +
|
| 83 | + # install GPU driver and CUDA Toolkit from CLI silently |
| 84 | + sudo bash ~/Downloads/cuda_10.2.89_440.33.01_linux.run --silent --driver --toolkit |
| 85 | +
|
| 86 | +
|
| 87 | +Specific Errors |
| 88 | +=============== |
| 89 | + |
| 90 | + |
| 91 | +SystemError: <built-in function connectSlotsByName> returned a result with an error set |
| 92 | +--------------------------------------------------------------------------------------- |
| 93 | + |
| 94 | +This means that the PyQt package is missing or an old version (it must be newer than PyQt5==5.13.2) |
| 95 | + |
| 96 | +Suggested Fix |
| 97 | +############# |
| 98 | + |
| 99 | +Install PyQt5 and pyqtgraph with :code:`pip install pyqt5==5.15 pyqtgraph==0.11` |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | +qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. |
| 104 | +---------------------------------------------------------------------------------------------- |
| 105 | + |
| 106 | +This might mean some system libraries are missing |
| 107 | + |
| 108 | +Suggested Fix |
| 109 | +############# |
| 110 | + |
| 111 | +Try installing :code:`apt install libxcb-xinerama0` |
| 112 | + |
| 113 | +qt.qpa.xcb: could not connect to display... |
| 114 | +------------------------------------------- |
| 115 | + |
| 116 | +Missing :code:`DISPLAY` variable. This means the application cannot find the display to show itself on. |
| 117 | + |
| 118 | + |
| 119 | +Suggested Fix |
| 120 | +############# |
| 121 | + |
| 122 | +You can set this via :code:`export DISPLAY=:N` where :code:`:N` should be the number of your display |
0 commit comments