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:
- Ensure Proper Module Loading:
- Load the modules in the correct order:
maxwell,pyFAI, and thenspyder. -
Verify that the
pyFAImodule is correctly loaded by checking its version in a Python session before launching Spyder. -
Use Conda Environment:
-
Since
pyFAIis available as a conda/mamba-based installation, the user can activate thepyFAIconda environment before launching Spyder. This can be done by:bash module load maxwell conda/3.9 . mamba-init mamba activate pyFAI spyder -
Check Environment Variables:
-
Ensure that any necessary environment variables (e.g.,
HDF5_PLUGIN_PATHfor HDF5 data handling) are set correctly. This is especially important if the user is working with Dectris Eiger detector data. -
Alternative Approach:
-
If the issue persists, the user can try launching Spyder with specific memory settings to avoid crashes:
bash module load maxwell fiji fiji -Xss2m -- -
Consult Documentation:
- 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)