# Installation graphlan

**URL:** <https://forum.biobakery.org/t/installation-graphlan/7236>\
**Category:** GraPhlAn\
**Created:** [July 6, 2024, 3:01pm UTC](https://forum.biobakery.org/t/installation-graphlan/7236 "2024-07-06T15:01:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shwetha\_Kumar](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/shwetha_kumar/32/2618_2.png) [@Shwetha\_Kumar](https://forum.biobakery.org/u/Shwetha_Kumar)\
**Post date:** [July 6, 2024, 3:01pm UTC](https://forum.biobakery.org/t/installation-graphlan/7236/1 "2024-07-06T15:01:45Z")

</div>

I am not sure this has been quite answered in the previous posts as well. I have this issue with installing graphaln. I get this error.

include/python3.12 -c Bio/triemodule.c -o build/temp.macosx-10.9-x86\_64-cpython-312/Bio/triemodule.o  
Bio/triemodule.c:837:25: error: expression is not assignable  
Py\_TYPE(&Trie\_Type) = &PyType\_Type;  
~~~~~~~~~~~~~~~~~~~ ^  
1 error generated.  
error: command ‘/usr/bin/clang’ failed with exit code 1  
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.  
ERROR: Failed building wheel for biopython  
Running setup.py clean for biopython  
Failed to build biopython  
ERROR: Could not build wheels for biopython, which is required to install pyproject.toml-based projects

---

<div class="post-metadata">

**Author:** ![sagunmaharjann](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/sagunmaharjann/32/168_2.png) [@sagunmaharjann](https://forum.biobakery.org/u/sagunmaharjann)\
**Post date:** [July 8, 2024, 5:49pm UTC](https://forum.biobakery.org/t/installation-graphlan/7236/2 "2024-07-08T17:49:46Z")

</div>

Hi @Shwetha_Kumar ,  
Thank you for reaching out to the bioBakery Lab. Can you please try the `conda graphlan` installation rather than `PyPi` please? It looks like a compile install issue on the PyPi side.

Regards,  
Sagun

---

<div class="post-metadata">

**Author:** ![Shwetha\_Kumar](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/shwetha_kumar/32/2618_2.png) [@Shwetha\_Kumar](https://forum.biobakery.org/u/Shwetha_Kumar)\
**Post date:** [July 18, 2024, 7:21pm UTC](https://forum.biobakery.org/t/installation-graphlan/7236/3 "2024-07-18T19:21:56Z")

</div>

I think I tried installing using

 ![Screenshot 2024-07-18 at 2.15.05 PM](https://canada1.discourse-cdn.com/flex027/uploads/biobakery/original/2X/d/db020992f8f79f39acd2c74889163bf2e5d2904f.jpeg)  
. I think there are compatibility issues because the package needs dependencies from two versions of python (that’s what I understood). I think this was posted as an issue on the repo

> <https://github.com/biobakery/biobakery/issues/33>
>
> I ran the following command to install graphlan:
> \`conda install -c biobakery gr…aphlan\`
> Here is the error I got.
> \`Collecting package metadata (repodata.json): done
> Solving environment: failed with initial frozen solve. Retrying with flexible solve.
> Solving environment: -
> Found conflicts! Looking for incompatible packages. failed
> 
> UnsatisfiableError: The following specifications were found
> to be incompatible with the existing python installation in your environment:
> 
> Specifications:
> 
> - graphlan -\> python\[version='\>=2.7,\<2.8.0a0'\]
> 
> Your python: python=3.7
> 
> If python is on the left-most side of the chain, that's the version you've asked for.
> When python appears to the right, that indicates that the thing on the left is somehow
> not available for the python version you are constrained to. Note that conda will not
> change your python version to a different minor version unless you explicitly specify
> that.
> 
> The following specifications were found to be incompatible with your system:
> 
> - feature:/linux-64::\_\_glibc==2.17=0
> - feature:|@/linux-64::\_\_glibc==2.17=0
> 
> Your installed version is: 2.17\`
> 
> Please help me to solve this issue.

---

<div class="post-metadata">

**Author:** ![Samantha](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/samantha/32/260_2.png) [@Samantha](https://forum.biobakery.org/u/Samantha)\
**Post date:** [August 16, 2024, 2:39pm UTC](https://forum.biobakery.org/t/installation-graphlan/7236/4 "2024-08-16T14:39:49Z")

</div>

I’m not an admin here, but I ran into the same error you had with the conda install. I seem to have gotten around it by making a new conda environment with Python 2.7:

```auto
conda create -n graphlan2.7 python=2.7
conda activate graphlan2.7
conda install -c bioconda graphlan

```

This allowed the install to go through for me, hopefully it works for you as well!

~Samantha

---

<div class="post-metadata">

**Author:** ![Shwetha\_Kumar](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/shwetha_kumar/32/2618_2.png) [@Shwetha\_Kumar](https://forum.biobakery.org/u/Shwetha_Kumar)\
**Post date:** [August 17, 2024, 4:42pm UTC](https://forum.biobakery.org/t/installation-graphlan/7236/5 "2024-08-17T16:42:07Z")

</div>

Thank you, so much. This helped and i was able to get it installed…

Thank you 🙂
