# Run-sepp.sh error again

**URL:** <https://forum.qiime2.org/t/run-sepp-sh-error-again/5409>\
**Category:** User Support\
**Tags:** sepp, fragment-insertion\
**Created:** [August 3, 2018, 7:08pm UTC](https://forum.qiime2.org/t/run-sepp-sh-error-again/5409 "2018-08-03T19:08:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drevilette](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/d/f475e1/32.png) [@Drevilette](https://forum.qiime2.org/u/Drevilette)\
**Post date:** [August 3, 2018, 7:08pm UTC](https://forum.qiime2.org/t/run-sepp-sh-error-again/5409/1 "2018-08-03T19:08:22Z")

</div>

Hey there,  
this issue is related/similar to the following but there was no follow up on the forum so I m afraid I have to bug you again:

> [@Run-sepp.sh returned non-zero exit status 1](https://forum.qiime2.org/t/run-sepp-sh-returned-non-zero-exit-status-1/4071):
>
> Hello all, I have been trying to run some sequences through fragment-insertion sepp. I get the same error when running on mac osx and linux. It is running on a qza I created from a fasta rep set file generated in a custom qiime 1 analysis where OTUs were picked on DADA2 sequences. The full error from running on a linux system is below. Removing /tmp/tmp.6ekomwa03h/sepp-tmp-bSNAB Traceback (most recent call last): File "/Users/mish0397/miniconda3/envs/qiime2-2018.4/lib/python3.5/site-packages…

I downloaded the latest qiime2 version (qiime2-2018.6) , activated qiime 2 environment and then installed fragment-insertionn using:

> conda install -c [Package repository for biocore | Anaconda.org](https://conda.anaconda.org/biocore) q2-fragment-insertion  
> qiime dev refresh-cache

I ran into the issue described on the website with PackageNotfound error, which I also solved as described on the github page ([GitHub - qiime2/q2-fragment-insertion](https://github.com/biocore/q2-fragment-insertion)) - thank you for that..

> conda install -c anaconda -c defaults -c conda-forge -c bioconda -c [Package repository for biocore | Anaconda.org](https://conda.anaconda.org/biocore) q2-fragment-insertion  
> qiime dev refresh-cache

I tried running the following command on the rep-seqs output from dada2 in the moving pictures tutorial (ignore the joining of the dashes in the copied command):

> qiime fragment-insertion sepp  
> --i-representative-sequences Downloads/rep-seqs.qza  
> --o-tree i-tree.qza  
> --o-placements insertion-placements.qza

and received the following error:

> Plugin error from fragment-insertion:  
> Command '['run-sepp.sh', '/var/folders/my/pq46r9ts5ns4b7xlvm1sk7m40000gn/T/qiime2-archive-ewpmr\_fy/33e6372d-fab7-460b-89aa-b42b83262e03/data/dna-sequences.fasta', 'q2-fragment-insertion', '-x', '1', '-A', '1000', '-P', '5000']' returned non-zero exit status 1  
> Debug info has been saved to /var/folders/my/pq46r9ts5ns4b7xlvm1sk7m40000gn/T/qiime2-q2cli-err-wdv4qamf.log

less on the output file gives the following, which does not change after adding # to trap cleanup EXIT:

```
ages/q2cli/commands.py", line 274, in __call__
    results = action(**arguments)
  File "<decorator-gen-252>", line 2, in sepp
  File "/Users/rimachakaroun/anaconda/envs/qiime2-2018.6/lib/python3.5/site-packages/qiime2/sdk/action.py", line 232, in bound_callable
    output_types, provenance)
  File "/Users/rimachakaroun/anaconda/envs/qiime2-2018.6/lib/python3.5/site-packages/qiime2/sdk/action.py", line 367, in _callable_executor_
    output_views = self._callable(**view_args)
  File "/Users/rimachakaroun/anaconda/envs/qiime2-2018.6/lib/python3.5/site-packages/q2_fragment_insertion/_insertion.py", line 179, in sepp
    reference_alignment, reference_phylogeny, debug)
  File "/Users/rimachakaroun/anaconda/envs/qiime2-2018.6/lib/python3.5/site-packages/q2_fragment_insertion/_insertion.py", line 137, in _run
    subprocess.run(cmd, check=True, cwd=cwd)
  File "/Users/rimachakaroun/anaconda/envs/qiime2-2018.6/lib/python3.5/subprocess.py", line 398, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['run-sepp.sh', '/var/folders/my/pq46r9ts5ns4b7xlvm1sk7m40000gn/T/qiime2-archive-tbv78tgl/33e6372d-fab7-460b-89aa-b42b83262e03/data/dna-sequences.fasta', 'q2-fragment-insertion', '-x', '1', '-A', '1000', '-P', '5000']' returned non-zero exit status 1

```

thanks for the help in advance!  
Rima

---

<div class="post-metadata">

**Author:** ![ebolyen](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ebolyen/32/11_2.png) [@ebolyen](https://forum.qiime2.org/u/ebolyen)\
**Post date:** [August 6, 2018, 3:10pm UTC](https://forum.qiime2.org/t/run-sepp-sh-error-again/5409/2 "2018-08-06T15:10:23Z")

</div>

This came up at STAMPS and I wasn't able to figure out what was going on. @Stefan, any thoughts?

---

<div class="post-metadata">

**Author:** ![Stefan](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@Stefan](https://forum.qiime2.org/u/Stefan)\
**Post date:** [August 6, 2018, 7:33pm UTC](https://forum.qiime2.org/t/run-sepp-sh-error-again/5409/3 "2018-08-06T19:33:28Z")

</div>

Hi Rima,

I just ran fragment-insertion on the freshly downloaded [DADA2 rep-seqs](https://docs.qiime2.org/2018.6/data/tutorials/moving-pictures/rep-seqs-dada2.qza) and executed this command

`qiime fragment-insertion sepp --i-representative-sequences rep-seqs-dada2.qza --o-tree i-tree.qza --o-placements insertion-placements.qza --p-debug --verbose 2> err.txt > out.txt`

in a qiime2-2018.6 conda environment, which produces the artifacts without errors (placements are too large to upload). The file "err.txt" is empty (as expected) and the content of "out.txt" is attached.

[i-tree.qza](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/qiime21/original/2X/5/54ab43da052c14d45b7270ea739cf3a307bb7c96.qza) (2.3 MB)  
[out.txt](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/qiime21/original/2X/1/1b1d28bce739a60e36676ecd913fa981c99c397a.txt) (2.0 KB)

Can you copy and paste the result of `conda list | grep frag`?

---

<div class="post-metadata">

**Author:** ![Drevilette](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/d/f475e1/32.png) [@Drevilette](https://forum.qiime2.org/u/Drevilette)\
**Post date:** [September 2, 2018, 7:23pm UTC](https://forum.qiime2.org/t/run-sepp-sh-error-again/5409/4 "2018-09-02T19:23:53Z")

</div>

@Stefan  
just discovered the notification for this in my SPAM. sorry :S will get cracking and update this week.  
Thanks for taking the time to reply and sorry again for not noticing earlier.  
Rima

---

<div class="post-metadata">

**Author:** ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)\
**Post date:** [October 4, 2018, 1:23am UTC](https://forum.qiime2.org/t/run-sepp-sh-error-again/5409/5 "2018-10-04T01:23:53Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
