Skip to content

'Handler' object has no attribute 'append'#

Error

AttributeError: 'Handler' object has no attribute 'append'

Issue: You're trying to use the append() method with an old version of the Neptune client library (neptune-client).

In versions older than 0.16.14, only log() is available for logging values as a series.

Solution: Upgrade your Neptune client library version:

pip install -U neptune-client
conda update -c conda-forge neptune-client

To determine your currently installed version of Neptune:

pip show neptune-client
conda list | grep neptune

Workaround: If you don't want to upgrade your Neptune client, you can still use log() instead of append():

run = neptune.init_run()

for epoch in range(100):
    ...  # My training loop

    run["train/epoch/loss"].log(loss)
    run["train/epoch/accuracy"].log(acc)

Tip

To help locate the problem in your code, try initializing Neptune in synchronous mode:

run = neptune.init_run(
    mode="sync",
)

Getting help