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

[BUG] Internal error during connect: cannot import name signature #1373

Closed
h3rm opened this issue May 24, 2024 · 2 comments
Closed

[BUG] Internal error during connect: cannot import name signature #1373

h3rm opened this issue May 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@h3rm
Copy link

h3rm commented May 24, 2024

maybe you can close the ticket. is has something to do with klipper_tmc_autotune so i opened a ticket there:
https://github.com/andrewmcgr/klipper_tmc_autotune

What happened?

after todays update i get the error:
https://imgur.com/cBKVtbn

What did you expect to happen instead?

normal start

How to reproduce this bug?

update alle components via web interface

Additional information:

No response

Log output

klippy.log
Unhandled exception during connect
Traceback (most recent call last):
File "/home/pi/klipper/klippy/klippy.py", line 175, in _connect
self._read_config()
File "/home/pi/klipper/klippy/klippy.py", line 141, in _read_config
self.load_object(config, section_config.get_name(), None)
File "/home/pi/klipper/klippy/klippy.py", line 121, in load_object
mod = importlib.import_module('extras.' + module_name)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/home/pi/klipper/klippy/extras/autotune_tmc.py", line 3, in
from inspect import signature
ImportError: cannot import name signature
webhooks client 4119131600: New connection
webhooks client 4119131600: Client info {'program': 'Moonraker', 'version': 'v0.8.0-359-g73df63d'}

moonraker.log:

2024-05-24 04:27:00,144 [websockets.py:_handle_identify()] - Websocket 3906048952 Client Identified - Name: KlipperScreen, Version: v0.4.0-18-g0607666, Type: display
2024-05-24 04:27:00,193 [application.py:log_request()] - 404 GET /printer/info (127.0.0.1) [TRUSTED_USER] 8.91ms
2024-05-24 04:27:00,315 [server.py:add_log_rollover_item()] - Klipper Version: v0.12.0-205-gb6a00632-dirty
2024-05-24 04:27:00,343 [klippy_connection.py:_request_initial_subscriptions()] - Webhooks Subscribed
2024-05-24 04:27:00,347 [klippy_connection.py:_request_initial_subscriptions()] - GCode Output Subscribed
2024-05-24 04:27:00,350 [klippy_connection.py:_check_ready()] -
Internal error during connect: cannot import name signature

Once the underlying issue is corrected, use the "RESTART"
command to reload the config and restart the host software.
Printer is halted

2024-05-24 04:27:14,909 [authorization.py:_check_trusted_connection()] - Trusted Connection Detected, IP: 192.168.0.100
2024-05-24 04:27:14,912 [application.py:log_request()] - 101 GET /websocket (192.168.0.100) [TRUSTED_USER] 4.77ms
2024-05-24 04:27:14,913 [websockets.py:open()] - Websocket Opened: ID: 3886858616, Proxied: True, User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0, Host Name: 192.168.0.73
2024-05-24 04:27:14,945 [websockets.py:_handle_identify()] - Websocket 3886858616 Client Identified - Name: mainsail, Version: 2.11.2, Type: web
2024-05-24 04:27:16,237 [application.py:log_request()] - 404 GET /server/files/config/.theme/maintenance.json?time=1716517635403 (192.168.0.100) [TRUSTED_USER] 9.91ms
2024-05-24 04:27:24,291 [machine.py:_find_public_ip()] - Detected Local IP: 192.168.0.73
2024-05-24 04:27:24,293 [webcam.py:_set_default_host_ip()] - Default public webcam address set: http://192.168.0.X

moonraker.log
klippy.log

@h3rm h3rm added the bug Something isn't working label May 24, 2024
@alfrix
Copy link
Member

alfrix commented May 24, 2024

this is not related to the KlipperScreen interface closing

it seems that it has been caused by your extension/plugin not being compatible with python 2.7, i suggest installing klipper with python 3.x

@alfrix alfrix closed this as completed May 24, 2024
@h3rm
Copy link
Author

h3rm commented May 24, 2024

Maybe andrewmcgr/klipper_tmc_autotune#174 (comment) .. sry and thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants