-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: metaclass conflict #100
Comments
Having the same issue when installing from conda (mamba): Installing using the yml file works fine though (with mamba): |
Thank You! I would say it worked like a charm, but I had to tinker with DIAMOND to make it work. Illegal instruction I decided to update Diamond with mamba update, which resolved the previous error, bringing up a new one: Segmentation fault So I obliterated DIAMOND with conda remove and reinstalled the previous version 2.1.8 Thanks again! |
Good that you got it working. In my case it installs the diamond as it should from yaml file: |
For me, simply explicitly updating to Python 3.8 in Mamba solved this bug: |
It seems the problem is the diamond 2.0.4 itself. It may be necessary to update to 2.1.8 in the dependencies. I also tried to manually remove and reinstall DIAMOND with version 2.1.8, and it fixed the "DIAMOND failed to generate output" problem. This problem occured not just in the testrun but also in the predict workflow. So, the reinstalling solved the problem. conda version: 23.3.1 |
Next version will update to most recent DIAMOND release and reformat the database to work with that so that will hopefully fix some of these issues. |
Even if I updated diamond to 2.1.8 or 2.1.9, this problem (metaclass conflict) still could not be solved... |
I also had this issue after installing with mamba and was able to fix with the python update suggested here as well as in issue #82 . No need to adjust diamond. I also suggest you update the installation instructions as suggested by #82 (comment) as that is a simple fix that does not need to wait for an updated version or any other changes!
Thank you! |
I had the same issue after using conda for installation, and updating to python=3.8 solved the issue for me as well :) |
Hi,
I'm having the following issue when trying to run checkm2:
$ checkm2 database --download --path ./
Traceback (most recent call last):
File "/anaconda3/miniforge-install/envs/checkm2/bin/checkm2", line 27, in
from checkm2 import predictQuality
File "/anaconda3/miniforge-install/envs/checkm2/lib/python3.6/site-packages/checkm2/predictQuality.py", line 1, in
from checkm2 import modelProcessing
File "/anaconda3/miniforge-install/envs/checkm2/lib/python3.6/site-packages/checkm2/modelProcessing.py", line 17, in
from tensorflow import keras
File "/anaconda3/miniforge-install/envs/checkm2/lib/python3.6/site-packages/tensorflow/init.py", line 41, in
from tensorflow.python.tools import module_util as _module_util
File "/anaconda3/miniforge-install/envs/checkm2/lib/python3.6/site-packages/tensorflow/python/init.py", line 41, in
from tensorflow.python.eager import context
File "/anaconda3/miniforge-install/envs/checkm2/lib/python3.6/site-packages/tensorflow/python/eager/context.py", line 28, in
from absl import logging
File "/anaconda3/miniforge-install/envs/checkm2/lib/python3.6/site-packages/absl/logging/init.py", line 97, in
from absl import flags
File "/anaconda3/miniforge-install/envs/checkm2/lib/python3.6/site-packages/absl/flags/init.py", line 35, in
from absl.flags import _argument_parser
File "/anaconda3/miniforge-install/envs/checkm2/lib/python3.6/site-packages/absl/flags/_argument_parser.py", line 82, in
class ArgumentParser(Generic[_T], metaclass=_ArgumentParserCache):
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
conda version: 23.3.1
mamba version: 1.4.2
Python 3.6.15
The text was updated successfully, but these errors were encountered: