You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was pulling out my hair yesterday trying to get my matlab code running on the HPC. I based myself on the jobscript.sh from section 23.6 of intro-HPC-linux-gent.pdf. This script worked fine when trying to execute matlab code on the login node, but once I tried submitting it using qsub, I got the following error message:
Traceback (most recent call last):
File "/usr/libexec/jobcli/qsub", line 29, in
qsub()
File "/usr/lib/python2.7/site-packages/jobcli/commands/torque.py", line 69, in qsub
torque_command(submit_job, args)
File "/usr/lib/python2.7/site-packages/jobcli/commands/torque.py", line 39, in torque_command
function(args, frontend=TORQUE)
File "/usr/lib/python2.7/site-packages/jobcli/commands/generic.py", line 216, in submit_job
action="Job submission")
File "/usr/lib/python2.7/site-packages/jobcli/utils.py", line 324, in run_command
encoded_input = command_input.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1510: ordinal not in range(128)
After a little back-and-forth, I finally noticed that the problem was caused by line 24 of the jobscipt: # run compiled example MATLAB program ’example’, provide ’5’ as input argument to the program
The encoding error was caused by the quotation marks around example and 5, if you copy them from the PDF, these come out as "Right single quotation marks" and not as apostrophes. Maybe it's a good idea to add this small issue to the troubleshooting section of the intro pdf?
The text was updated successfully, but these errors were encountered:
Dear documentation maintainer
I was pulling out my hair yesterday trying to get my matlab code running on the HPC. I based myself on the jobscript.sh from section 23.6 of intro-HPC-linux-gent.pdf. This script worked fine when trying to execute matlab code on the login node, but once I tried submitting it using qsub, I got the following error message:
Traceback (most recent call last):
File "/usr/libexec/jobcli/qsub", line 29, in
qsub()
File "/usr/lib/python2.7/site-packages/jobcli/commands/torque.py", line 69, in qsub
torque_command(submit_job, args)
File "/usr/lib/python2.7/site-packages/jobcli/commands/torque.py", line 39, in torque_command
function(args, frontend=TORQUE)
File "/usr/lib/python2.7/site-packages/jobcli/commands/generic.py", line 216, in submit_job
action="Job submission")
File "/usr/lib/python2.7/site-packages/jobcli/utils.py", line 324, in run_command
encoded_input = command_input.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1510: ordinal not in range(128)
After a little back-and-forth, I finally noticed that the problem was caused by line 24 of the jobscipt:
# run compiled example MATLAB program ’example’, provide ’5’ as input argument to the program
The encoding error was caused by the quotation marks around example and 5, if you copy them from the PDF, these come out as "Right single quotation marks" and not as apostrophes. Maybe it's a good idea to add this small issue to the troubleshooting section of the intro pdf?
The text was updated successfully, but these errors were encountered: