Hi!
I’m trying run a remote agent on RPI 3 following the instructions bellow but it seems not enough.
https://docs.platformio.org/en/latest/installation.html
On PIO core “full” guide what should I make to activate virtual environment?
Should I make $ python activate_this.py
?
Then how to install PIO core into virtual environment? The command pip install -U platformio
will say it’s installed already
The instruction seems incomplete.
What I did:
pi@Geeetech:~ $ python --version
Python 2.7.13
pi@Geeetech:~ $ sudo pip install -U platformio
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting platformio
Using cached https://files.pythonhosted.org/packages/b4/fe/6cf776ae6feb69c6afd3362700174e9e03a020113a3f0b1684deafefec95/platformio-3.6.0-py27-none-any.whl
Requirement already satisfied, skipping upgrade: semantic-version<3,>=2.5.0 in /usr/local/lib/python2.7/dist-packages (from platformio) (2.6.0)
Requirement already satisfied, skipping upgrade: requests<3,>=2.4.0 in /usr/local/lib/python2.7/dist-packages (from platformio) (2.12.1)
Requirement already satisfied, skipping upgrade: pyserial!=3.3,<4,>=3 in /usr/local/lib/python2.7/dist-packages (from platformio) (3.2.1)
Requirement already satisfied, skipping upgrade: click<6,>=5 in /usr/local/lib/python2.7/dist-packages (from platformio) (5.1)
Requirement already satisfied, skipping upgrade: colorama in /usr/local/lib/python2.7/dist-packages (from platformio) (0.3.9)
Requirement already satisfied, skipping upgrade: bottle<0.13 in /usr/local/lib/python2.7/dist-packages (from platformio) (0.12.13)
Installing collected packages: platformio
Successfully installed platformio-3.6.0
pi@Geeetech:~ $ python -c "import os; print os.path.join(os.getenv('PLATFORMIO_HOME_DIR', os.path.join(os.path.expanduser('~'), '.platformio')), 'penv')"
/home/pi/.platformio/penv
pi@Geeetech:~ $ cd /home/pi/.platformio/penv
-bash: cd: /home/pi/.platformio/penv: No such file or directory
pi@Geeetech:~ $ sudo pip install virtualenv
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: virtualenv in /usr/local/lib/python2.7/dist-packages (16.0.0)
pi@Geeetech:~ $ sudo virtualenv /home/pi/.platformio/penv
New python executable in /home/pi/.platformio/penv/bin/python
Installing setuptools, pip, wheel...done.
pi@Geeetech:~ $ cd /home/pi/.platformio/penv/bin
pi@Geeetech:~/.platformio/penv/bin $ ls
activate activate.csh activate.fish activate_this.py easy_install easy_install-2.7 pip pip2 pip2.7 python python2 python2.7 python-config wheel
pi@Geeetech:~/.platformio/penv/bin $ python activate_this.py
After this steps the commands to remote agent doesn’t give any returns:
pi@Geeetech:~ $ sudo platformio remote agent start
pi@Geeetech:~ $ sudo platformio remote agent list
Also the command to login in my account doesn’t returns anything:
pi@Geeetech:~/.platformio/penv/bin $ pio account login -u MyEmail -p Mypassword
pi@Geeetech:~/.platformio/penv/bin $ pio account show
Login with token doesn’t give any result also:
pi@Geeetech:~/.platformio/penv/bin $ pio account token -p MyToken
pi@Geeetech:~/.platformio/penv/bin $ pio account show
Additional info:
pi@Geeetech:~ $ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
pi@Geeetech:~ $ echo $PYTHONPATH
pi@Geeetech:~ $ pip --version
pip 18.0 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
What I did wrong? What should be the right step by step?
Thanks in advance!
Best regards.