Starting nextflow without 'run' before file argument
JessedeDoes opened this issue · 2 comments
JessedeDoes commented
In picclservice_wrapper.py we now have:
if len(sys.argv) >= 7:
#use scripts from src/ directly
run_piccl = sys.argv[6]
if run_piccl[-1] != '/': run_piccl += "/"
else:
#use the piccl nextflow downloads
run_piccl = "nextflow LanguageMachines/PICCL/"
In the older versions, the command was invoked as "nextflow run ...."
PS: If we edit this to
run_piccl = "nextflow run LanguageMachines/PICCL/"
PICCL works
We get this error:
[CLAM Dispatcher] Adding to PYTHONPATH: /vol1/lamachine/lib/python3.4/site-packages/PICCL-0.4.3-py3.4.egg/picclservice
[CLAM Dispatcher] Started CLAM Dispatcher v2.1 with picclservice.picclservice (2018-02-15 13:48:39)
[CLAM Dispatcher] Running /vol1/lamachine/bin/python3 "/vol1/lamachine/lib/python3.4/site-packages/PICCL-0.4.3-py3.4.egg/picclservice/picclservice_wrapper.py" "/vol1/lamachine/piccldata/clamdata/projects/j.de.does@umail.leidenuniv.nl/gaanweweer/clam.xml" "/vol1/lamachine/piccldata/clamdata/projects/j.de.does@umail.leidenuniv.nl/gaanweweer/.status" "/vol1/lamachine/piccldata/clamdata/projects/j.de.does@umail.leidenuniv.nl/gaanweweer/input/" "/vol1/lamachine/piccldata/clamdata/projects/j.de.does@umail.leidenuniv.nl/gaanweweer/output/" "/vol1/lamachine/piccldata"
[CLAM Dispatcher] Running with pid 1565 (2018-02-15 13:48:39)
Expected a command, got LanguageMachines/PICCL/ocr.nf -- Check the available commands and options and syntax with 'help'
OCR pipeline trace summary
-------------------------------
Traceback (most recent call last):
File "/vol1/lamachine/lib/python3.4/site-packages/PICCL-0.4.3-py3.4.egg/picclservice/picclservice_wrapper.py", line 158, in <module>
print(open('trace.txt','r',encoding='utf-8').read(), file=sys.stderr)
FileNotFoundError: [Errno 2] No such file or directory: 'trace.txt'
[CLAM Dispatcher] Process ended (2018-02-15 13:48:41, 1.861522s)
[CLAM Dispatcher] Removing temporary files
[CLAM Dispatcher] Status code out of range (256), setting to 127
[CLAM Dispatcher] Finished (2018-02-15 13:48:41), exit code 127, dispatcher wait time 1.7500000000000002s, duration 1.862349s
proycon commented
Oops, I indeed forgot run there...!
proycon commented
Should be fixed now!