AttributeError: 'Batch' object has no attribute 'add'

See original GitHub issue

I assume I do sth wrong, but I don’t really know what. This is from an old project of mine, and it used arcade and pyglet, and now I was just trying it out, and I got AttributeError: 'Batch' object has no attribute 'add' while trying to call batch.add, where batch is a class of instance Batch.

I have pyglet 2.0.dev23 installed.

When looking at the code of Batch, I also don’t see any such method add. Although the documentation says there should be such a method.

When searching for this error, I did not find anything.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:22 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
albertzcommented, Oct 30, 2022

linux or windows?

Mac.

0reactions
benmoran56commented, Nov 1, 2022

Closing, since pyglet 2.0 has been released, and all the documentation should line up.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: 'Batch' object has no attribute 'local_var'
I am currently working on doing graph classification on the IMDB-Binary dataset using deep learning and specifically the pytorch geometric ...
Read more >
'Batch' object has no attribute 'alignment' in Loss.py · Issue #211
I am trying training including copy using -copy_attn flag. This error was not coming earlier, however, with the latest commit this is happening....
Read more >
Python AttributeError: 'tuple' object has no attribute
This error occurs when attempting to access the values of a tuple incorrectly. Functions that return multiple variables will output the results in...
Read more >
numpy.ndarray' object has no attribute 'batch' [closed]
The error message simply means that an numpy ndarray object does not have a function called batch. If you want some further help,...
Read more >
attributeerror: 'dataloader' object has no attribute 'shape'
collate_fn (Callable, optional): merges a list of samples to form a mini-batch of Tensor(s). Used when using batched loading from a map-style dataset....
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