Closed slhogle closed 4 years ago
Same error here. CompareM v. 0.0.23, macOS 10.13.3
Same here on CentOS!
Same error on Ubuntu 16.04.2 LTS with CompareM v. 0.0.23
As @johanneswerner Same error on Ubuntu 16.04.2 LTS with CompareM v. 0.0.23
Below is the function from the file kmer_usage.py
def _consumer(self, produced_data, consumer_data):
"""Consume results from producer processes.
Parameters
----------
produced_data : list -> [genome_id, kmer_usage]
Unique id of a genome followed by a dictionary
indicating its kmer usage.
consumer_data : namedtuple
Set of kmers observed across all genomes (kmer_set),
along with the kmer usage of each genome (genome_kmer_usage).
Returns
-------
consumer_data
The consumer data structure or None must be returned
"""
if consumer_data == None:
# setup data to be returned by consumer
ConsumerData = namedtuple('ConsumerData', 'kmer_set genome_kmer_usage')
consumer_data = ConsumerData(set(), dict())
genome_id, kmer_usage = produced_data
consumer_data.kmer_set.update(kmer_usage.keys()) # <- here it fails
consumer_data.genome_kmer_usage[genome_id] = kmer_usage
return consumer_data
I understand why it fails but how could this have worked in the first place? lists have per definition no key attribute.
Hello. kmer_usage is suppose to be a dictionary based on my own documentation. :)
Is there an actual bug here (i.e., produced_data) is not in the expected format?
I would assume so because several people had the same problem. I can provide example data if that would be helpful.
Same problem here. Has someone found the reason for this ?
Addressed in forthcoming Py3 release.
Controlled exit resulting from an unrecoverable error or warning.
mdumar@Mds-MacBook-Pro AAI MATRIX % cd /Users/mdumar/Desktop/Z_AAI
mdumar@Mds-MacBook-Pro Z_AAI % /Users/mdumar/Desktop/Z_AAI/CompareM-0.1.2/bin/comparem aai_wf KOSTASAAI --file_ext fasta aai_output1
[2021-02-25 00:50:04] INFO: CompareM v0.1.2
[2021-02-25 00:50:04] INFO: comparem aai_wf KOSTASAAI --file_ext fasta aai_output1
[2021-02-25 00:50:04] INFO: Identifying genes within genomes:
Traceback (most recent call last):0%) genomes.
File "
getting these kind of error, please help, it was working fine but then after uninstalling conda environment I got this error, after that even with conda environment it doesent works
I am using macos
Hi,
I'm getting an exceptions.AttributeError when using
comparem kmer_usage
. The same error occurs when supplying a genome list text file or a directory. However,aa_usage
,codon_usage
,stop_usage
,lgt_di
, andlgt_codon
all work without error.thanks in advance for any help, shane
CompareM v0.0.23 RedHat Linux CentOS release 6.8 (Final)