Skip to content

Error: AttributeError: 'NoneType' object has no attribute 'location' #5

Description

@SahandMoslemi

Hi. When I'm trying to run main.py, the following error occurs:

Traceback (most recent call last):
  File "/home/Cache/source/main.py", line 286, in <module>
    main(args)
  File "/home/Cache/source/main.py", line 282, in main
    train()
  File "/home/Cache/source/main.py", line 98, in train
    reader = DatasetReader(args.dataset_path + "path_contexts.csv", args.dataset_path + "paths.csv",
  File "/home/Cache/source/model/dataset_reader_binary.py", line 76, in __init__
    self.load(corpus_path, testFlag)
  File "/home/Cache/source/model/dataset_reader_binary.py", line 104, in load
    if self.last_item.location == "/".join(fileInfo[:-1]):
AttributeError: 'NoneType' object has no attribute 'location'

I would appreciate your help.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions