# Export2graphlan: Traceback

**URL:** <https://forum.biobakery.org/t/export2graphlan-traceback/586>\
**Category:** GraPhlAn\
**Created:** [June 16, 2020, 3:43pm UTC](https://forum.biobakery.org/t/export2graphlan-traceback/586 "2020-06-16T15:43:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philipp\_Licht](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/philipp_licht/32/210_2.png) [@Philipp\_Licht](https://forum.biobakery.org/u/Philipp_Licht)\
**Post date:** [June 16, 2020, 3:43pm UTC](https://forum.biobakery.org/t/export2graphlan-traceback/586/1 "2020-06-16T15:43:17Z")

</div>

Hello,

I am currently running throuh the Metaphlan3 wiki tutorial ([https://github.com/biobakery/biobakery/wiki/metaphlan3](https://github.com/biobakery/biobakery/wiki/metaphlan3)) with the example data as well as own data. When it comes to creating Graphlan input files with export2graphlan.py I receive tracebacks:

 ![1](https://canada1.discourse-cdn.com/flex027/uploads/biobakery/original/1X/9a7a8359bfebb523b71973f3bae608cb28acbcf5.jpeg)

I get this kind of traceback no matter which data I use. When I only install Graphlan and Metaphlan3, the command export2graphlan.py can not be found. Therefore I searched and found the export2graphlan package in bioconda. Running export2graphlan in an environment where the respective package is installed I am getting the traceback shown above.  
I use Ubuntu 20.04 and installed each tool in an own environment using conda. I also tried installing different packages in one environment (e. g. Metaphlan and Graphlan, Metaphlan and Graphlan and export2graphlan) but I can not solve the traceback.

Best,  
Philipp

---

<div class="post-metadata">

**Author:** ![Philipp\_Licht](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/philipp_licht/32/210_2.png) [@Philipp\_Licht](https://forum.biobakery.org/u/Philipp_Licht)\
**Post date:** [June 22, 2020, 10:54am UTC](https://forum.biobakery.org/t/export2graphlan-traceback/586/2 "2020-06-22T10:54:46Z")

</div>

Does anyone have a solution for this?

Maybe @fbeghini? 🙂

---

<div class="post-metadata">

**Author:** ![fbeghini](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/fbeghini/32/81_2.png) [@fbeghini](https://forum.biobakery.org/u/fbeghini)\
**Post date:** [June 22, 2020, 12:31pm UTC](https://forum.biobakery.org/t/export2graphlan-traceback/586/3 "2020-06-22T12:31:54Z")

</div>

Hi Philipp,  
I can not reproduce the error you get, can you share with me the input files, the command line, and the result of `conda list`?

Edit: It seems that you are using Python 3 instead of Python2.7, which is required by export2graphlan

---

<div class="post-metadata">

**Author:** ![Philipp\_Licht](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/philipp_licht/32/210_2.png) [@Philipp\_Licht](https://forum.biobakery.org/u/Philipp_Licht)\
**Post date:** [June 22, 2020, 3:19pm UTC](https://forum.biobakery.org/t/export2graphlan-traceback/586/4 "2020-06-22T15:19:16Z")

</div>

Hey Francesco,

thanks a lot, now it works. I do not know what failed. I just repeated the command and now I get the cladogram.
