Skip to content

Python 3.6.5 with matplotlib not running well in sbatch #6

@ygmayor

Description

@ygmayor

Hi,
I tried to run an slurm job through sbatch with a python script inside. The script does not run and it can be seen the following message instead:
QStandardPaths: XDG_RUNTIME_DIR points to non-existing path '/run/user/9980', please create it with 0700 permissions.
qt.qpa.screen: QXcbConnection: Could not connect to display localhost:12.0
Could not connect to any X display.

Now:

  • I know the problem is that I am importing the matplotlib module since my final results are some figures.
  • I also know that the same script runs well when I run it in the login node which I remotely accessed via ssh -X
  • I believe that the compute nodes don't have permission to access any X display because perhaps the communication between the login node and the compute node was automatically made by slurm without this feature enabled
  • I confirmed that /run/user/9980, accessed from the login node, does exist and has proper permissions assigned.
    So, my real question is: How do I solve my problem????

Any help or ideas please

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions