# ALDEx2 Troubleshooting Installation

**URL:** https://forum.qiime2.org/t/aldex2-troubleshooting-installation/15535
**Category:** Library Support
**Tags:** install
**Created:** [June 29, 2020, 1:25pm UTC](https://forum.qiime2.org/t/aldex2-troubleshooting-installation/15535 "2020-06-29T13:25:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Nicheca1](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicheca1/32/9287_2.png) [@Nicheca1](https://forum.qiime2.org/u/Nicheca1)
#### Post date: [June 29, 2020, 1:25pm UTC](https://forum.qiime2.org/t/aldex2-troubleshooting-installation/15535/1 "2020-06-29T13:25:52Z")

</div>

Hello,

I just encountered an issue while I was installing ALDEx2 package. I dowload th R package and then tried to install it under Qiime but I got this followinf issue:  
conda install bioconductor-aldex2 -c defaults -c bioconda -c conda-forge  
[  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/q2cli/commands.py", line 75, in \_plugin\_lookup  
import q2cli.core.cache  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/q2cli/core/cache.py", line 400, in   
CACHE = DeploymentCache()  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/q2cli/core/cache.py", line 61, in **init**  
self.\_state = self.\_get\_cached\_state(refresh=refresh)  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/q2cli/core/cache.py", line 107, in \_get\_cached\_state  
self.\_cache\_current\_state(current\_requirements)  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/q2cli/core/cache.py", line 200, in \_cache\_current\_state  
state = self.\_get\_current\_state()  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/q2cli/core/cache.py", line 238, in \_get\_current\_state  
plugin\_manager = qiime2.sdk.PluginManager()  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/qiime2/sdk/plugin\_manager.py", line 44, in **new**  
self.\_init()  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/qiime2/sdk/plugin\_manager.py", line 59, in \_init  
plugin = entry\_point.load()  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/pkg\_resources/ **init**.py", line 2434, in load  
return self.resolve()  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/pkg\_resources/ **init**.py", line 2440, in resolve  
module = **import** (self.module\_name, fromlist=[' **name**'], level=0)  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/q2\_aldex2/plugin\_setup.py", line 5, in   
from q2\_types.feature\_data import FeatureData, Differential  
ImportError: cannot import name 'Differential'

With that, I can not load Qiime2 anymore since I git the same exact error message. I will appreciate if I can get a quick help.  
@dgiguer, do you have an idea regarding this issue?

Thanks again  
Cheers,  
Clothilde

---

<div class="post-metadata">

### Author: ![Nicheca1](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicheca1/32/9287_2.png) [@Nicheca1](https://forum.qiime2.org/u/Nicheca1)
#### Post date: [June 29, 2020, 1:26pm UTC](https://forum.qiime2.org/t/aldex2-troubleshooting-installation/15535/2 "2020-06-29T13:26:09Z")

</div>

Hello,

I just tried to install ALDEx2 package and I encontoured the following issue:

[ QIIME is caching your current deployment for improved performance. This may take a few moments and should only happen once per deployment.  
Traceback (most recent call last):  
File "/home/villot/.conda/envs/qiime2-2019.4/bin/qiime", line 11, in   
sys.exit(qiime())  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/click/core.py", line 764, in **call**  
return self.main(\*args, \*\*kwargs)  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/click/core.py", line 717, in main  
rv = self.invoke(ctx)  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/click/core.py", line 1132, in invoke  
cmd\_name, cmd, args = self.resolve\_command(ctx, args)  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/click/core.py", line 1171, in resolve\_command  
cmd = self.get\_command(ctx, cmd\_name)  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/q2cli/commands.py", line 99, in get\_command  
plugin = self.\_plugin\_lookup[name]  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/q2cli/commands.py", line 75, in \_plugin\_lookup  
import q2cli.core.cache  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/q2cli/core/cache.py", line 400, in   
CACHE = DeploymentCache()  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/q2cli/core/cache.py", line 61, in **init**  
self.\_state = self.\_get\_cached\_state(refresh=refresh)  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/q2cli/core/cache.py", line 107, in \_get\_cached\_state  
self.\_cache\_current\_state(current\_requirements)  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/q2cli/core/cache.py", line 200, in \_cache\_current\_state  
state = self.\_get\_current\_state()  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/q2cli/core/cache.py", line 238, in \_get\_current\_state  
plugin\_manager = qiime2.sdk.PluginManager()  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/qiime2/sdk/plugin\_manager.py", line 44, in **new**  
self.\_init()  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/qiime2/sdk/plugin\_manager.py", line 59, in \_init  
plugin = entry\_point.load()  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/pkg\_resources/ **init**.py", line 2434, in load  
return self.resolve()  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/pkg\_resources/ **init**.py", line 2440, in resolve  
module = **import** (self.module\_name, fromlist=[' **name**'], level=0)  
File "/home/villot/.conda/envs/qiime2-2019.4/lib/python3.6/site-packages/q2\_aldex2/plugin\_setup.py", line 5, in   
from q2\_types.feature\_data import FeatureData, Differential  
ImportError: cannot import name 'Differential' ]

It is a shame since I can not have access to Qiime 2 anymore neither... @dgiguer - do you have an idea what is the issue? I will appreciate your quick help,  
Cheers,  
Clothilde

---

<div class="post-metadata">

### Author: ![ChrisKeefe](https://forum.qiime2.org/user_avatar/forum.qiime2.org/chriskeefe/32/1907_2.png) [@ChrisKeefe](https://forum.qiime2.org/u/ChrisKeefe)
#### Post date: [July 1, 2020, 3:53pm UTC](https://forum.qiime2.org/t/aldex2-troubleshooting-installation/15535/3 "2020-07-01T15:53:28Z")

</div>

@Nicheca1, I'm not sure what is causing your ALDEx2 errors, but you may be able to get (the rest of) QIIME2 up and running again quickly by re-installing with a different name. This is a bit of a hack, but if it keeps you productive, that's what counts.

Is this a native installation within a Conda environment? If so, you can follow the normal [installation process](https://docs.qiime2.org/2020.6/install/), changing the name of the environment in the `conda env create -n qiime2-2020.6 ...` step. (The name here is `qiime2-2020.6`). You can then activate the new environment and carry on with your non-aldex2 work.

I don't have much experience with VMs/containers, but if you're working with QIIME 2 in one of those ways, you may be able to take a similar tactic, creating a second VM image or container to let you keep plugging for now.

Best of luck!  
CK

---

<div class="post-metadata">

### Author: ![fedarko](https://forum.qiime2.org/user_avatar/forum.qiime2.org/fedarko/32/5361_2.png) [@fedarko](https://forum.qiime2.org/u/fedarko)
#### Post date: [July 1, 2020, 9:24pm UTC](https://forum.qiime2.org/t/aldex2-troubleshooting-installation/15535/4 "2020-07-01T21:24:09Z")

</div>

The `FeatureData[Differential]` type (which is used by the q2-ALDEx2 and q2-Songbird community plugins) wasn't integrated into the main QIIME 2 distribution [until](https://github.com/qiime2/q2-types/issues/211) the 2019.7 release. @Nicheca1, if you install a more recent version of QIIME 2 (at least 2019.7) then you should be able to use q2-ALDEx2 with that QIIME 2 version!

**Edit:** Also, I think you may be able to get your existing installation of QIIME 2 working again by uninstalling the q2-ALDEx2 software.
