Skip to content

Typo causing error in Utils.py #11

@Jamiree

Description

@Jamiree

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 *

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions