# AttributeError: 'NoneType' object has no attribute 'group' running shortbred\_quantify.py

**URL:** <https://forum.biobakery.org/t/attributeerror-nonetype-object-has-no-attribute-group-running-shortbred-quantify-py/4646>\
**Category:** ShortBRED\
**Created:** [January 14, 2023, 12:58am UTC](https://forum.biobakery.org/t/attributeerror-nonetype-object-has-no-attribute-group-running-shortbred-quantify-py/4646 "2023-01-14T00:58:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgodoy](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/tgodoy/32/1887_2.png) [@tgodoy](https://forum.biobakery.org/u/tgodoy)\
**Post date:** [January 14, 2023, 12:58am UTC](https://forum.biobakery.org/t/attributeerror-nonetype-object-has-no-attribute-group-running-shortbred-quantify-py/4646/1 "2023-01-14T00:58:11Z")

</div>

Hi, I am running shortbred\_quantify.py v0.9.5 in a WGS file and I get the following error:

Tested usearch. Appears to be working.  
Treating input as a wgs file…  
Traceback (most recent call last):  
File “/usr/local/miniconda3/envs/shortbred/bin/shortbred\_quantify.py”, line 296, in   
strID = mtchFam.group(1)  
AttributeError: ‘NoneType’ object has no attribute ‘group’

The log from the temporary file is the following  
ShortBRED log  
Sat Jan 14 00:00:00 2023  
SEARCH PARAMETERS  
Match ID:0.95  
Pct Length for Match:0.95  
Sequences: Markers

Here is the command line: shortbred\_quantify.py --markers …/markers/mytestmarkers.faa --tmp tmp\_quantify --wgs G1\_2663\_megahit\_final.genes.fasta --results G1\_2663\_results.txt --usearch /usr/local/miniconda3/envs/shortbred/bin/usearch --threads 8

I don’t know what the error means. Please could you help me?  
Thanks in advance,

Dra. Ernestina Godoy  
CISEI-INSP  
Cuernavaca, México

---

<div class="post-metadata">

**Author:** ![azk0151](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@azk0151](https://forum.biobakery.org/u/azk0151)\
**Post date:** [February 15, 2023, 4:35am UTC](https://forum.biobakery.org/t/attributeerror-nonetype-object-has-no-attribute-group-running-shortbred-quantify-py/4646/2 "2023-02-15T04:35:27Z")

</div>

Hi Ernestina,

I have encountered the same error. Are you able to resolve this error?  
Can you please help me in this?

Thanks in advance.

Amanpreet

---

<div class="post-metadata">

**Author:** ![smh](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@smh](https://forum.biobakery.org/u/smh)\
**Post date:** [March 7, 2023, 5:35pm UTC](https://forum.biobakery.org/t/attributeerror-nonetype-object-has-no-attribute-group-running-shortbred-quantify-py/4646/3 "2023-03-07T17:35:59Z")

</div>

Having the same issue. Any updates?

Thanks,  
Sarah

---

<div class="post-metadata">

**Author:** ![tgodoy](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/tgodoy/32/1887_2.png) [@tgodoy](https://forum.biobakery.org/u/tgodoy)\
**Post date:** [March 21, 2023, 6:15pm UTC](https://forum.biobakery.org/t/attributeerror-nonetype-object-has-no-attribute-group-running-shortbred-quantify-py/4646/4 "2023-03-21T18:15:16Z")

</div>

Hi,  
No, I’m not. Sorry. I uninstalled and reinstalled it but still got the same problem.
