Skip to content

Error using preinstalled PIO? #133

@airdrummingfool

Description

@airdrummingfool

Operating system

macOS with PIO installed via homebrew:

$ pio --version
PlatformIO, version 3.4.0

$ which pio
/usr/local/bin/pio

Description of problem

I just updated from a dev build of Deviot 2 (0d6cd78) to the current tip of the develop branch. I encountered some errors with the syntax language file (similar to #125) so I removed all Deviot settings, which seemed to force a reinstall.

When Sublime Text launched, I got the following message in the Deviot console:

[ Deviot 2.0.1 ] Setup
04:19:01 PlatformIO is installed in your system. You can enjoy Deviot now!

However, when I try to do anything, Deviot cannot seem to find PIO. This includes "Show Terminal":

[ Deviot ] PlatformIO Terminal

To get information about the PlatformIO command writes: 'pio -h'
or 'help' to know about the Deviot commands.

$ pio -h 
/usr/bin/python: No module named platformio

and "Upgrade PlatformIO":

[ Deviot 2.0.1 ] Starting...
04:22:29 Searching for PlatformIO Updates...

/usr/bin/python: No module named platformio

If I try to "use Development PIO version", installation seems to get stuck as soon as it tries to actually perform an (un)installation:

[ Deviot 2.0.1 ] Starting...
04:24:17 Uninstalling current version...
04:24:18 Installing 'develop' PlatformIO version...
Collecting https://github.com/platformio/platformio/archive/develop.zip
  Downloading https://github.com/platformio/platformio/archive/develop.zip (196kB)
Collecting arrow<1 (from platformio==3.4.1a5)
Collecting bottle<0.13 (from platformio==3.4.1a5)
Collecting click<6,>=5 (from platformio==3.4.1a5)
  Using cached click-5.1-py2.py3-none-any.whl
Collecting colorama (from platformio==3.4.1a5)
  Using cached colorama-0.3.9-py2.py3-none-any.whl
Collecting lockfile<0.13,>=0.9.1 (from platformio==3.4.1a5)
  Using cached lockfile-0.12.2-py2.py3-none-any.whl
Collecting pyserial!=3.3,<4,>=3 (from platformio==3.4.1a5)
  Using cached pyserial-3.2.1-py2.py3-none-any.whl
Collecting requests<3,>=2.4.0 (from platformio==3.4.1a5)
  Using cached requests-2.18.1-py2.py3-none-any.whl
Collecting semantic_version>=2.5.0 (from platformio==3.4.1a5)
Collecting python-dateutil (from arrow<1->platformio==3.4.1a5)
  Using cached python_dateutil-2.6.1-py2.py3-none-any.whl
Collecting urllib3<1.22,>=1.21.1 (from requests<3,>=2.4.0->platformio==3.4.1a5)
  Using cached urllib3-1.21.1-py2.py3-none-any.whl
Collecting idna<2.6,>=2.5 (from requests<3,>=2.4.0->platformio==3.4.1a5)
  Using cached idna-2.5-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests<3,>=2.4.0->platformio==3.4.1a5)
  Using cached certifi-2017.4.17-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests<3,>=2.4.0->platformio==3.4.1a5)
  Using cached chardet-3.0.4-py2.py3-none-any.whl
Collecting six>=1.5 (from python-dateutil->arrow<1->platformio==3.4.1a5)
  Using cached six-1.10.0-py2.py3-none-any.whl
Installing collected packages: six, python-dateutil, arrow, bottle, click, colorama, lockfile, pyserial, urllib3, idna, certifi, chardet, requests, semantic-version, platformio
  Found existing installation: six 1.4.1
    Uninstalling six-1.4.1:

After waiting a while, I tried unchecking "Use Development PIO Version", and Deviot tried to install the normal version, but again got stuck as soon as it started actually trying to install something:

[ Deviot 2.0.1 ] Starting...
04:26:47 Uninstalling current version...
04:26:48 Installing 'stable' PlatformIO version...
Collecting platformio
  Using cached platformio-3.4.0-py27-none-any.whl
Collecting lockfile<0.13,>=0.9.1 (from platformio)
  Using cached lockfile-0.12.2-py2.py3-none-any.whl
Collecting requests<3,>=2.4.0 (from platformio)
  Using cached requests-2.18.1-py2.py3-none-any.whl
Collecting bottle<0.13 (from platformio)
Collecting arrow<1 (from platformio)
Collecting click<6,>=5 (from platformio)
  Using cached click-5.1-py2.py3-none-any.whl
Collecting semantic-version>=2.5.0 (from platformio)
Collecting colorama (from platformio)
  Using cached colorama-0.3.9-py2.py3-none-any.whl
Collecting pyserial!=3.3,<4,>=3 (from platformio)
  Using cached pyserial-3.2.1-py2.py3-none-any.whl
Collecting urllib3<1.22,>=1.21.1 (from requests<3,>=2.4.0->platformio)
  Using cached urllib3-1.21.1-py2.py3-none-any.whl
Collecting idna<2.6,>=2.5 (from requests<3,>=2.4.0->platformio)
  Using cached idna-2.5-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests<3,>=2.4.0->platformio)
  Using cached certifi-2017.4.17-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests<3,>=2.4.0->platformio)
  Using cached chardet-3.0.4-py2.py3-none-any.whl
Collecting python-dateutil (from arrow<1->platformio)
  Using cached python_dateutil-2.6.1-py2.py3-none-any.whl
Collecting six>=1.5 (from python-dateutil->arrow<1->platformio)
  Using cached six-1.10.0-py2.py3-none-any.whl
Installing collected packages: lockfile, urllib3, idna, certifi, chardet, requests, bottle, six, python-dateutil, arrow, click, semantic-version, colorama, pyserial, platformio

EDIT: I was able to downgrade to 0d6cd78, delete my Deviot settings, and immediately (well, after fixing a syntax error in a Deviot file) upload to my ESP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions