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. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Then the upgrade will not "do" anything so it will not hurt :)
    If (for whatever reason) it needs to upgrade further. it will
     
  2. SoLongSidekick

    SoLongSidekick Active Member

    Joined:
    Mar 6, 2014
    Messages:
    220
    Likes Received:
    68
    Wait, do I need to activate oprint BEFORE/AS I'm upgrading pip? That could be why it's still not working.
     
    mark tomlinson likes this.
  3. WheresWaldo

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

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    Yes, OctoPrint is in what's called a Virtual Environment, a sandbox so to speak, set apart from the rest of the system. So it uses its own copies of the python support files rather than the system wide copies.
     
  4. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    If it need an update you might see something like this:

    pi@pidesktop:~ $ pip install --upgrade pip
    Collecting pip
    Downloading https://files.pythonhosted.org/pack...85d51125dceff/pip-19.0.3-py2.py3-none-any.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 91kB/s
    Installing collected packages: pip
    Successfully installed pip-19.0.3
    pi@pidesktop:~ $


    and if not it will do nothing
     
  5. tkoco

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

    Joined:
    May 7, 2018
    Messages:
    721
    Likes Received:
    273
    The suggestion was for a global update which might or might not have gone into the virtual environment.

    The image which you attached shows that the global 'pip' was correctly updated. Now try these set of commands (after ssh into the RPi):

    From the post by @WheresWaldo:

    cd Octoprint

    virtualenv venv
    (might take a bit of time to complete)

    pip -V

    Please report what version is displayed while in the Octoprint environment.

     
  6. SoLongSidekick

    SoLongSidekick Active Member

    Joined:
    Mar 6, 2014
    Messages:
    220
    Likes Received:
    68
    Using username "pi".
    pi@warm-bergerac.local's password:
    Please Change your password if you have not already.
    Edit /etc/motd to get rid of this reminder.
    ____ _ ___ ____
    | _ \ ___ | |__ ___ / _ \/ ___|
    | |_) / _ \| '_ \ / _ \| | | \___ \
    | _ < (_) | |_) | (_) | |_| |___) |
    |_| \_\___/|_.__/ \___/ \___/|____/


    Last login: Wed Apr 3 23:03:06 2019 from 192.168.0.6
    pi@warm-bergerac:~ $ cd Octoprint
    pi@warm-bergerac:~/Octoprint $ virtualenv venv
    New python executable in /home/pi/Octoprint/venv/bin/python
    Installing setuptools, pip, wheel...done.
    pi@warm-bergerac:~/Octoprint $ pip -V
    pip 19.0.3 from /usr/local/lib/python2.7/dist-packages/pip-19.0.3-py2.7.egg/pip (python 2.7)
    pi@warm-bergerac:~/Octoprint $
     
  7. WheresWaldo

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

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    Except I think the Octoprint directory is just some leftover files from the poorly assembled SD card image. I think the real OctoPrint is installed in ~/oprint, so I think the code should be:
    Code:
    cd ~
    sudo apt-get update
    cd oprint
    virtualenv venv
    source ~/oprint/bin/activate
    sudo pip install pip --upgrade
     
  8. tkoco

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

    Joined:
    May 7, 2018
    Messages:
    721
    Likes Received:
    273
    Good. Now have to wonder about the activate command. I looked into the script and apparently it flushes out any old virtual environment and resets the software to look into the 'oprint' directory. Please try these sets of commands:

    Again, ssh into the RPi.

    cd <-- insure that you are in the home directory

    source ./oprint/bin/activate <-- set up the Octoprint environment per the 'activate' script

    pip -V <-- And what does the 'activate' environment report?

    Thank you for being patient. Just trying to not make any assumptions.
     
    mark tomlinson likes this.
  9. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    I thought we were clear :)

    Thanks @tkoco -- I think you may have sorted it :)
     
  10. tkoco

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

    Joined:
    May 7, 2018
    Messages:
    721
    Likes Received:
    273
    You're welcome! It is easy to overwhelm a new user who has no experience with Raspbian Linux or Octoprint
     
  11. SoLongSidekick

    SoLongSidekick Active Member

    Joined:
    Mar 6, 2014
    Messages:
    220
    Likes Received:
    68

    Haha that's not me, but I also thank you; immensely. How in the hell do you spend hours helping me out, and then thank me? Nonsense. Thanks a ton, I am pretty sure I've got it sorted. I ran your last set of commands and it said it found a 9.0.1 install, then ran "pip install --upgrade pip" and here we are:

    pi@warm-bergerac:~ $ cd
    pi@warm-bergerac:~ $ source ./oprint/bin/activate
    (oprint) pi@warm-bergerac:~ $ pip -V
    pip 9.0.1 from /home/pi/oprint/local/lib/python2.7/site-packages (python 2.7)
    (oprint) pi@warm-bergerac:~ $ pip install --upgrade pip
    Collecting pip
    Using cached https://files.pythonhosted.org/pack...85d51125dceff/pip-19.0.3-py2.py3-none-any.whl
    Installing collected packages: pip
    Found existing installation: pip 9.0.1
    Uninstalling pip-9.0.1:
    Successfully uninstalled pip-9.0.1
    Successfully installed pip-19.0.3
    (oprint) pi@warm-bergerac:~ $

    Aaaaaaaaaaand... no fucking luck. This is so beyond frustrating. What went wrong here? Installing the plugin via the plugin manager:

    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
    DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
    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) (1.4.0rc6)
    Requirement already satisfied: backoff>=1.4.3 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint-Anywhere==0.9.7) (1.8.0)
    Requirement already satisfied: raven in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint-Anywhere==0.9.7) (6.10.0)
    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) (0.2.11)
    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) (0.9)
    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) (1.3)
    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) (0.10)
    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) (5.2.1)
    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) (3.2.3)
    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) (3.10)
    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) (0.10.1)
    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) (4.0.2)
    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) (0.1.4)
    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) (1.2.1)
    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) (0.10.6)
    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) (2.8.1)
    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) (1.0.2)
    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) (1.0.3)
    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) (0.15.2)
    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) (3.2.2)
    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) (2.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) (0.8.3)
    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) (0.3.5)
    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) (0.8.3)
    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) (6.2)
    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) (1.0.9)
    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) (0.7.19)
    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) (2.7.0)
    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) (2.6.11)
    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) (1.6.5)
    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) (2.4.2)
    Requirement already satisfied: contextlib2; python_version < "3.2" in /home/pi/oprint/lib/python2.7/site-packages (from raven->OctoPrint-Anywhere==0.9.7) (0.5.5)
    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) (2.5.3)
    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) (1.3)
    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) (0.12.1)
    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) (0.4.2)
    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) (0.24)
    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) (2018.1.18)
    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) (3.5.0.1)
    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) (1.0)
    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) (1.4)
    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) (0.26.2)
    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) (0.1.2)
    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) (2018.2.21)
    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) (0.4.21)
    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) (2018.3)
    Building wheels for collected packages: OctoPrint-Anywhere
    Building wheel for OctoPrint-Anywhere (setup.py): started
    Building wheel for OctoPrint-Anywhere (setup.py): finished with status 'done'
    Stored in directory: /tmp/pip-ephem-wheel-cache-ejqD05/wheels/8b/a8/f7/cbf9348fc046008c688339a2cd21176147e6359ca931635da7
    Successfully built OctoPrint-Anywhere
    Done!

    It says it freaking successfully built it! But I also still get the red toast notification saying it couldn't parse the bullshit. What could possibly still be going wrong?
     
  12. WheresWaldo

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

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    I don't think it really installs unless you are a superuser, that is why you have to preface the command with "sudo". What you have above, (oprint) pi@warm-bergerac:~ $ pip install --upgrade pip vs what it should be, (oprint) pi@warm-bergerac:~ $ sudo pip install --upgrade pip

    This is just one of many reason I had this distribution Robo cobbled together.
     
  13. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    sudo
    God Mode for debian...
     
  14. SoLongSidekick

    SoLongSidekick Active Member

    Joined:
    Mar 6, 2014
    Messages:
    220
    Likes Received:
    68
    So this is what I should try next?

    Code:
    ~ $ cd
    ~ $ source ./oprint/bin/activate
    ~ $ sudo pip install --upgrade pip
     
    mark tomlinson likes this.
  15. WheresWaldo

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

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    I think so.
     
    mark tomlinson likes this.
  16. SoLongSidekick

    SoLongSidekick Active Member

    Joined:
    Mar 6, 2014
    Messages:
    220
    Likes Received:
    68
    This is so frustrating:

    pi@warm-bergerac:~ $ cd
    pi@warm-bergerac:~ $ source ./oprint/bin/activate
    (oprint) pi@warm-bergerac:~ $ sudo pip install --upgrade pip
    DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
    Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages/pip-19.0.3-py2.7.egg (19.0.3)
     
  17. WheresWaldo

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

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    /usr/local/lib/ <-- you see this, wrong subdirectory, that is the global version of PIP
     
  18. SoLongSidekick

    SoLongSidekick Active Member

    Joined:
    Mar 6, 2014
    Messages:
    220
    Likes Received:
    68
    What does that mean?
     
  19. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
  20. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    What is means is that Raspbian with OctoPrint a la Robo3D has two versions of python (at least) installed and the one OctoPrint is using in the virtual env is under its home directory. The global one is not used.
     

Share This Page