Octoprint on Ubunutu 18.04 LTS + Serial Com issues

What is the problem?

The pip command could not be found or does not work correctly for this installation of OctoPrint - please consult the log file for details and if necessary configure it manually. No installation and uninstallation of plugin packages is possible while pip is unavailable.

I have Ubuntu running in a virtual box with a few of my other servers (bad idea I know but I have snapshots/backups in case something go's south). I have the service running and up so I can access it and it was communicating with my printer / printing something earlier but was very slow then later when I tried to play with Octoprint again it wouldn't communicate with it anymore?

What did you already try to solve it?

Reinstalling Python / Pip and googling the error. I also attempted to correct the read problem with sudo chmod 775 OctoPrint and on .octoprint as well.

Checking comm settings will restart the server when I get home to see if this fix's the comm issue..

Logs (octoprint.log, serial.log or output on terminal tab at a minimum, browser error console if UI issue ... no logs, no support!)

2020-01-01 01:04:18,969 - octoprint.environment - INFO - Detected environment is Python 2.7.17 under Linux (linux2). Details:
|  hardware:
|    cores: 4
|    freq: 0.0
|    ram: 12591849472
|  os:
|    id: linux
|    platform: linux2
|  python:
|    pip: 19.3.1
|    version: 2.7.17
|    virtualenv: /home/stealth95l/OctoPrint/venv
2020-01-01 01:04:18,971 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets...
2020-01-01 01:04:18,974 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache...
2020-01-01 01:04:19,138 - octoprint.server - INFO - Shutting down intermediary server...
2020-01-01 01:04:19,508 - octoprint.server - INFO - Intermediary server shut down
2020-01-01 01:04:19,508 - octoprint.events - INFO - Processing startup event, this is our first event
2020-01-01 01:04:19,509 - octoprint.events - INFO - Adding 1 events to queue that were held back before startup event
2020-01-01 01:04:19,509 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2020-01-01 01:04:19,511 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2020-01-01 01:04:19,514 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2020-01-01 01:04:19,621 - octoprint.server.util.watchdog - INFO - Running initial scan on watched folder...
2020-01-01 01:04:19,631 - octoprint.server.util.watchdog - INFO - ... initial scan done.
2020-01-01 01:04:19,679 - octoprint.server - INFO - Listening on http://0.0.0.0:5000 and http://[::]:5000
2020-01-01 01:04:19,682 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on aviushub for SSDP
2020-01-01 01:04:19,701 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2020-01-01 01:04:19,826 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2020-01-01 01:04:19,886 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2020-01-01 01:04:19,925 - octoprint.util.pip - INFO - Using "/home/stealth95l/OctoPrint/venv/bin/python2 -m pip" as command to invoke pip
2020-01-01 01:04:19,925 - octoprint.util.pip - INFO - pip installs to /home/stealth95l/OctoPrint/venv/lib/python2.7/site-packages (writable -> no), --user flag needed -> no, virtual env -> yes
2020-01-01 01:04:19,925 - octoprint.util.pip - INFO - ==> pip ok -> NO!
2020-01-01 01:04:19,926 - octoprint.util.pip - ERROR - Cannot use this pip install, can't write to the install dir and also can't use --user for installing. Check your setup and the permissions on /home/stealth95l/OctoPrint/venv/lib/python2.7/site-packages.
2020-01-01 01:04:19,927 - octoprint.plugin - ERROR - Error while calling plugin softwareupdate
Traceback (most recent call last):
  File "/home/stealth95l/OctoPrint/venv/local/lib/python2.7/site-packages/octoprint/plugin/__init__.py", line 219, in call_plugin
    result = getattr(plugin, method)(*args, **kwargs)
  File "/home/stealth95l/OctoPrint/venv/lib/python2.7/site-packages/octoprint/plugins/softwareupdate/__init__.py", line 109, in on_after_startup
    self._check_environment()
  File "/home/stealth95l/OctoPrint/venv/lib/python2.7/site-packages/octoprint/plugins/softwareupdate/__init__.py", line 196, in _check_environment
    and get_comparable_version(versions["pip"]) >= get_comparable_version(MINIMUM_PIP)
  File "/home/stealth95l/OctoPrint/venv/local/lib/python2.7/site-packages/octoprint/util/version.py", line 148, in get_comparable_version
    if "-" in version_string:
TypeError: argument of type 'NoneType' is not iterable

Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible)

OctoPrint 1.3.12, not on a Pi so I assume no Octopi version, Printer is a Ender 3 Pro, don't have access to my printer firmware atm, Browsers Firefox/Chrome, Operations System Ubuntu 18.04.3 LTS Bionic and I do have this running in a Virtualbox. Any help would be greatly appreciated! Also can I convert slice lts files using octopi or do I need to use a external slicer like Cura? Thanks again for all the hard work you guys do!

Reading the log, it looks like your installation has problems.

  • "can't write to the install dir"

The installation instructions involve running this under a virtual environment (not to be confused with your VM).

If you do a chmod then it's necessary to either do this at the correct location or recursively.

ls -l /home/stealth95l/OctoPrint/venv/lib/python2.7/site-packages