Skip to content

ValueError: invalid literal for int() with base 10: 'milton.m' #302

Closed
@multimeric

Description

@multimeric

Details

Slurm Version: 23.02.1
Python Version: 3.9.5
Cython Version: ?
PySlurm Branch: v23.2.1 tag, aka 538bf42
Linux Distribution: CentOS 7

Issue

The docs describe the users filter field as "Search for Jobs with these user names. You can both specify the users as string or by their UID". However specifying via username doesn't seem to work. See example below:

filter = JobSearchFilter(users=["milton.m"])
Jobs.load(filter)

Gives me:

in pyslurm.db.job.Jobs.load:242in pyslurm.db.job.JobSearchFilter._create:151
in pyslurm.db.job.JobSearchFilter._parse_users:107
ValueError: invalid literal for int() with base 10: 'milton.m'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions