1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

Tried to install OP plugin Octoprint Anywhere and got this update suggestion

Discussion in 'Troubleshooting' started by SoLongSidekick, Apr 2, 2019.

  1. SoLongSidekick

    SoLongSidekick Active Member

    Joined:
    Mar 6, 2014
    Messages:
    220
    Likes Received:
    68
    It says "You are using pip version 9.0,1, however version 9.0.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command." The plugin does not install correctly and does not appear in the plugin list.

    What does that mean? What is "pip"? Is this something I can do via the OP interface or do I have to SSH into the Raspberry Pi and do it that way?
     
  2. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,914
    Likes Received:
    7,338
    Bingo! :)

    sudo -H pip install --upgrade pip

    or

    sudo -H pip3 install --upgrade pip

    (can't remember which it is using)
     
  3. SoLongSidekick

    SoLongSidekick Active Member

    Joined:
    Mar 6, 2014
    Messages:
    220
    Likes Received:
    68
    So the pip upgrade went fine, but I'm still getting errors. Here's the full contents of the install window:

    "Installing plugin "OctoPrint Anywhere" from https://github.com/kennethjiang/OctoPrint-Anywhere/archive/master.zip...
    /home/pi/oprint/bin/python -m pip install https://github.com/kennethjiang/OctoPrint-Anywhere/archive/master.zip
    Collecting https://github.com/kennethjiang/OctoPrint-Anywhere/archive/master.zip
    Downloading https://github.com/kennethjiang/OctoPrint-Anywhere/archive/master.zip
    Requirement already satisfied (use --upgrade to upgrade): OctoPrint-Anywhere==0.9.7 from https://github.com/kennethjiang/OctoPrint-Anywhere/archive/master.zip in /home/pi/oprint/lib/python2.7/site-packages
    Requirement already satisfied: OctoPrint in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: backoff>=1.4.3 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: raven in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: Flask-Login<0.3,>=0.2.2 in /home/pi/oprint/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: Flask-Babel<0.10,>=0.9 in /home/pi/oprint/lib/python2.7/site-packages/Flask_Babel-0.9-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: scandir<1.4,>=1.3 in /home/pi/oprint/lib/python2.7/site-packages/scandir-1.3-py2.7-linux-armv7l.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: Flask-Assets<0.11,>=0.10 in /home/pi/oprint/lib/python2.7/site-packages/Flask_Assets-0.10-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: feedparser<5.3,>=5.2.1 in /home/pi/oprint/lib/python2.7/site-packages/feedparser-5.2.1-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: rsa<3.3,>=3.2 in /home/pi/oprint/lib/python2.7/site-packages/rsa-3.2.3-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: PyYAML<3.11,>=3.10 in /home/pi/oprint/lib/python2.7/site-packages/PyYAML-3.10-py2.7-linux-armv7l.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: flask<0.11,>=0.9 in /home/pi/oprint/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: tornado==4.0.2 in /home/pi/oprint/lib/python2.7/site-packages/tornado-4.0.2-py2.7-linux-armv7l.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: sarge<0.2,>=0.1.4 in /home/pi/oprint/lib/python2.7/site-packages/sarge-0.1.4-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: pkginfo<1.3,>=1.2.1 in /home/pi/oprint/lib/python2.7/site-packages/pkginfo-1.2.1-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: netifaces<0.11,>=0.10 in /home/pi/oprint/lib/python2.7/site-packages/netifaces-0.10.6-py2.7-linux-armv7l.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: Jinja2<2.9,>=2.8 in /home/pi/oprint/lib/python2.7/site-packages/Jinja2-2.8.1-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: chainmap<1.1,>=1.0.2 in /home/pi/oprint/lib/python2.7/site-packages/chainmap-1.0.2-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: sockjs-tornado<1.1,>=1.0.2 in /home/pi/oprint/lib/python2.7/site-packages/sockjs_tornado-1.0.3-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: future<0.16,>=0.15 in /home/pi/oprint/lib/python2.7/site-packages/future-0.15.2-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: psutil<3.3,>=3.2.1 in /home/pi/oprint/lib/python2.7/site-packages/psutil-3.2.2-py2.7-linux-armv7l.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: pyserial<2.8,>=2.7 in /home/pi/oprint/lib/python2.7/site-packages/pyserial-2.7-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: werkzeug<0.9,>=0.8.3 in /home/pi/oprint/lib/python2.7/site-packages/Werkzeug-0.8.3-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: Flask-Principal<0.4,>=0.3.5 in /home/pi/oprint/lib/python2.7/site-packages/Flask_Principal-0.3.5-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: watchdog<0.9,>=0.8.3 in /home/pi/oprint/lib/python2.7/site-packages/watchdog-0.8.3-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: Click<6.3,>=6.2 in /home/pi/oprint/lib/python2.7/site-packages/click-6.2-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: pylru<1.1,>=1.0.9 in /home/pi/oprint/lib/python2.7/site-packages/pylru-1.0.9-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: netaddr<0.8,>=0.7.17 in /home/pi/oprint/lib/python2.7/site-packages/netaddr-0.7.19-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: requests<2.8,>=2.7 in /home/pi/oprint/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: markdown<2.7,>=2.6.4 in /home/pi/oprint/lib/python2.7/site-packages/Markdown-2.6.11-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: awesome-slugify<1.7,>=1.6.5 in /home/pi/oprint/lib/python2.7/site-packages/awesome_slugify-1.6.5-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: semantic-version<2.5,>=2.4.2 in /home/pi/oprint/lib/python2.7/site-packages/semantic_version-2.4.2-py2.7.egg (from OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: contextlib2; python_version < "3.2" in /home/pi/oprint/lib/python2.7/site-packages (from raven->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: Babel>=1.0 in /home/pi/oprint/lib/python2.7/site-packages/Babel-2.5.3-py2.7.egg (from Flask-Babel<0.10,>=0.9->OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: speaklater>=1.2 in /home/pi/oprint/lib/python2.7/site-packages/speaklater-1.3-py2.7.egg (from Flask-Babel<0.10,>=0.9->OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: webassets>=0.10 in /home/pi/oprint/lib/python2.7/site-packages/webassets-0.12.1-py2.7.egg (from Flask-Assets<0.11,>=0.10->OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: pyasn1>=0.1.3 in /home/pi/oprint/lib/python2.7/site-packages/pyasn1-0.4.2-py2.7.egg (from rsa<3.3,>=3.2->OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: itsdangerous>=0.21 in /home/pi/oprint/lib/python2.7/site-packages/itsdangerous-0.24-py2.7.egg (from flask<0.11,>=0.9->OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: certifi in /home/pi/oprint/lib/python2.7/site-packages/certifi-2018.1.18-py2.7.egg (from tornado==4.0.2->OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: backports.ssl_match_hostname in /home/pi/oprint/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1-py2.7.egg (from tornado==4.0.2->OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: MarkupSafe in /home/pi/oprint/lib/python2.7/site-packages/MarkupSafe-1.0-py2.7-linux-armv7l.egg (from Jinja2<2.9,>=2.8->OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: blinker in /home/pi/oprint/lib/python2.7/site-packages/blinker-1.4-py2.7.egg (from Flask-Principal<0.4,>=0.3.5->OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: argh>=0.24.1 in /home/pi/oprint/lib/python2.7/site-packages/argh-0.26.2-py2.7.egg (from watchdog<0.9,>=0.8.3->OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: pathtools>=0.1.1 in /home/pi/oprint/lib/python2.7/site-packages/pathtools-0.1.2-py2.7.egg (from watchdog<0.9,>=0.8.3->OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: regex in /home/pi/oprint/lib/python2.7/site-packages/regex-2018.2.21-py2.7-linux-armv7l.egg (from awesome-slugify<1.7,>=1.6.5->OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: Unidecode<0.05,>=0.04.14 in /home/pi/oprint/lib/python2.7/site-packages/Unidecode-0.4.21-py2.7.egg (from awesome-slugify<1.7,>=1.6.5->OctoPrint->OctoPrint-Anywhere==0.9.7)
    Requirement already satisfied: pytz>=0a in /home/pi/oprint/lib/python2.7/site-packages/pytz-2018.3-py2.7.egg (from Babel>=1.0->Flask-Babel<0.10,>=0.9->OctoPrint->OctoPrint-Anywhere==0.9.7)
    You are using pip version 9.0.1, however version 19.0.3 is available.
    You should consider upgrading via the 'pip install --upgrade pip' command.
    Done!"

    How in the hell does it still think I have pip 9.0.1? There's also an error popup in the top right of the page, it says:

    "Installing the plugin from URL "unknown" failed: Could not parse output from pip."

    Did Robo obnoxiously lock the pip version or something?
     
  4. tkoco

    tkoco - -.- --- -.-. ---
    Staff Member

    Joined:
    May 7, 2018
    Messages:
    721
    Likes Received:
    273
    pip - Python Installing Program, it's a python thing and you should upgrade "pip" before attempting to install the OctoPrint plugin.

    Try this command to get pip to print its version number: pip -V (or for python3: pip3 -V)
     
  5. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    Because all you did with @mark tomlinson's command was upgrade the global PIP. He forgot that Octopi (the basis for RoboOS) is in a virtual environment, you actually need to be in that venv to upgrade the version of PIP Robo uses.

    from SSH issue the following commands
    Code:
    cd ~
    sudo apt-get update
    cd Octoprint
    virtualenv venv
    sudo pip install pip --upgrade
     
    #5 WheresWaldo, Apr 3, 2019
    Last edited: Apr 3, 2019
    mark tomlinson and Geof like this.
  6. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,914
    Likes Received:
    7,338
    No, SSH into the Pi itself as above worked fine for me :) I did not need to use virtual env (in fact I am unconvinced that it is being used on mine -- which is an older version of RoboOS)

    Good catch though as I was unaware that there were any RoboOS versions using this.
     
  7. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    By the way, Robo's version of OctoPrint still using Python 2.x so PIP3 isn't being used. Matter of fact, it still uses Raspian "Jessie" and not the newer "Stretch" with no way to update without breaking it.
     
    #7 WheresWaldo, Apr 3, 2019
    Last edited: Apr 3, 2019
    mark tomlinson likes this.
  8. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    Actually my instructions don't work either, there is no error message but you get a message that it won't be installed because the pip package is owned by the OS
     
  9. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    Ugh, I hate RoboOS so much now.
     
    mark tomlinson likes this.
  10. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    I think Robo used the subdirectory ~/oprint not the more normal ~/OctoPrint for their instance. the whole image is just fubarred. I remember asking them to clean the image up, but Robo simply doesn't care about the software side, even though that is exactly the side we as consumers interact with.
     
  11. tkoco

    tkoco - -.- --- -.-. ---
    Staff Member

    Joined:
    May 7, 2018
    Messages:
    721
    Likes Received:
    273
    I was intrigued by the problem as stated by @SoLongSidekick . So I investigated the issue and have an answer.

    The blockage of an update appears to be due to a Debian patch to the software. The work-around for a global update of pip is the following:

    ssh into the RPi (ssh pi@<ip address - obtained at the utilities / network / network status screen>)

    At the prompt, enter these commands:

    sudo apt-get remove python-pip

    sudo easy_install -U pip (Note: this command can take some time as it searches for the latest version of pip)


    And then pip -V to verify the upgrade

    And a note to @WheresWaldo: A good catch with the virtual environment. However, When I updated the global version of pip prior to invoking the virtualenv command, the pip was already updated in the virtual environment.
     
    #11 tkoco, Apr 3, 2019
    Last edited: Apr 3, 2019
    mark tomlinson likes this.
  12. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,914
    Likes Received:
    7,338
    and it is entirely likely that I did that in passing at some point. Awesome catch.
     
  13. SoLongSidekick

    SoLongSidekick Active Member

    Joined:
    Mar 6, 2014
    Messages:
    220
    Likes Received:
    68
    Dude, thank you so much. In all my maker works with Arduino, web development, etc. my one huge regret is never really familiarizing myself or working with Linux and the Raspberry Pi. Even more so now that they're used as the defacto connection device for printers.
     
  14. SoLongSidekick

    SoLongSidekick Active Member

    Joined:
    Mar 6, 2014
    Messages:
    220
    Likes Received:
    68
    No luck; pip upgrade seemed to go perfectly (attached the log just in case I missed something) and power cycled the machine just to be sure. Tried to install Octoprint Anywhere and got the exact same error messages, including the one saying I'm still on 9.0.1. How in the hell could it think I'm still on 9.0.1??
     

    Attached Files:

    • cmd.png
      cmd.png
      File size:
      94.1 KB
      Views:
      5
  15. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    I still think it has to do with the virtual environment and not having it activated, but I can't say for sure.
     
    mark tomlinson likes this.
  16. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,914
    Likes Received:
    7,338
  17. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    I think my instructions forgot this line
    Code:
    source ~/oprint/bin/activate
     
    mark tomlinson likes this.
  18. SoLongSidekick

    SoLongSidekick Active Member

    Joined:
    Mar 6, 2014
    Messages:
    220
    Likes Received:
    68
    Can I just SSH in now and enter just that command? Or does it have to be placed somewhere in the middle of the previous set of instructions?
     
  19. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,914
    Likes Received:
    7,338
    You should be able to do it now if you want. Use the approach I linked to:

    source ~/oprint/bin/activate
    pip install --upgrade pip


    That should handle it.
     
  20. SoLongSidekick

    SoLongSidekick Active Member

    Joined:
    Mar 6, 2014
    Messages:
    220
    Likes Received:
    68
    I've already installed pip, and confirmed it (I attached the SSH log a couple posts up showing it). That's why I'm so confused.
     

Share This Page