Using SGE, get error "TypeError: expected str, bytes or os.PathLike object, not NoneType"

I using SGE as queue system.
It is ok to submit queue mission using qlaunch singleshot
However, following the tutorial in fireworks’ website to qlaunch rapidfires, I get the errors following:

(fireworks-py3) ➜ test qlaunch rapidfire -m 2

2017-07-24 10:37:24,906 INFO getting queue adapter
2017-07-24 10:37:24,907 INFO Created new dir /public/data/jsy/H_T/fireworks-ababe/test/block_2017-07-24-02-37-24-907129
2017-07-24 10:37:24,910 ERROR ----|vvv|----
2017-07-24 10:37:24,910 ERROR Error trying to get the number of jobs in the queue
The error response reads: Traceback (most recent call last):
File “/home/jsy/jsy/miniconda3/envs/fireworks-py3/lib/python3.6/site-packages/fireworks/queue/qu
eue_adapter.py”, line 67, in target
self.process = subprocess.Popen(self.command, **kwargs)
File “/home/jsy/jsy/miniconda3/envs/fireworks-py3/lib/python3.6/subprocess.py”, line 707, in i
nit

restore_signals, start_new_session)
File “/home/jsy/jsy/miniconda3/envs/fireworks-py3/lib/python3.6/subprocess.py”, line 1260, in _e
xecute_child restore_signals, start_new_session, preexec_fn)
TypeError: expected str, bytes or os.PathLike object, not NoneType

How can I fix this? Thanks.

By debuging the fireworks/user_objects/queue_adapters/common_adapter.py.
I find the problem raised from I did not specify the SGE queue in the template file.

···

On Monday, July 24, 2017 at 10:42:37 AM UTC+8, Unkcpz Yu wrote:

I using SGE as queue system.
It is ok to submit queue mission using qlaunch singleshot
However, following the tutorial in fireworks’ website to qlaunch rapidfires, I get the errors following:

(fireworks-py3) ➜ test qlaunch rapidfire -m 2

2017-07-24 10:37:24,906 INFO getting queue adapter
2017-07-24 10:37:24,907 INFO Created new dir /public/data/jsy/H_T/fireworks-ababe/test/block_2017-07-24-02-37-24-907129
2017-07-24 10:37:24,910 ERROR ----|vvv|----
2017-07-24 10:37:24,910 ERROR Error trying to get the number of jobs in the queue
The error response reads: Traceback (most recent call last):
File “/home/jsy/jsy/miniconda3/envs/fireworks-py3/lib/python3.6/site-packages/fireworks/queue/qu
eue_adapter.py”, line 67, in target
self.process = subprocess.Popen(self.command, **kwargs)
File “/home/jsy/jsy/miniconda3/envs/fireworks-py3/lib/python3.6/subprocess.py”, line 707, in i
nit

restore_signals, start_new_session)
File “/home/jsy/jsy/miniconda3/envs/fireworks-py3/lib/python3.6/subprocess.py”, line 1260, in _e
xecute_child restore_signals, start_new_session, preexec_fn)
TypeError: expected str, bytes or os.PathLike object, not NoneType

How can I fix this? Thanks.