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.

Upgrading with neptune-client already installed

Important: To smoothly upgrade to the 1.0 version of the Neptune client library, first uninstall the neptune-client library and then install neptune.

Step 1
pip uninstall neptune-client
Step 2
pip install neptune

If you want to keep using the neptune-client package as opposed to switching to neptune, you can upgrade with:

pip install -U neptune-client

Workaround: If you don't want to upgrade your Neptune client library, 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