dwc2-for-klipper-socket
dwc2-for-klipper-socket copied to clipboard
Failed to get file list can't detect virtual sd card.
I get the following in /tmp/dwc2.log
========== Started ========== ERROR:tornado.application:Exception in callback functools.partial(<bound method IOLoop._discard_future_result of <tornado.platform.asyncio.AsyncIOMainLoop ob ject at 0x760711f0>>, <Task finished coro=<read_stream() done, defined at /home/pi/dwc2-for-klipper-socket/web_dwc2.py:174> exception=TypeError("the JSON obj ect must be str, not 'bytes'",)>) Traceback (most recent call last): File "/home/pi/dwc-env/lib/python3.5/site-packages/tornado/ioloop.py", line 743, in _run_callback ret = callback() File "/home/pi/dwc-env/lib/python3.5/site-packages/tornado/ioloop.py", line 767, in _discard_future_result future.result() File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result raise self._exception File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step result = coro.send(None) File "/home/pi/dwc2-for-klipper-socket/web_dwc2.py", line 181, in read_stream out_ = json.loads(data[:-1]) File "/usr/lib/python3.5/json/__init__.py", line 312, in loads s.__class__.__name__)) TypeError: the JSON object must be str, not 'bytes'
By doing what?
When launching DWC. The web interface hangs with the "failed to get file list" and "can't detect virtual sd card" messages
show us your klippy.log and dwc.log . we cant "guess"
Hello Same issue for me Klipper and dcw are launched by systemd
Added -a /tmp/klippy_uds in klipper.service
Added in config: (is that correct ?) [virtual_sdcard] path = /home/pi/sdcard
Klipper run well with octoprint (octopi distrib)
Hello Same issue for me Klipper and dcw are launched by systemd
Added -a /tmp/klippy_uds in klipper.service
Added in config: (is that correct ?) [virtual_sdcard] path = /home/pi/sdcard
Klipper run well with octoprint (octopi distrib)
looks correct to me. I il ltry your configuration locally.
Hey, maybe the original commenter didn't realise you have to setup the virtual sd card in klipper config not in dwc.cfg.
Had the same problem and adding this in klipper sorted it completely:
[virtual_sdcard]
path: /home/pi/sdcard/