Skip to content

Starter Notebook -- AttributeError: module 'heapq' has no attribute '_heappushpop_max'  #166

@RuanJohn

Description

@RuanJohn

The Reverse Training Starter Notebook runs fine up to 4000 episodes and then gives the following error:

Traceback (most recent call last): File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/content/joeynmt/joeynmt/__main__.py", line 48, in <module> main() File "/content/joeynmt/joeynmt/__main__.py", line 35, in main train(cfg_file=args.config_path, skip_test=args.skip_test) File "/content/joeynmt/joeynmt/training.py", line 843, in train trainer.train_and_validate(train_data=train_data, valid_data=dev_data) File "/content/joeynmt/joeynmt/training.py", line 494, in train_and_validate valid_duration = self._validate(valid_data, epoch_no) File "/content/joeynmt/joeynmt/training.py", line 626, in _validate self._save_checkpoint(new_best, ckpt_score) File "/content/joeynmt/joeynmt/training.py", line 283, in _save_checkpoint to_delete = heapq._heappushpop_max(self.ckpt_queue, AttributeError: module 'heapq' has no attribute '_heappushpop_max'

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