hplip 3.14.10, no python-devel

300

This answer suggests quite a long list of dependencies you have to install before running the script, but I got the same error as you and simply did sudo apt-get install python-dev, then re-ran the script.

It's installed now and I can see my HP OfficeJet Pro 8620 printer.

Share:
300
not here
Author by

not here

Updated on September 18, 2022

Comments

  • not here
    not here almost 2 years

    I am experimenting with tkinter in python.

    At the moment I have created a script which creates a login window which has no function what so ever. I have tried playing around with the def callback(): and command=callback. So I tried making it so that when you press the "Login" button, you can do something (e.g. show loading... and clear text boxes.)

    Here is the code:

    import tkinter
    
    window = tkinter.Tk()
    window.title("Login")
    window.geometry("250x150")
    window.configure(background="#FFFFFF")
    
    label = tkinter.Label(window, text="Please Login to continue:", bg="#FFFFFF", font=("PibotoLt", 16))
    label.pack()
    label = tkinter.Label(window, text="username:", bg="#FFFFFF")
    label.pack()
    entry = tkinter.Entry(window)
    entry.pack()
    label = tkinter.Label(window, text="password:", bg="#FFFFFF")
    label.pack()
    entry = tkinter.Entry(window)
    entry.pack()
    
    def callback():
        button = tkinter.Button(window, text="Login", fg="#FFFFFF", bg="#000000")
        button.pack()
        label = tkinter.Label(window, text="Loading...", bg="#FFFFFF", command=callback)
    
    window.mainloop()
    
    • Richard Holiday
      Richard Holiday over 9 years
      no one has an idea on how to fix the problem
    • Urosh T.
      Urosh T. over 5 years
      So the question is - how to make a button?Also, please format the code with the code markdown
    • stovfl
      stovfl over 5 years
      Move this .Label(..., command=callback to the .Button(..., command=callback and add a ` print('Hello World)'` to your def callback():.
    • not2qubit
      not2qubit over 5 years
      I tried to clarify the code but I'm not 100% I got the indentation right.
  • Almino Melo
    Almino Melo over 7 years
    sudo apt-get install python-dev worked for me on Debian 8.6 64bits