Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in do_auto_connect #11

Open
davidsielert opened this issue Dec 29, 2018 · 1 comment
Open

Exception in do_auto_connect #11

davidsielert opened this issue Dec 29, 2018 · 1 comment

Comments

@davidsielert
Copy link

2018-12-29 00:38:31,198 - octoprint.plugins.portlister - INFO - on_port_created connection_options {'portPreference': '/dev/ttyUSB0', 'autoconnect': True, 'baudrates': [250000, 230400, 115200, 57600, 38400, 19200, 9600], 'ports': ['/dev/ttyUSB0'], 'baudratePreference': None}
2018-12-29 00:38:31,200 - octoprint.plugins.portlister - INFO - Checking if /dev/ttyUSB0 is in ['/dev/ttyUSB0']
2018-12-29 00:38:31,208 - octoprint.plugins.portlister - INFO - autoconnect_delay 20
2018-12-29 00:38:51,215 - octoprint.plugins.portlister - INFO - do_auto_connect
2018-12-29 00:38:51,217 - octoprint.plugins.portlister - INFO - realpath match
2018-12-29 00:38:51,300 - octoprint.plugins.portlister - ERROR - Exception in do_auto_connect TypeError: '%d format: a number is required, not NoneType' @ __init__.py:do_auto_connect:71
@FisheyLP
Copy link

FisheyLP commented Feb 18, 2019

I'm also getting this error in the version 0.1.8
According to the OctoPrint documentation, the baudrate value isn't saved in the config.yaml by default, if set to AUTO:

# Use the following option to define the default baudrate, defaults to unset (= AUTO)
baudrate: 115200

So the plugin will try to get that setting, but actually receives a None, which can't be formatted as a number, nor be connected to.

A possible "fix" is to select the proper baudrate from the connection panel and saving that (tick the checkbox) or setting the baudrate value to 0 in the config manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants