Open fedarko opened 3 years ago
This sounds like a python package installation issue. If you are able to reproduce the issue, are you able to import the Emperor
object and confirm that it is missing the necessary attributes? In that case would you be able to run:
import emperor
print(emperor.__file__, emperor.__version__)
Eesh - I tried with few old Q2 environments (plus a freshly installed Q2 2021.2 environment) and haven't been able to reproduce the problem yet (installing Empress automatically installed the right Emperor version, and I've been able to generate Empire plots without a problem)... now I'm wishing I hadn't fixed this for myself!
If I run into this problem again I'll make sure to run the debug code you listed above and report back.
While I was running Empress to generate an Empire plot (just using the normal moving pictures data), I kept getting this error:
This was within a QIIME 2 2021.2 conda environment, with
emperor
1.0.2 installed. I was pretty confused, since v1.0.2 should haverender_base_dependencies
installed. (For reference, this error was also documented on the Q2 forums a few months back here.) However, I was running this within a conda environment I'd been using for quite some time; I'm pretty sure this Q2 environment worked fine with Empress/Emperor for a while. Maybe something I installed messed things up...?Installing
emperor
1.0.3 fixed the problem, strangely (now I can generate Empire plots without a problem). Even more strangely, installingemperor
1.0.2 again (replacing v1.0.3 with v1.0.2) still fixed the problem?I'm not sure of the cause of this error, but I wanted to document it. There might be some sort of weird inconsistency issue that pops up in QIIME 2 environments when certain things go wrong; it seems like reinstalling Emperor >= 1.0.2 consistently fixes the problem. If other folks start running into this error, we could investigate further.