question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'NoneType' object has no attribute 'task'

See original GitHub issue

Hi, when i try to generate translation from trained mode with command:

fairseq-interactive output --path checkpoints/fconv/checkpoint1.pt --beam 5 --cpu --task translation --optimizer sgd

I get error:

AttributeError: 'NoneType' object has no attribute 'task'

I tried this on Ubunu 20.04, Google Colab and i get the same error. I am using the newest version of fairseq

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:14

github_iconTop GitHub Comments

1reaction
stale[bot]commented, May 2, 2022

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!

1reaction
Joshwlkscommented, Nov 11, 2021

I managed to solve this by installing Fairseq via the Github Repo rather than via Pip Install.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: 'NoneType' object has no attribute 'task' #3106
Hi, when i try to generate translation from trained mode with command: fairseq-interactive output --path checkpoints/fconv/checkpoint1.pt ...
Read more >
Why do I get AttributeError: 'NoneType' object has no ...
NoneType means that instead of an instance of whatever Class or Object you think you're working with, you've actually got None .
Read more >
AttributeError: 'NoneType' object has no attribute 'run'
I am getting this error when trying to create an ec2 instance. It does not matter if the instance already exists or not,...
Read more >
AttributeError: 'NoneType' object has no attribute 'values' ...
AttributeError means that there was an Error that had to do with an Attribute request. In general, when you write x.y, y is...
Read more >
AttributeError: 'NoneType' object has no attribute 'dtype'
Attribute errors in Python are generally raised when you try to access or call an attribute that a particular object type doesn't possess....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found