-
Notifications
You must be signed in to change notification settings - Fork 125
Closed
Labels
Description
Details
- Slurm Version:19.05.4
- Python Version:3.6.2
- Cython Version:0.29.14
- PySlurm Branch:19.05.0
- Linux Distribution:centos7
Issue
pyslurm.job().find_user give me type error 'bytes expected'.
After i follow the instructions here. The error message became 'integer required'
The error seems to be only happening in python3.
Python 3.6.2 (default, Sep 8 2017, 15:27:04)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyslurm
>>> pyslurm.job().find_user('luhanc')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pyslurm/pyslurm.pyx", line 1989, in pyslurm.pyslurm.job.find_user
File "pyslurm/pyslurm.pyx", line 2007, in pyslurm.pyslurm.job.find_user
TypeError: expected bytes, str found
>>> pyslurm.job().find_user('luhanc'.encode('utf-8'))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pyslurm/pyslurm.pyx", line 1989, in pyslurm.pyslurm.job.find_user
File "pyslurm/pyslurm.pyx", line 2012, in pyslurm.pyslurm.job.find_user
TypeError: an integer is required
>>>
Thank you