Python Forum
micropy-cli solution - enabling VSCode to program on esp 32 with MicroPython :: - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Forum & Off Topic (https://python-forum.io/Forum-Forum-Off-Topic)
+--- Forum: Bar (https://python-forum.io/Forum-Bar)
+--- Thread: micropy-cli solution - enabling VSCode to program on esp 32 with MicroPython :: (/Thread-micropy-cli%C2%A0solution-enabling-VSCode-to-program-on-esp-32-with-MicroPython)



micropy-cli solution - enabling VSCode to program on esp 32 with MicroPython :: - apollo - Sep-19-2019

good day dear experts, 




 micropy-cli solution - enabling VSCode to program on esp 32 with MicroPython :: installation issue



the machine: ein WIN 7 mit I3 und 4 GB 

note: i will install all on a linux box later the week



running Visual Studio Code to program MicroPython. I'm l using VSCode and the PyMakr extension. The latter enables the communication to a board running like ESP 32 to run MicroPython using the built-in command line REPL.

Thus, I can run a single file on my board, sync my entire project or directly type and execute commands using the Terminal on VSCode. Nowadays a new module is available enables more great features on VSCode for MicroPython!



i want to install this - the micropy-cli solution: 





but i run into some issues:  seems to be a permission issue here - see below






 

C:\Users\Kasper>pip install --upgrade micropy-cli

Collecting micropy-cli

  Downloading https://files.pythonhosted.org/packages/4a/cc/89a1f5b4b55e568250134b2c5603a481e6c19ba06b7219b38d14aa03d7ce/micropy_cli-2.1.0-py2.py3-none-any.whl (428kB)

    100% |████████████████████████████████| 430kB 3.0MB/s

Collecting jsonschema (from micropy-cli)

  Downloading https://files.pythonhosted.org/packages/54/48/f5f11003ceddcd4ad292d4d9b5677588e9169eef41f88e38b2888e7ec6c4/jsonschema-3.0.2-py2.py3-none-any.whl (54kB)

    100% |████████████████████████████████| 61kB 6.1MB/s

Collecting requests (from micropy-cli)

  Using cached https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl

Collecting questionary (from micropy-cli)

  Downloading https://files.pythonhosted.org/packages/c2/f9/8a6e7fce60566b3bcdc5ad0923916f38a65bca630ce3647251e672308bdf/questionary-1.3.0-py3-none-any.whl

Requirement not upgraded as not directly required: colorama; platform_system == "Windows" in c:\users\kasper\appdata\roaming\python\python37\site-packages (from micropy-cli) (0.4.1)

Collecting packaging (from micropy-cli)

  Downloading https://files.pythonhosted.org/packages/cf/94/9672c2d4b126e74c4496c6b3c58a8b51d6419267be9e70660ba23374c875/packaging-19.2-py2.py3-none-any.whl

Collecting click>=7 (from micropy-cli)

  Using cached https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl

Collecting requirements-parser (from micropy-cli)

  Downloading https://files.pythonhosted.org/packages/03/80/eb6ba1dd0429089436e90e556db50884ea21da060b10f2e5668c4cac99da/requirements-parser-0.2.0.tar.gz

Collecting jinja2 (from micropy-cli)

  Downloading https://files.pythonhosted.org/packages/1d/e7/fd8b501e7a6dfe492a433deb7b9d833d39ca74916fa8bc63dd1a4947a671/Jinja2-2.10.1-py2.py3-none-any.whl (124kB)

    100% |████████████████████████████████| 133kB 11.4MB/s

Collecting rshell (from micropy-cli)

  Downloading https://files.pythonhosted.org/packages/11/e6/1cf4129a4d49eb4ea5007d9f292fa22a8ba9d2b533c179b9df9ae3d51dd2/rshell-0.0.26.tar.gz (44kB)

    100% |████████████████████████████████| 51kB 7.3MB/s

Collecting tqdm (from micropy-cli)

  Downloading https://files.pythonhosted.org/packages/e1/c1/bc1dba38b48f4ae3c4428aea669c5e27bd5a7642a74c8348451e0bd8ff86/tqdm-4.36.1-py2.py3-none-any.whl (52kB)

    100% |████████████████████████████████| 61kB 10.2MB/s

Collecting attrs>=17.4.0 (from jsonschema->micropy-cli)

  Downloading https://files.pythonhosted.org/packages/23/96/d828354fa2dbdf216eaa7b7de0db692f12c234f7ef888cc14980ef40d1d2/attrs-19.1.0-py2.py3-none-any.whl

Requirement not upgraded as not directly required: six>=1.11.0 in c:\users\kasper\appdata\roaming\python\python37\site-packages (from jsonschema->micropy-cli) (1.12.0)

Collecting pyrsistent>=0.14.0 (from jsonschema->micropy-cli)

  Downloading https://files.pythonhosted.org/packages/b9/66/b2638d96a2d128b168d0dba60fdc77b7800a9b4a5340cefcc5fc4eae6295/pyrsistent-0.15.4.tar.gz (107kB)

    100% |████████████████████████████████| 112kB 9.3MB/s

Requirement not upgraded as not directly required: setuptools in c:\program files\python37\lib\site-packages (from jsonschema->micropy-cli) (39.0.1)

Collecting chardet<3.1.0,>=3.0.2 (from requests->micropy-cli)

  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl

Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests->micropy-cli)

  Downloading https://files.pythonhosted.org/packages/91/0d/7777358f672a14b7ae0dfcd29f949f409f913e0578190d6bfa68eb55864b/urllib3-1.25.4-py2.py3-none-any.whl (125kB)

    100% |████████████████████████████████| 133kB 11.4MB/s

Collecting certifi>=2017.4.17 (from requests->micropy-cli)

  Using cached https://files.pythonhosted.org/packages/18/b0/8146a4f8dd402f60744fa380bc73ca47303cccf8b9190fd16a827281eac2/certifi-2019.9.11-py2.py3-none-any.whl

Collecting idna<2.9,>=2.5 (from requests->micropy-cli)

  Using cached https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl

Collecting prompt-toolkit~=2.0 (from questionary->micropy-cli)

  Downloading https://files.pythonhosted.org/packages/f7/a7/9b1dd14ef45345f186ef69d175bdd2491c40ab1dfa4b2b3e4352df719ed7/prompt_toolkit-2.0.9-py3-none-any.whl (337kB)

    100% |████████████████████████████████| 337kB 6.0MB/s

Collecting pyparsing>=2.0.2 (from packaging->micropy-cli)

  Downloading https://files.pythonhosted.org/packages/11/fa/0160cd525c62d7abd076a070ff02b2b94de589f1a9789774f17d7c54058e/pyparsing-2.4.2-py2.py3-none-any.whl (65kB)

    100% |████████████████████████████████| 71kB 7.2MB/s

Collecting MarkupSafe>=0.23 (from jinja2->micropy-cli)

  Downloading https://files.pythonhosted.org/packages/65/c6/2399700d236d1dd681af8aebff1725558cddfd6e43d7a5184a675f4711f5/MarkupSafe-1.1.1-cp37-cp37m-win_amd64.whl

Collecting pyserial (from rshell->micropy-cli)

  Using cached https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl

Collecting pyudev>=0.16 (from rshell->micropy-cli)

  Downloading https://files.pythonhosted.org/packages/bc/a2/31a07829acea8e70a28c247f43fa5d981229ae0f9edfeddedf52de00709b/pyudev-0.21.0.tar.gz (89kB)

    100% |████████████████████████████████| 92kB 11.5MB/s

Collecting pyreadline (from rshell->micropy-cli)

  Downloading https://files.pythonhosted.org/packages/bc/7c/d724ef1ec3ab2125f38a1d53285745445ec4a8f19b9bb0761b4064316679/pyreadline-2.1.zip (109kB)

    100% |████████████████████████████████| 112kB 10.2MB/s

Collecting wcwidth (from prompt-toolkit~=2.0->questionary->micropy-cli)

  Downloading https://files.pythonhosted.org/packages/7e/9f/526a6947247599b084ee5232e4f9190a38f398d7300d866af3ab571a5bfe/wcwidth-0.1.7-py2.py3-none-any.whl

Installing collected packages: attrs, pyrsistent, jsonschema, chardet, urllib3, certifi, idna, requests, wcwidth, prompt-toolkit, questionary, pyparsing, packaging, click, requirements-parser, MarkupSafe, jinja2, pyserial, pyudev, pyreadline, rshell, tqdm, micropy-cli

Could not install packages due to an EnvironmentError: [WinError 5] Zugriff verweigert: 'c:\\program files\\python37\\Lib\\site-packages\\attr'

Consider using the `--user` option or check the permissions.

 

You are using pip version 10.0.1, however version 19.2.3 is available.

You should consider upgrading via the 'python -m pip install --upgrade pip' command.

 

C:\Users\Kasper>Collecting micropy-cli

seems to be a permission issue. 



besides this - it seems that i should update pip



Consider using the `--user` option or check the permissions.

You are using pip version 10.0.1, however version 19.2.3 is available.
look forward to hear from you