phglab / ALFATClust

Biological sequence clustering tool with dynamic threshold
GNU General Public License v3.0
23 stars 6 forks source link

Typo causing error in Utils.py #11

Open Jamiree opened 10 months ago

Jamiree commented 10 months ago

On line 4 it says

from .Constants import *

which gives the following error when running filter_seqs.py

Traceback (most recent call last):
  File "./filter_seqs.py", line 8, in <module>
    from Utils import SEQ_TYPE_MATCH, SEQ_TYPE_MISMATCH, SEQ_TYPE_LOW_QUAL, check_seq_len, infer_seq_type, match_seq_type
  File "/Users/jamireeharrison/Desktop/ALFATClust-main/main/utils/../modules/Utils.py", line 4, in <module>
    from .Constants import *
ImportError: attempted relative import with no known parent package

Removing the . on line 4 of Utils.py fixes the issue. i.e.

from Constants import *