Closed Scottbg1 closed 5 years ago
You have a path Problem. Where ever you try to link the py file it’s wrong
This is the path, per your install instructions:
ln -s ~/dwc2-for-klipper/web_dwc2.py ~/klipper/klippy/extras/web_dwc2.py
You are brave enough for arch then please check where your Klipper Installation is, where you cloned dwc and what this ln does...
From what I understand about Arch, Klipper is located in the /opt directory. I cloned DWC to the user directory. And I know that ln creates a dynamic link.
So with that in mind, I removed web_dwc2.py from ~/klipper/klippy/extras/.
Then-
ln -s ~/dwc2-for-klipper/web_dwc2.py /opt/klipper/klippy/extras/web_dwc2.py
I confirmed that web_dwc2.py is now located in /opt/klipper/klippy/extras/web_dwc2.py. I restarted Klipper but I still get the same error.
I got to think about the config sections for dwc in the Klipper.cfg file and how the paths were laid out.
[virtual_sdcard]
path: /home/scott/sdcard
[web_dwc2]
# optional defaulting to dwc2/web. Its a folder relative to your virtual sdcard.
web_path: dwc2/web
The virtual sdcard path compared to the web_dwc2 web path should be relative since the 'dwc2' and 'web' directories are located in '/home/scott/sdcard', not to mention the telltale description in the web_dwc2 config section.
So I moved the web_dwc2.py from the dwc2-for-klipper folder to the sdcard folder and ran:
ln -s ~/sdcard/web_dwc2.py /opt/klipper/klippy/extras/web_dwc2.py
Still the same error message.
I'm at a loss.
I finally found some help on another site and a guy named Wilriker assisted me with getting it going.
It seemed to be a permissions problem with the sym-link between the 2 web_dwc2.py
files that we couldn't get sorted out.
He suggested putting the dwc2-for-klipper
directory in the /opt
directory along with the klipper
directory and it works perfectly now. He even went as far as writing an install script for the DWC bits that I plan to use to create a PKGBUILD
similar to the install script for Raspbian to help other people out that might be having issues getting it to work.
Stephan, I started an issue thread on the Klipper hub about my problem as I thought my issue might have been with Klipper alone. But now I am not sure.
I am trying to install Klipper with DWC onto an RPi running Arch. I have it running successfully on Raspbian after following your instructions but after repeating the same steps more times than I can count on Arch I am running into errors. I think Klipper is running properly but only assume that it is if I completely remove the [dwc2_web] section from my .cfg. It's only then that Klipper begins communicating with the printer. If I re-enable that section, I get
Section dwc2_web is not a valid config section
and communication is lost. And it goes without saying I have yet to be able to connect to the DWC UI. Thanks for your attention to this.EDIT- I thought it was of note to mention this is with Octoprint NOT installed.