1546294 : spyder in maxwell

Created: 2025-10-22T11:03:43Z - current status: new

# Anonymized and Summarized Issue

Summary: A user is experiencing issues with importing the pyFAI module in Spyder on the Maxwell cluster. The module loads and works in a standard Python session, but fails when used within Spyder. Additionally, after attempting to use Spyder, the module also fails to import in subsequent Python sessions.

Solution: The issue may be related to environment variables or module conflicts when using Spyder. The user should try the following steps:

  1. Ensure Proper Module Loading:
  2. Load the modules in the correct order: maxwell, pyFAI, and then spyder.
  3. Verify that the pyFAI module is correctly loaded by checking its version in a Python session before launching Spyder.

  4. Use Conda Environment:

  5. Since pyFAI is available as a conda/mamba-based installation, the user can activate the pyFAI conda environment before launching Spyder. This can be done by: bash module load maxwell conda/3.9 . mamba-init mamba activate pyFAI spyder

  6. Check Environment Variables:

  7. Ensure that any necessary environment variables (e.g., HDF5_PLUGIN_PATH for HDF5 data handling) are set correctly. This is especially important if the user is working with Dectris Eiger detector data.

  8. Alternative Approach:

  9. If the issue persists, the user can try launching Spyder with specific memory settings to avoid crashes: bash module load maxwell fiji fiji -Xss2m --

  10. Consult Documentation:

  11. Refer to the pyFAI documentation and Maxwell applications documentation for additional troubleshooting steps.

References: - pyFAI Installation and Usage - Using Conda Environments on Maxwell - HDF5 Plugin Path Setup - Using Fiji (Spyder)