PlatformIO Community

OpenOCD installation Issue

Hi!

I am trying to install espressif32 platform on PlatformIO on Visual Studio Code on Win10.
However, I got the follow error messages,

PackageManager: Installing tool-openocd-esp32 @ ~1.1000.20180920
Downloading [####################################] 100%
Unpacking [#########################-----------] 71%
Unpacking…
Warning! Package Mirror: [Errno 22] invalid mode (‘wb’) or filename: ‘C:\Users\mstsai\.platformio\packages\_tmp_installing-gfoqhr-package\share\openocd\scripts\target\1986\xd0\xb2\xd0\xb51\xd1\x82.cfg’
Looking for another mirror…
Error: Could not install ‘tool-openocd-esp32’ with version requirements ‘~1.1000.20180920’ for your system ‘windows_amd64’.

Please try this solution -> http://bit.ly/faq-package-manager
The terminal process terminated with exit code: 1

I downloaded the file, tool-openocd-esp32-darwin_x86_64-1.1000.20180920.tar.gz, and checked it. I found that the filename of a file in share/openoce/scripts/target/ has rather strange characters, i.e., 1986ве1т.cfg.
I think this is the reason that causes the failure of the installation.
How do I resolve this problem?

Thanks.

Strictly speaking this is the Mac OS version but also it appears on every platform. Seems like the unpacking logic in the core cannot handle special UTF8 or Unicode characters. @ivankravets?

I tried manual installation the package. I created a folder named, tool-openocd-esp32, in .platformio\packagesand and extracted the file into that folder.
Executed ‘pio run’ on terminal. I still got the same error messages!!

@valeros could you reproduce this issue with PIO Core 3.0 or PIO Core 4.0?

Hello, l got the same issue.
I’ve updated all but it doesn’t solve the issue.
I got same error messages of invalid mode or file name.
I’m using windows 10 professional 64bit edition and vscode.

PIO Plus (https://pioplus.com) v2.5.2
PackageManager: Installing tool-openocd-esp32 @ ~1.1000.20181026
Downloading  [####################################]  100%
Unpacking  [#########################-----------]   71%  00:00:08
Unpacking...
Warning! Package Mirror: [Errno 22] invalid mode ('wb') or filename: 'C:\\Users\\KIKI\\.platformio\\packages\\_tmp_installing-gzjlhl-package\\share\\openocd\\scripts\\target\\1986\xd0\xb2\xd0\xb51\xd1\x82.cfg'
Looking for another mirror...
Downloading  [####################################]  100%
Unpacking  [#########################-----------]   71%  00:00:06
Unpacking...
Warning! Package Mirror: [Errno 22] invalid mode ('wb') or filename: 'C:\\Users\\KIKI\\.platformio\\packages\\_tmp_installing-tyx1jq-package\\share\\openocd\\scripts\\target\\1986\xd0\xb2\xd0\xb51\xd1\x82.cfg'
Looking for another mirror...
Error: Could not install 'tool-openocd-esp32' with version requirements '~1.1000.20181026' for your system 'windows_amd64'.

Please try this solution -> http://bit.ly/faq-package-manager
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

@ivankravets @valeros You need to test this on a PC without kyrillic language packs installed, the problem here is unpacking the file called 1986ве1т.cfg (ref)

1 Like

All packages were updated. Please re-run pio update or try to install again.

1 Like

Works for me on a german Win10 x64

PackageManager: Installing tool-openocd-esp32 @ 1.1000.20190624
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
tool-openocd-esp32 @ 1.1000.20190624 has been successfully installed!
3 Likes

Hello, @ivankravets

I still have an issue.
к1879xб1я.cfg, This file causes error.

Processing esp32doit-devkit-v1 (framework: arduino; platform: espressif32; board: esp32doit-devkit-v1)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PackageManager: Installing tool-openocd-esp32 @ ~1.1000.20190624
Downloading  [####################################]  100%
Unpacking  [################################----]   90%  00:00:02
Unpacking...
Warning! Package Mirror: [Errno 22] invalid mode ('wb') or filename: 'C:\\Users\\KIKI\\.platformio\\packages\\_tmp_installing-8ipa7j-package\\share\\openocd\\scripts\\target\\\xd0\xba1879x\xd0\xb11\xd1\x8f.cfg'
Looking for another mirror...
Downloading  [####################################]  100%
Unpacking  [################################----]   90%  00:00:02
Unpacking...
Warning! Package Mirror: [Errno 22] invalid mode ('wb') or filename: 'C:\\Users\\KIKI\\.platformio\\packages\\_tmp_installing-bf_csv-package\\share\\openocd\\scripts\\target\\\xd0\xba1879x\xd0\xb11\xd1\x8f.cfg'
Looking for another mirror...
Error: Could not install 'tool-openocd-esp32' with version requirements '~1.1000.20190624' for your system 'windows_amd64'.

Please try this solution -> http://bit.ly/faq-package-manager
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

Can you remove all _tmp_* folders and retry?

Thanks @maxgerhardt

It works like a charm :wink:

1 Like