-
Notifications
You must be signed in to change notification settings - Fork 55
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
LooseVersion' object has no attribute 'version #300
Comments
I encountered this too, which may be related to an error manifested in the bioconda version and/or an unknown "feature" lurking in the python 3.6 env. My solution was to create a python 3.8.3 env including gcc-4.8.5 (needed for ariba compilation and also includes zlib). Then install the package with pip3 install ariba to work as advertised. |
Great, it works. Thank you so much |
when I run ariba test output I got the following error, even the files are there. Should I specify the path? The following reads file(s) were not found: Something went wrong. See above for error message(s). Return code was 1 |
Paths are self-contained within the test and do not require specification. Nevertheless, try running ariba test output within the ariba directory. It should first prepare the input data:
and then follow with prepareref:
It will also output paths to external dependencies, including python packages. Pay attention to these and ariba will fail if any are absent.
Clearly the test is not completing input data preparation. If you run the test within the ariba folder and still get the error, then this is most likely a conda environment issue. I would recommend starting by updating your conda package and/or starting from a clean environment. |
Hi @mabouelk I'm a bit late to the party but the error ( Here are some related issues: bioconda/bioconda-recipes#22836 I've submitted a PR to Bioconda to pin the Bowtie2 version to <2.4 which should fix things for you. Cheers! |
Any help!
Running ariba prepareref with:
/Users/mohamedabouelkhair/miniconda3/envs/ariba/bin/ariba prepareref --verbose -f ref_seqs.fa -m metadata.tsv --threads 1 PREPAREREF
Traceback (most recent call last):
File "/Users/mohamedabouelkhair/miniconda3/envs/ariba/bin/ariba", line 312, in
args.func(args)
File "/Users/mohamedabouelkhair/miniconda3/envs/ariba/lib/python3.6/site-packages/ariba/tasks/prepareref.py", line 9, in run
extern_progs, version_report_lines = versions.get_all_versions(using_spades=False)
File "/Users/mohamedabouelkhair/miniconda3/envs/ariba/lib/python3.6/site-packages/ariba/versions.py", line 21, in get_all_versions
extern_progs = external_progs.ExternalProgs(fail_on_error=False, using_spades=using_spades)
File "/Users/mohamedabouelkhair/miniconda3/envs/ariba/lib/python3.6/site-packages/ariba/external_progs.py", line 88, in init
if prog in min_versions and LooseVersion(version) < LooseVersion(min_versions[prog]):
File "/Users/mohamedabouelkhair/miniconda3/envs/ariba/lib/python3.6/distutils/version.py", line 52, in lt
c = self._cmp(other)
File "/Users/mohamedabouelkhair/miniconda3/envs/ariba/lib/python3.6/distutils/version.py", line 335, in _cmp
if self.version == other.version:
AttributeError: 'LooseVersion' object has no attribute 'version'
Something went wrong. See above for error message(s). Return code was 1
The text was updated successfully, but these errors were encountered: