Skip to content

2.0.0rc1 Bambu A1: module 'paho.mqtt.client' has no attribute 'CallbackAPIVersion' #8

@St-Aris

Description

@St-Aris

The problem

Installed 2.0.0rc1
Installed Bambu A1 0.0.1 connector
Get error when attempted to connect:

Queue:
State: Offline after error
module 'paho.mqtt.client' has no attribute 'CallbackAPIVersion'

Did the issue persist even in safe mode?

I cannot test this issue in safe mode (state why below)

If you could not test in safe mode, please state why ("currently printing" is NOT an excuse!)

Irrelevant

Version of OctoPrint

2.0.0rc1

Operating system running OctoPrint

OctoPi

Browser and version of browser, operating system running browser

Firefox - macos

Printer model & used firmware incl. version

Bambu A1 1.03.30.01 (not the latest!)

Systeminfo Bundle

octoprint-systeminfo-20260428153300.zip1

Checklist of files to include below

  • Contents of the JavaScript browser console (always include in cases of issues with the user interface)
  • Screenshots and/or videos showing the problem (always include in case of issues with the user interface)
  • GCODE file with which to reproduce (always include in case of issues with GCODE analysis or printing behaviour)

Additional information & file uploads

Did a quick search:

The error "module 'paho.mqtt.client' has no attribute 'CallbackAPIVersion'" occurs when your code tries to access CallbackAPIVersion (typically in a line like mqtt.Client(mqtt.CallbackAPIVersion.VERSION1)), but the installed paho-mqtt library version doesn't export it from that module.

Footnotes

  1. octoprint-systeminfo-20260428153300.zip (bundleviewer) (download)
    OctoPrint: 2.0.0rc1
    Python: 3.11.2
    OS: Linux-6.12.25+rpt-rpi-v7-armv7l-with-glibc2.36
    RPi: Raspberry Pi 2 Model B Rev 1.1
    OctoPi: 1.1.0 (build 2025.05.13.134411)
    Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:150.0) Gecko/20100101 Firefox/150.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions