Error could not create pio core virtual environment

Hi, Thanks for the report! We rewrote PlatformIO Core installer from the scratch. Please download and install the latest PlatformIO IDE for VSCode 2.0 Beta as described in Try Beta section on that ...

@ivankravets no problem. It’s good to get to the bottom of these things.

I’ve followed the steps and it seems that it’s an ssl issue installing PlatformIO into the virtual environment. See output below:

C:Code> python C:Users<username>Downloadsvirtualenv-16.0.0virtualenv.py C:Users<username>.platformiopenv
New python executable in C:Users<username>.platformiopenvScriptspython.exe
Installing setuptools, pip, wheel...done.
C:Code> C:Users<username>.platformiopenvScriptsactivate.ps1
(penv) C:Code> pip install -U platformio
Collecting platformio
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SS
LError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),)': /simple/platformio/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SS
LError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),)': /simple/platformio/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SS
LError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),)': /simple/platformio/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SS
LError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),)': /simple/platformio/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SS
LError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),)': /simple/platformio/
  Could not fetch URL https://pypi.org/simple/platformio/: There was a problem confirming the ssl certificate: HTTPSConn
ectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/platformio/ (Caused by SSLError(SSLError(1
, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),)) - skipping
  Could not find a version that satisfies the requirement platformio (from versions: )
No matching distribution found for platformio

I added a pip.ini file specifying my cert and proxy and it worked!

(penv) C:Code> pip install -U platformio
Collecting platformio
  Downloading https://files.pythonhosted.org/packages/15/f6/6a837ec8ebf25d8737cc72faa6fccc023b325f9a19003cb374e5323d730f
/platformio-3.6.1-py27-none-any.whl (155kB)
    100% |################################| 163kB 1.8MB/s
Collecting bottle<0.13 (from platformio)
  Downloading https://files.pythonhosted.org/packages/bd/99/04dc59ced52a8261ee0f965a8968717a255ea84a36013e527944dbf3468c
/bottle-0.12.13.tar.gz (70kB)
    100% |################################| 71kB 1.4MB/s
Collecting click<6,>=5 (from platformio)
  Downloading https://files.pythonhosted.org/packages/8f/98/14966b6d772fd5fba1eb3bb34a62a7f736d609572493397cdc5715c14514
/click-5.1-py2.py3-none-any.whl (65kB)
    100% |################################| 71kB 1.1MB/s
Collecting semantic-version<3,>=2.5.0 (from platformio)
  Downloading https://files.pythonhosted.org/packages/72/83/f76958017f3094b072d8e3a72d25c3ed65f754cc607fdb6a7b33d84ab1d5
/semantic_version-2.6.0.tar.gz
Collecting pyserial!=3.3,<4,>=3 (from platformio)
  Downloading https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30
/pyserial-3.4-py2.py3-none-any.whl (193kB)
    100% |################################| 194kB 2.0MB/s
Collecting requests<3,>=2.4.0 (from platformio)
  Downloading https://files.pythonhosted.org/packages/f1/ca/10332a30cb25b627192b4ea272c351bce3ca1091e541245cccbace6051d8
/requests-2.20.0-py2.py3-none-any.whl (60kB)
    100% |################################| 61kB 1.4MB/s
Collecting colorama (from platformio)
  Downloading https://files.pythonhosted.org/packages/0a/93/6e8289231675d561d476d656c2ee3a868c1cca207e16c118d4503b25e2bf
/colorama-0.4.0-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests<3,>=2.4.0->platformio)
  Downloading https://files.pythonhosted.org/packages/56/9d/1d02dd80bc4cd955f98980f28c5ee2200e1209292d5f9e9cc8d030d18655
/certifi-2018.10.15-py2.py3-none-any.whl (146kB)
    100% |################################| 153kB 2.0MB/s
Collecting chardet<3.1.0,>=3.0.2 (from requests<3,>=2.4.0->platformio)
  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8
/chardet-3.0.4-py2.py3-none-any.whl (133kB)
    100% |################################| 143kB 2.0MB/s
Collecting idna<2.8,>=2.5 (from requests<3,>=2.4.0->platformio)
  Downloading https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165
/idna-2.7-py2.py3-none-any.whl (58kB)
    100% |################################| 61kB 1.4MB/s
Collecting urllib3<1.25,>=1.21.1 (from requests<3,>=2.4.0->platformio)
  Downloading https://files.pythonhosted.org/packages/8c/4b/5cbc4cb46095f369117dcb751821e1bef9dd86a07c968d8757e9204c324c
/urllib3-1.24-py2.py3-none-any.whl (117kB)
    100% |################################| 122kB 1.9MB/s
Building wheels for collected packages: bottle, semantic-version
  Running setup.py bdist_wheel for bottle ... done
  Stored in directory: C:Users<username>AppDataLocalpipCachewheels76a0b42a3ee1a32d0506931e558530258de1cc04b628e
ff1b2f008e0
  Running setup.py bdist_wheel for semantic-version ... done
  Stored in directory: C:Users<username>AppDataLocalpipCachewheels60bb50215d669d31f992767f5dd8d3c974e79261707ee
7f898f0dc10
Successfully built bottle semantic-version
Installing collected packages: bottle, click, semantic-version, pyserial, certifi, chardet, idna, urllib3, requests, col
orama, platformio
Successfully installed bottle-0.12.13 certifi-2018.10.15 chardet-3.0.4 click-5.1 colorama-0.4.0 idna-2.7 platformio-3.6.
1 pyserial-3.4 requests-2.20.0 semantic-version-2.6.0 urllib3-1.24

On opening VSCode I receive an exception from PIO:

Error: Error: Detected unknown package 'tool-pioplus'

	at C:opt.vscodeextensionsplatformio.platformio-ide-1.4.3node_modulesplatformio-node-helperslibindex.js:14:11760
	at ChildProcess.y (C:opt.vscodeextensionsplatformio.platformio-ide-1.4.3node_modulesplatformio-node-helperslibindex.js:1:13369)
	at emitTwo (events.js:126:13)
	at ChildProcess.emit (events.js:214:7)
	at ChildProcess.cp.emit (C:opt.vscodeextensionsplatformio.platformio-ide-1.4.3node_modulescross-spawnlibenoent.js:34:29)
	at maybeClose (internal/child_process.js:925:16)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account


Closed

fbigun opened this issue

Jan 8, 2019

· 6 comments


Closed

Could not create PIO Core Virtual Environment

#543

fbigun opened this issue

Jan 8, 2019

· 6 comments

Comments

@fbigun

Description of problem

Leave a comment…

BEFORE SUBMITTING, PLEASE SEARCH FOR DUPLICATES IN

  • https://github.com/platformio/platformio-vscode-ide/issues

Configuration

VSCode: 1.29.0
PIO IDE: v1.6.0
System: Linux, 4.15.0-29deepin-generic, x64

Exception

Error: Could not create PIO Core Virtual Environment. Please create it manually -> http://bit.ly/pio-core-virtualenv 
 Error: Failed to download file https://files.pythonhosted.org/packages/4e/8b/75469c270ac544265f0020aa7c4ea925c5284b23e445cf3aa8b99f662690/virtualenv-16.1.0.tar.gz: Error: tunneling socket could not be established, cause=Parse Error
	at t.value (/home/olutyo/.vscode/extensions/platformio.platformio-ide-1.6.0/node_modules/platformio-node-helpers/dist/index.js:1:25327)
	at <anonymous>

@ivankravets
ivankravets

changed the title
Installation Manager

Error: Could not create PIO Core Virtual Environment

Jan 10, 2019

@ivankravets
ivankravets

changed the title
Error: Could not create PIO Core Virtual Environment

Could not create PIO Core Virtual Environment

Jan 10, 2019

@ivankravets

Please provide an output from a system Terminal

echo $PATH
echo $PYTHONPATH
python --version
pip --version
pip list

@fbigun

The automatic update installation is completed after opening today, no error is reported.

@doubledutch2

I have exactly the same issue on a brand new Mac. PYTHONPATH is empty, Python version is 2.7 whilst I have python3 installed as well and pip is not installed either. Any suggestions?

@ivankravets

@doubledutch2

@doubledutch2 could you try the upcoming PlatformIO IDE 2.0?

@ivankravets — I did try that as well and get exactly the same issue. It must be something on my mac but I have no idea what I’m missing. The mac is brand new, I just installed VSC and PlatformIO is the first and only extension. The only thing that I can have happened is that I use TimeMachine to move my old content to my new mac so maybe that messed something up. I (tried to) delete all VSC and PlatformIO stuff and install again but that made no difference.

@ivankravets

@doubledutch2 could you mail me@ikravets.com? I’d like to debug this issue. We are goging to release IDE 2.0 this week and it would be great to fix your issue.

PlatformIO Community

Loading

Please provide an output from a system Terminal

echo $PATH
echo $PYTHONPATH
python --version
pip --version
pip list

I’m having this issue and I’m willing to help out to resolve it rather than just using the workaround. This issue is on a company computer so I can’t let you remote to it, but I’m a developer so I’m willing to try things and report back.

Here’s the output for the requested commands (done in PowerShell):

C:Code> echo $env:Path
C:Program Files (x86)Microsoft Visual Studio2017ProfessionalVCToolsMSVC14.15.26726binHostX86x86;C:Program Fi
les (x86)Microsoft Visual Studio2017ProfessionalCommon7IDEVCVCPackages;C:Program Files (x86)Microsoft SDKsType
Script3.0;C:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDECommonExtensionsMicrosoftTestW
indow;C:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDECommonExtensionsMicrosoftTeamFounda
tionTeam Explorer;C:Program Files (x86)Microsoft Visual Studio2017ProfessionalMSBuild15.0binRoslyn;C:Program F
iles (x86)Microsoft Visual Studio2017ProfessionalTeam ToolsPerformance Tools;C:Program Files (x86)Microsoft Visua
l StudioSharedCommonVSPerfCollectionTools;C:Program Files (x86)Microsoft SDKsWindowsv10.0AbinNETFX 4.6.1 Tools
;C:Program Files (x86)HTML Help Workshop;C:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDE
CommonExtensionsMicrosoftFSharp;C:Program Files (x86)Windows Kits10bin10.0.17134.0x86;C:Program Files (x86)W
indows Kits10binx86;C:Program Files (x86)Microsoft Visual Studio2017Professional\MSBuild15.0bin;C:WINDOWSMic
rosoft.NETFrameworkv4.0.30319;C:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDE;C:Program
Files (x86)Microsoft Visual Studio2017ProfessionalCommon7Tools;C:Python27;C:Python27Scripts;C:Program Files
Baslerpylon 5RuntimeWin32;C:Program FilesBaslerpylon 5Runtimex64;C:Program FilesDockerDockerResourcesbin;
C:toolsactivetclbin;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.
0;C:ProgramDatachocolateybin;C:optbin;C:Program Files (x86)RenishawWiRE4;C:Program FilesMicrosoft SQL Server
130ToolsBinn;C:Program Files (x86)Microsoft Emulator Manager1.0;C:Program Filesdotnet;C:Program FilesPuTTY;
C:Program FilesOpenSSLbin;C:Program FilesWindowsPowerShellScripts;C:Program Filesnodejs;C:Program Files (x86)
Windows Kits10Windows Performance Toolkit;C:Program Files (x86)Windows Kits8.1Windows Performance Toolkit;C:Pro
gram Files (x86)MATLABR2015bruntimewin32;C:Program Files (x86)MATLABR2015bbin;C:Program FilesJavajdk1.8.0_144
bin;C:Users<username>AppDataLocalMicrosoftWindowsApps;C:Program Fileskdiff3;C:Users<username>AppDataRoamingnpm
;C:Users<username>AppDataLocalGitHubDesktopbin;C:Program Files (x86)Microsoft SDKsF#4.1Frameworkv4.0;C:Progra
m Files (x86)RenishawWiRE 5.0.7642;C:Program Files (x86)GitExtensions;C:Program FilesGitcmd;C:WINDOWSsystem32;
C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:WINDOWSSystem32OpenSSH;C:Program
Files (x86)GroovyGroovy-2.5.2bin;C:Program Filesqemu;C:Users<username>AppDataLocalMicrosoftWindowsApps;C:Progr
am Fileskdiff3;C:Users<username>AppDataRoamingnpm;C:Users<username>AppDataLocalGitHubDesktopbin;C:Userssc13747
1AppDataLocalMicrosoftWindowsApps;C:Program FilesMicrosoft VS Codebin;C:Program FilesOracleVirtualBox;C:Users
<username>AppDataLocalProgramsMicrosoft VS Codebin;C:Users<username>.dotnettools;C:Program FilesWindowsPowerShel
lModulesPscx3.3.1Apps;C:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDECommonExtensions
MicrosoftCMakeCMakebin;C:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDECommonExtensions
MicrosoftCMakeNinja
C:Code> echo $env:pythonpath
C:Code> python --version
Python 2.7.15
C:Code> pip --version
pip 9.0.3 from c:python27libsite-packages (python 2.7)
C:Code> pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a
format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
pip (9.0.3)
setuptools (39.0.1)

@ivankravets no problem. It’s good to get to the bottom of these things.

I’ve followed the steps and it seems that it’s an ssl issue installing PlatformIO into the virtual environment. See output below:

C:Code> python C:Users<username>Downloadsvirtualenv-16.0.0virtualenv.py C:Users<username>.platformiopenv
New python executable in C:Users<username>.platformiopenvScriptspython.exe
Installing setuptools, pip, wheel...done.
C:Code> C:Users<username>.platformiopenvScriptsactivate.ps1
(penv) C:Code> pip install -U platformio
Collecting platformio
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SS
LError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),)': /simple/platformio/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SS
LError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),)': /simple/platformio/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SS
LError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),)': /simple/platformio/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SS
LError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),)': /simple/platformio/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SS
LError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),)': /simple/platformio/
  Could not fetch URL https://pypi.org/simple/platformio/: There was a problem confirming the ssl certificate: HTTPSConn
ectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/platformio/ (Caused by SSLError(SSLError(1
, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),)) - skipping
  Could not find a version that satisfies the requirement platformio (from versions: )
No matching distribution found for platformio

I added a pip.ini file specifying my cert and proxy and it worked!

(penv) C:Code> pip install -U platformio
Collecting platformio
  Downloading https://files.pythonhosted.org/packages/15/f6/6a837ec8ebf25d8737cc72faa6fccc023b325f9a19003cb374e5323d730f
/platformio-3.6.1-py27-none-any.whl (155kB)
    100% |################################| 163kB 1.8MB/s
Collecting bottle<0.13 (from platformio)
  Downloading https://files.pythonhosted.org/packages/bd/99/04dc59ced52a8261ee0f965a8968717a255ea84a36013e527944dbf3468c
/bottle-0.12.13.tar.gz (70kB)
    100% |################################| 71kB 1.4MB/s
Collecting click<6,>=5 (from platformio)
  Downloading https://files.pythonhosted.org/packages/8f/98/14966b6d772fd5fba1eb3bb34a62a7f736d609572493397cdc5715c14514
/click-5.1-py2.py3-none-any.whl (65kB)
    100% |################################| 71kB 1.1MB/s
Collecting semantic-version<3,>=2.5.0 (from platformio)
  Downloading https://files.pythonhosted.org/packages/72/83/f76958017f3094b072d8e3a72d25c3ed65f754cc607fdb6a7b33d84ab1d5
/semantic_version-2.6.0.tar.gz
Collecting pyserial!=3.3,<4,>=3 (from platformio)
  Downloading https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30
/pyserial-3.4-py2.py3-none-any.whl (193kB)
    100% |################################| 194kB 2.0MB/s
Collecting requests<3,>=2.4.0 (from platformio)
  Downloading https://files.pythonhosted.org/packages/f1/ca/10332a30cb25b627192b4ea272c351bce3ca1091e541245cccbace6051d8
/requests-2.20.0-py2.py3-none-any.whl (60kB)
    100% |################################| 61kB 1.4MB/s
Collecting colorama (from platformio)
  Downloading https://files.pythonhosted.org/packages/0a/93/6e8289231675d561d476d656c2ee3a868c1cca207e16c118d4503b25e2bf
/colorama-0.4.0-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests<3,>=2.4.0->platformio)
  Downloading https://files.pythonhosted.org/packages/56/9d/1d02dd80bc4cd955f98980f28c5ee2200e1209292d5f9e9cc8d030d18655
/certifi-2018.10.15-py2.py3-none-any.whl (146kB)
    100% |################################| 153kB 2.0MB/s
Collecting chardet<3.1.0,>=3.0.2 (from requests<3,>=2.4.0->platformio)
  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8
/chardet-3.0.4-py2.py3-none-any.whl (133kB)
    100% |################################| 143kB 2.0MB/s
Collecting idna<2.8,>=2.5 (from requests<3,>=2.4.0->platformio)
  Downloading https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165
/idna-2.7-py2.py3-none-any.whl (58kB)
    100% |################################| 61kB 1.4MB/s
Collecting urllib3<1.25,>=1.21.1 (from requests<3,>=2.4.0->platformio)
  Downloading https://files.pythonhosted.org/packages/8c/4b/5cbc4cb46095f369117dcb751821e1bef9dd86a07c968d8757e9204c324c
/urllib3-1.24-py2.py3-none-any.whl (117kB)
    100% |################################| 122kB 1.9MB/s
Building wheels for collected packages: bottle, semantic-version
  Running setup.py bdist_wheel for bottle ... done
  Stored in directory: C:Users<username>AppDataLocalpipCachewheels76a0b42a3ee1a32d0506931e558530258de1cc04b628e
ff1b2f008e0
  Running setup.py bdist_wheel for semantic-version ... done
  Stored in directory: C:Users<username>AppDataLocalpipCachewheels60bb50215d669d31f992767f5dd8d3c974e79261707ee
7f898f0dc10
Successfully built bottle semantic-version
Installing collected packages: bottle, click, semantic-version, pyserial, certifi, chardet, idna, urllib3, requests, col
orama, platformio
Successfully installed bottle-0.12.13 certifi-2018.10.15 chardet-3.0.4 click-5.1 colorama-0.4.0 idna-2.7 platformio-3.6.
1 pyserial-3.4 requests-2.20.0 semantic-version-2.6.0 urllib3-1.24

On opening VSCode I receive an exception from PIO:

Error: Error: Detected unknown package 'tool-pioplus'

    at C:opt.vscodeextensionsplatformio.platformio-ide-1.4.3node_modulesplatformio-node-helperslibindex.js:14:11760
    at ChildProcess.y (C:opt.vscodeextensionsplatformio.platformio-ide-1.4.3node_modulesplatformio-node-helperslibindex.js:1:13369)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at ChildProcess.cp.emit (C:opt.vscodeextensionsplatformio.platformio-ide-1.4.3node_modulescross-spawnlibenoent.js:34:29)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

I just tried removing the penv folder and starting VSCode now that I have the pip.ini in place. I receive the following exception:

Error: Failed to download file https://files.pythonhosted.org/packages/69/81/52b68d0a4de760a2f1979b0931ba7889202f302072cc7a0d614211bc7579/pip-18.0.tar.gz: Error: unable to get local issuer certificate
    at Object.<anonymous> (C:opt.vscodeextensionsplatformio.platformio-ide-1.4.3node_modulesplatformio-node-helperslibindex.js:14:32668)
    at _ (C:opt.vscodeextensionsplatformio.platformio-ide-1.4.3node_modulesplatformio-node-helperslibindex.js:1:67131)
    at Generator._invoke (C:opt.vscodeextensionsplatformio.platformio-ide-1.4.3node_modulesplatformio-node-helperslibindex.js:1:66919)
    at Generator.t.(anonymous function) [as throw] (C:opt.vscodeextensionsplatformio.platformio-ide-1.4.3node_modulesplatformio-node-helperslibindex.js:1:67310)
    at n (C:opt.vscodeextensionsplatformio.platformio-ide-1.4.3node_modulesplatformio-node-helperslibindex.js:14:34328)
    at C:opt.vscodeextensionsplatformio.platformio-ide-1.4.3node_modulesplatformio-node-helperslibindex.js:14:34447
    at <anonymous>
    at process._tickDomainCallback (internal/process/next_tick.js:228:7)

I just tried removing the penv folder and starting VSCode now that I have the pip.ini in place. I receive the following exception:

In the last case, we use Node.JS to download a package. It means, that you need to set a proxy for VSCode.

I added a pip.ini file specifying my cert and proxy and it worked!

How does it look? Could you provide your settings?

How does it look? Could you provide your settings?

This is my pip.ini file:

[global]
cert = C:optcertsZscalerRootCA1.pem
proxy = <address>:<port>

In the last case, we use Node.JS to download a package. It means, that you need to set a proxy for VSCode.

I already have the following settings in VSCode:

"http.proxy": "http://<address>:<port>/",
"http.proxyStrictSSL": false

I’ve checked that the file is not blocked by our proxy by downloading it using a web browser. So I can successfully download:

https://files.pythonhosted.org/packages/69/81/52b68d0a4de760a2f1979b0931ba7889202f302072cc7a0d614211bc7579/pip-18.0.tar.gz

Could you open VSCode > Menu > Help > Toggle Developers Tools > Console. Do you see any errors? Please share here.

I’ve managed to complete the process by temporarily renaming the python executable bundled with another piece of software I’ve had in my PATH.

@rkit1 could remove C:/Users/YourUserName/.platformio/penv folder and add back «python executable bundled with another piece of software»? I would like to see a full error output. Please share errors from VSCode > Menu > Help > Toggle Developer Tools > Console.
Thanks!

default

@rkit1 Thanks! I see you have a custom Python in emacs folder. Could you run and paste an output here?

C:/Users/Victor/Documents/stuff/root/toolz/emacs/bin/python.exe --version
C:/Users/Victor/Documents/stuff/root/toolz/emacs/bin/python.exe -c "import functools; print(functools)"

C:UsersVictor>C:/Users/Victor/Documents/stuff/root/toolz/emacs/bin/python.exe --version
Python 2.7.14

C:UsersVictor>C:/Users/Victor/Documents/stuff/root/toolz/emacs/bin/python.exe -c "import functools; print(functools)"
<module 'functools' from 'C:UsersVictorDocumentsstuffroottoolzemacslibpython2.7/functools.pyc'>

@ivankravets is there anything else you’d like me to do on this?

@sclarke81 we did some improvements to our installer a few days ago. Could upgrade our extension to the latest version, and restart VSCode? Please check the same error console ` VSCode > Menu > Help > Toggle Developers Tools > Console.

@rkit1 I would like to reproduce this issue on my virtual windows machine. Did you install Python in C:/Users/Victor/Documents/stuff/root/toolz/emacs or you did install special Emacs? Where can I get it?

@ivankravets it seems to fail consistently on downloading a file (previously it alternated between different errors):

e.register @ /C:/Users/<user>/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4362
/C:/Users/<user>/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:294 [Extension Host] Git extension API method 'getGitPath' is deprecated.
t.log @ /C:/Users/<user>/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:294
/C:/Users/<user>/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:294 [Extension Host] Error: 'platformio' is not recognized as an internal or external command,
operable program or batch file.
Error: spawn platformio ENOENT
    at C:opt.vscodeextensionsplatformio.platformio-ide-1.4.6node_modulesplatformio-node-helpersdistindex.js:1:6993
    at h (C:opt.vscodeextensionsplatformio.platformio-ide-1.4.6node_modulesplatformio-node-helpersdistindex.js:1:6004)
    at ChildProcess.r.on.e (C:opt.vscodeextensionsplatformio.platformio-ide-1.4.6node_modulesplatformio-node-helpersdistindex.js:1:5793)
    at emitOne (events.js:116:13)
    at ChildProcess.emit (events.js:211:7)
    at ChildProcess.cp.emit (C:opt.vscodeextensionsplatformio.platformio-ide-1.4.6node_modulescross-spawnlibenoent.js:30:37)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
t.log @ /C:/Users/<user>/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:294
/C:/Users/<user>/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:294 [Extension Host] Error: unable to get local issuer certificate
    at TLSSocket.<anonymous> (_tls_wrap.js:1103:38)
    at emitNone (events.js:106:13)
    at TLSSocket.emit (events.js:208:7)
    at TLSSocket._finishInit (_tls_wrap.js:637:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:467:38)
t.log @ /C:/Users/<user>/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:294
/C:/Users/<user>/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:294 [Extension Host] Error: unable to get local issuer certificate
    at TLSSocket.<anonymous> (_tls_wrap.js:1103:38)
    at emitNone (events.js:106:13)
    at TLSSocket.emit (events.js:208:7)
    at TLSSocket._finishInit (_tls_wrap.js:637:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:467:38)
t.log @ /C:/Users/<user>/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:294
/C:/Users/<user>/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:294 [Extension Host] Error: unable to get local issuer certificate
    at TLSSocket.<anonymous> (_tls_wrap.js:1103:38)
    at emitNone (events.js:106:13)
    at TLSSocket.emit (events.js:208:7)
    at TLSSocket._finishInit (_tls_wrap.js:637:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:467:38)
t.log @ /C:/Users/<user>/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:294
/C:/Users/<user>/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:294 [Extension Host] Error: unable to get local issuer certificate
    at TLSSocket.<anonymous> (_tls_wrap.js:1103:38)
    at emitNone (events.js:106:13)
    at TLSSocket.emit (events.js:208:7)
    at TLSSocket._finishInit (_tls_wrap.js:637:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:467:38)
t.log @ /C:/Users/<user>/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:294
/C:/Users/<user>/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:2429 Error: Failed to download file https://files.pythonhosted.org/packages/45/ae/8a0ad77defb7cc903f09e551d88b443304a9bd6e6f124e75c0fbbf6de8f7/pip-18.1.tar.gz: Error: unable to get local issuer certificate    at Object.t.download (C:opt.vscodeextensionsplatformio.platformio-ide-1.4.6node_modulesplatformio-node-helpersdistindex.js:1:29236)     at <anonymous>  at process._tickCallback (internal/process/next_tick.js:188:7)
t.onDidNotificationChange @ /C:/Users/<user>/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:2429
/C:/Users/<user>/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:294 [Extension Host] rejected promise not handled within 1 second
t.log @ /C:/Users/<user>/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:294
/C:/Users/<user>/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:294 [Extension Host] ApplicationInsights:CorrelationIdManager Array(1)
t.log @ /C:/Users/<user>/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:294
/C:/Users/<user>/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:294 [Extension Host] ApplicationInsights:CorrelationIdManager Array(1)
t.log @ /C:/Users/<user>/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:294

Success! PIO is installing now, but when it tries to open PIO Home I get the Detected unknown package 'tool-pioplus' error. I’ve commented on #347 with details as that seemed the most appropriate place.

Just in case it helps (as it ended up as a non-blocking to me), I experienced the «issue» this way:

  • upgraded my linux system (from 16 to Ubuntu 18.04.1 LTS xfce), while keeping my existing ~/.atom folder
  • apt install atom
  • started «atom»
  • got a popup that some packages had to be installed
  • and got the error dialog above

I did not have to do any of the proposed solution (manually install a virtual env)

But after dismissing the error dialog, it told me:

  • «Some installed packages could not be loaded because they contain native modules that were compiled for an earlier version of Atom.»

    • the dialogs told about «platformio-ide-terminal 2.7.0» and «Pymakr 1.0.3».
    • I clicked the corresponding upgrade buttons
    • restarted atom
    • the «Platform IDE: Installing…» popup came back
    • and this time all was OK «PlatformIO IDE has been successfully installed!»

So not really a bug, and possibly not even related to platformio at least in my case. It was easy to fix (just followed what’s being said), and the initial error might only have been improved by stating that «This error may also happen after your version of atom was upgraded and existing module must be upgraded as well. Please » (i.e the following popup!).

All in all, you wanted feedback so here it is, but feel free to delete this post if it brings no added value I would feel no offense :)

PlatformIO IDE: v2.1.13

[email protected]: $ python —version
Python 2.7.15rc1

$ [email protected]: pip —version
pip 18.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)

[email protected]: pip list
Package Version


asn1crypto 0.24.0
Babel 2.6.0
backports.functools-lru-cache 1.5
beautifulsoup4 4.6.0
bottle 0.12.16
catkin-pkg 0.3.9
certifi 2018.11.29
chardet 3.0.4
cheroot 6.5.2
CherryPy 17.4.1
click 5.1
colorama 0.4.1
contextlib2 0.5.5
cryptography 2.1.4
defusedxml 0.5.0
dnspython 1.15.0
docutils 0.14
ecdsa 0.13
empy 3.3.2
enum34 1.1.6
esptool 2.6
future 0.17.1
html5lib 0.999999999
idna 2.6
ipaddress 1.0.17
jaraco.functools 1.20
Jinja2 2.8.1
keyring 10.6.0
keyrings.alt 3.0
lxml 4.2.1
MarkupSafe 1.1.0
more-itertools 4.3.0
numpy 1.13.3
olefile 0.45.1
paho-mqtt 1.4.0
Pillow 5.1.0
pip 18.1
platformio 3.6.3
portend 2.3
psutil 5.4.8
pyaes 1.6.1
pycairo 1.16.2
pycrypto 2.6.1
Pygments 2.2.0
pygobject 3.26.1
pylibacl 0.5.3
pyliblzma 0.5.3
pyserial 3.4
pysqlite 2.7.0
python-dateutil 2.6.1
pytz 2018.7
pyxattr 0.6.0
pyxdg 0.25
PyYAML 3.12
rdiff-backup 1.2.8
rdiffweb 0.10.8
requests 2.21.0
roman 2.0.0
rospkg 1.1.4
scour 0.36
SecretStorage 2.3.1
semantic-version 2.6.0
setuptools 39.0.1
six 1.11.0
SOAPpy 0.12.22
tempora 1.14
urllib3 1.24.1
webencodings 0.5
wheel 0.30.0
wstools 0.4.3
zc.lockfile 1.4

@ivankravets actually it already works. I experienced the initial error mentioned in this thread, and I simply wanted to tell about my symptoms (and «fix», i.e. just ignore it and keep on with the automated upgrade!). That was mostly to help in case you wanted to try & reproduce the issue, as asked in the first post of the thread (though I suspect the reason of the error popping up on my pc was not the same as for @sclarke81).
As a side note, I still have an older version of PIO core on my system, and there is a warning about that indeed. Removing the old one & settings would not really help… since everything works fine for me! ;)
As a secondary side note: great work, great project, great reactivity, simpler and more reliable — I keep on promoting it whenever I can and I see people still fighting with the arduino «»IDE»» ;)

2 computers, both running Linux Mint 19.1 — same error on both.
Error: Could not create PIO Core Virtual Environment. Please create it manually -> http://bit.ly/pio-core-virtualenv
Error: Virtualenv Create: Traceback (most recent call last):
File «/home/drum/.platformio/.cache/tmp-5617nrKRkQBJVvbv/virtualenv-16.7.5/virtualenv.py», line 24, in
import distutils.spawn
ModuleNotFoundError: No module named ‘distutils.spawn’
at t.value (/home/drum/.vscode/extensions/platformio.platformio-ide-1.9.0/node_modules/platformio-node-helpers/dist/index.js:1:31671)

Version: 1.39.2
Commit: 6ab598523be7a800d7f3eb4d92d7ab9a66069390
Date: 2019-10-15T15:33:40.634Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Linux x64 4.15.0-65-generic

In addition trying to install platformio in VScode

notificationsAlerts.ts:40 Error: Could not create PIO Core Virtual Environment. Please create it manually -> http://bit.ly/pio-core-virtualenv Error: Virtualenv Create: Traceback (most recent call last): File «/home/drum/.platformio/.cache/tmp-5617nrKRkQBJVvbv/virtualenv-16.7.5/virtualenv.py», line 24, in import distutils.spawn ModuleNotFoundError: No module named ‘distutils.spawn’ at t.value (/home/drum/.vscode/extensions/platformio.platformio-ide-1.9.0/node_modules/platformio-node-helpers/dist/index.js:1:31671)

2 other errors from console
ERR Cannot read property ‘stack’ of undefined: TypeError: Cannot read property ‘stack’ of undefined at t.catch.t (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:787:786)

ERR connect ECONNREFUSED 0.0.0.0:443: Error: connect ECONNREFUSED 0.0.0.0:443
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1113:14)

Let me know if there is anything else I can send.

Please upgrade VSCode and PlatformIO IDE to the latest versions. Should be fixed.

Recommend Projects

  • React photo

    React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo

    Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo

    Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo

    TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo

    Django

    The Web framework for perfectionists with deadlines.

  • Laravel photo

    Laravel

    A PHP framework for web artisans

  • D3 photo

    D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Visualization

    Some thing interesting about visualization, use data art

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo

    Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo

    Microsoft

    Open source projects and samples from Microsoft.

  • Google photo

    Google

    Google ❤️ Open Source for everyone.

  • Alibaba photo

    Alibaba

    Alibaba Open Source for everyone

  • D3 photo

    D3

    Data-Driven Documents codes.

  • Tencent photo

    Tencent

    China tencent open source team.

Moderators: grovkillen, Stuntteam, TD-er

Drum

Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Custom build error VS-code and atom

#1

Post

by Drum » 16 Oct 2019, 14:15

I set up the atom/platformio environment yesterday, updated my local repositories and tried to build.

I received an error
Error: Invalid ‘c:GitHubESPEasyplatformio.ini’ (project configuration file): ‘While reading from ‘c:\GitHub\ESPEasy\platformio.ini’ [line 501]: section ‘env:esp32test_1M8_partition’ already exists’

I tried the VS-code/platformio environment and received the same error.
Does not matter if which I try to build, I tried the first 12 just to be sure but exact same error every time. ESPEasy mega branch updated my local repository today just to be sure.

Any thoughts?


TD-er

Core team member
Posts: 7344
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Custom build error VS-code and atom

#2

Post

by TD-er » 16 Oct 2019, 14:37

Yep that was due to a merge error on my side.
I will fix it.
For now you can delete one of both occurrences of that section in the platform.ini file.


Drum

Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: Custom build error VS-code and atom

#3

Post

by Drum » 16 Oct 2019, 17:08

I commented out the section, at line 501 then ran into another error:

I will : ‘charmap’ codec can’t encode characters in position 1665437-1665438: character maps to <undefined>:
File «C:Usersdum.platformiopenvlibsite-packagesplatformiobuildermain.py», line 126:
env.SConscript(«$BUILD_SCRIPT»)

with a long list of platformio files ending in .py.

I will try it in linux and see if that changes anything.


TD-er

Core team member
Posts: 7344
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Custom build error VS-code and atom

#4

Post

by TD-er » 16 Oct 2019, 17:42

That’s exact the error I also encountered.
Python 3.8 (and probably 3.7.x also) in Windows does yield these errors.
Install Python 2.7.16 and it does work again.

See: https://github.com/platformio/platformi … -542576734
You may need to uninstall Python 3.8 first before installing 2.7.
PlatformIO must no longer see the configured Python version to make it easy to change the used Python interpreter.


Drum

Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: Custom build error VS-code and atom

#5

Post

by Drum » 17 Oct 2019, 14:31

I uninstalled all versions of python, rebooted and installed 2.7.16. Either VScode or Platformin installed Python 3.7.4 and I get the same errors. I even installed the Python extension for VSCode (supposed to allow selection of python version) and I get the same error as well as a conflict with extensions which it does not explain well.

Tried on Linux Mint (same machine — dual boot) and ran into a different error which prevented platformio from running in VSCode. Apparently they have been working on it since last year, are «unable to duplicate» and have a work around which is not explained well enough for me to understand what I need to do.

After lunch I will try on another Linux machine after lunch and see if I can get it to work..

So far I am not thrilled with the VSCode/platformio platform. It is really pretty and has lots of bells and whistles but it relies on a lot of remote servers rather than being able to download a package and go. Despite living less than 5km from a city with fiber internet, the best I can get is Mobile internet which is unreliable (especially when school gets out) and I only get 75GB/month between 2 sims.. Also I have had a few problems over the years using Microsoft’s free products. They tend to kill them when they start costing too much and they can not monetize, as well as recent quality issues with multiple products…


Drum

Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: Custom build error VS-code and atom

#6

Post

by Drum » 17 Oct 2019, 15:06

I tried another Linux machine and «Error: Could not create PIO Core virtual environment» with a link to bad instructions on how to create it manually.


Drum

Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: Custom build error VS-code and atom

#7

Post

by Drum » 17 Oct 2019, 15:58

Okay, I started with a clean Windows 10 install,downloaded esp-easy from github, installed VSCore then installed the extensions, opened the folder for esp-easy and platformio does not recognize esp-eazy at all. Can edit files but no build options anywhere. :(

I have reached my frustration (and data) cap for a while. let me know when there is a reliable solution for building.


TD-er

Core team member
Posts: 7344
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Custom build error VS-code and atom

#8

Post

by TD-er » 17 Oct 2019, 16:09

As soon as the linked issue with PlatformIO is done, I will try to create a how-to of how you should use PlatformIO.

One last tip you can try without using extra bandwidth is to make sure the «workspace folder» you open in VS code is the one containing platformio.ini.
So the file platformio.ini is in the «root» of your workspace folder in VScode.
Do not move the file, but just open the folder which has this file it it.


Drum

Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: Custom build error VS-code and atom

#9

Post

by Drum » 17 Oct 2019, 16:34

Okay, somehow in the unzip it added another nested folder, fixed. I get the build options. Clicked build and it downloads athe tool chain and all the other packages, including Python 3.7.4 and I get the errors again.

I checked and it did not have python 3.7.4 installed before I clicked build. Is there something which is requiring python 3.7.4?


TD-er

Core team member
Posts: 7344
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Custom build error VS-code and atom

#10

Post

by TD-er » 17 Oct 2019, 17:05

PlatformIO is using Python.
And I can imagine it will install 3.7.x or even 3.8.0 when there is no Python install found.
The error you get is somewhat about character encoding being undefined?

If so, then you can delete the comment on line 66 of _P052_SenseAir.ino


Drum

Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: Custom build error VS-code and atom

#11

Post

by Drum » 17 Oct 2019, 17:17

IN the bottom left corner it lists the version of Python (if you have python extensions installed) it shows 2.7.16 and 3.7.4 (twice).
I tried selecting 2.7 did not work.
This time it did not get that far, all the errors are because I do not have Git installed on this machine…..

Maybe this should be added to the «Read the docs» page.


TD-er

Core team member
Posts: 7344
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Custom build error VS-code and atom

#12

Post

by TD-er » 17 Oct 2019, 17:39

Like I said, I will later this week make a complete step-by-step howto on how to build using PlatformIO.


Drum

Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: Custom build error VS-code and atom

#13

Post

by Drum » 17 Oct 2019, 18:13

Okay, it worked that time, after installing git, downloading the repository again and modifying the problem files it completed the build. I will have to test and see if it works,. There are still some issues with platformio but it is building.

Now I need to get it working on a computer with a monitor as the one it is working on is my ultra light work travel laptop with a 11 inch screen….


Drum

Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: Custom build error VS-code and atom

#14

Post

by Drum » 17 Oct 2019, 22:03

TD-er,
I figured out the problem I was having with Python. You have to install 2.7.26 and add it to the path then install VSCode and platformio. For some reason the standard install does not add python to the path so platformio does not «see» it.

The only issues I can identify with the readthedocs page with regard to Windows install are
Add:
Install python 2.7.16 and add to Windows Path
Install git and clone repository

Remove C/C++ from extensions to be installed, it is automatic when you install platformio.

I will see if I can figure out what is going on with Linux Mint

Thank you for your help,



Drum

Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: Custom build error VS-code and atom

#16

Post

by Drum » 18 Oct 2019, 00:29

I just uninstalled and reinstalled Python 2.7.16 to verify and it does not have the option to set path in the installer.
I do remember selecting that option on one of the many tries and it had the same error.

I have it working on Linux now, and it is building as long as I do not build env:normal_ESP8266_1M_VCC It fails with lots of errors.


TD-er

Core team member
Posts: 7344
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Custom build error VS-code and atom

#17

Post

by TD-er » 18 Oct 2019, 09:40

Drum wrote: ↑18 Oct 2019, 00:29
I just uninstalled and reinstalled Python 2.7.16 to verify and it does not have the option to set path in the installer.
I do remember selecting that option on one of the many tries and it had the same error.

I have it working on Linux now, and it is building as long as I do not build env:normal_ESP8266_1M_VCC It fails with lots of errors.

I just tested the Python 2.7.xxx install and indeed it does not have that checkbox.
Python 3.8.0 installer does have it.

Even more reason to let the people from PlatformIO fix the Python3 issue (although I do now have a work-around if needed, but it may be broken again in the future if it is not fixed)

Can you give some of the build errors with that 1M_VCC build?
Or is it «just» that it will not fit in the sketch size?


Drum

Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: Custom build error VS-code and atom

#18

Post

by Drum » 18 Oct 2019, 12:47

Interesting, last night it failed, today it completes with warnings (I think that is what the yellow ones are)

My mistake apparenntly it was the env:test_ESP8266_4M_VCC I tried as that one fails with the errors I remember. See below:

Code: Select all

*** [.pio/build/test_ESP8266_4M_VCC/lib6ae] /home/drum/ESPEasy/.pio/build/test_ESP8266_4M_VCC/lib6ae: No such file or directory
Assembler messages:
Fatal error: can't create .pio/build/test_ESP8266_4M_VCC/liba85/ESP8266mDNS/ESP8266mDNS_Legacy.cpp.o: No such file or directory
*** [.pio/build/test_ESP8266_4M_VCC/liba85/ESP8266mDNS/ESP8266mDNS_Legacy.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio/build/test_ESP8266_4M_VCC/libeed/Wire/Wire.cpp.o: No such file or directory
*** [.pio/build/test_ESP8266_4M_VCC/libeed/Wire/Wire.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio/build/test_ESP8266_4M_VCC/liba85/ESP8266mDNS/LEAmDNS_Control.cpp.o: No such file or directory
*** [.pio/build/test_ESP8266_4M_VCC/liba85/ESP8266mDNS/LEAmDNS_Control.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio/build/test_ESP8266_4M_VCC/liba85/ESP8266mDNS/LEAmDNS_Structs.cpp.o: No such file or directory
*** [.pio/build/test_ESP8266_4M_VCC/liba85/ESP8266mDNS/LEAmDNS_Structs.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio/build/test_ESP8266_4M_VCC/liba85/ESP8266mDNS/LEAmDNS_Helpers.cpp.o: No such file or directory
*** [.pio/build/test_ESP8266_4M_VCC/liba85/ESP8266mDNS/LEAmDNS_Helpers.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio/build/test_ESP8266_4M_VCC/liba85/ESP8266mDNS/LEAmDNS.cpp.o: No such file or directory
*** [.pio/build/test_ESP8266_4M_VCC/liba85/ESP8266mDNS/LEAmDNS.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio/build/test_ESP8266_4M_VCC/liba85/ESP8266mDNS/LEAmDNS_Transfer.cpp.o: No such file or directory
*** [.pio/build/test_ESP8266_4M_VCC/liba85/ESP8266mDNS/LEAmDNS_Transfer.cpp.o] Error 1
FileNotFoundError: [Errno 2] No such file or directory: '/home/drum/ESPEasy/.pio/build/.sconsign3.dblite':
  File "/home/drum/.platformio/packages/tool-scons/script/../engine/SCons/Script/Main.py", line 1374:
    _exec_main(parser, values)
  File "/home/drum/.platformio/packages/tool-scons/script/../engine/SCons/Script/Main.py", line 1337:
    _main(parser)
  File "/home/drum/.platformio/packages/tool-scons/script/../engine/SCons/Script/Main.py", line 1112:
    nodes = _build_targets(fs, options, targets, target_top)
  File "/home/drum/.platformio/packages/tool-scons/script/../engine/SCons/Script/Main.py", line 1311:
    jobs.run(postfunc = jobs_postfunc)
  File "/home/drum/.platformio/packages/tool-scons/script/../engine/SCons/Job.py", line 113:
    postfunc()
  File "/home/drum/.platformio/packages/tool-scons/script/../engine/SCons/Script/Main.py", line 1308:
    SCons.SConsign.write()
  File "/home/drum/.platformio/packages/tool-scons/script/../engine/SCons/SConsign.py", line 117:
    syncmethod()
  File "/home/drum/.platformio/packages/tool-scons/script/../engine/SCons/dblite.py", line 161:
    self._os_unlink(self._file_name)
Exception ignored in: <bound method dblite.__del__ of <SCons.dblite.dblite object at 0x7f2726f9d470>>
Traceback (most recent call last):
  File "/home/drum/.platformio/packages/tool-scons/script/../engine/SCons/dblite.py", line 143, in __del__
  File "/home/drum/.platformio/packages/tool-scons/script/../engine/SCons/dblite.py", line 140, in close
  File "/home/drum/.platformio/packages/tool-scons/script/../engine/SCons/dblite.py", line 161, in sync
FileNotFoundError: [Errno 2] No such file or directory: '/home/drum/ESPEasy/.pio/build/.sconsign3.dblite'


TD-er

Core team member
Posts: 7344
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Custom build error VS-code and atom

#19

Post

by TD-er » 18 Oct 2019, 13:14

Those build errors, do you get them with the unmodified source from the GitHub repo?
Are you sure you do not have a lock on the build directory (e.g. open file in some editor, terminal in the directory, etc) ?


Drum

Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: Custom build error VS-code and atom

#20

Post

by Drum » 18 Oct 2019, 13:44

The only modifications I have made are to platformio.py to comment out the duplicated ESP32 section at line 501.
Other than that I can not see anything open that would affect those directories. It is really weird because the same without VCC worked no problem.
I just ran it again and I get different errors.

/home/drum/ESPEasy/src/_P089_Ping.ino: In function ‘boolean Plugin_089(byte, EventStruct*, String&)’:
/home/drum/ESPEasy/src/_P089_Ping.ino:215:53: error: ‘getTaskIndexByName’ was not declared in this scope
int8_t taskIndex = getTaskIndexByName(taskName);
^
/home/drum/ESPEasy/src/_P089_Ping.ino: In function ‘uint8_t PingReceiver(void*, raw_pcb*, pbuf*, const ip_addr_t*)’:
/home/drum/ESPEasy/src/_P089_Ping.ino:260:35: error: ‘getPluginId’ was not declared in this scope
int plugin = getPluginId(index);

Okay, I tried the env:test_core_260_sdk3_alpha_ESP8266_4M1M and on the FIRST BUILD I received the same errors as in my previous message and on the SECOND BUILD I received the errors above in this message. I did not change anything other than scrolling through the terminal window in platformio to read the errors. No idea why.

I am sure it is there and I am just not seeing it, but when it says 4M is that MB or Mb. I assumed it was MB until I saw one with 16M

Thanks


TD-er

Core team member
Posts: 7344
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Custom build error VS-code and atom

#21

Post

by TD-er » 18 Oct 2019, 16:02

Ah P089 is one of the last merged ones so there may be an issue with that one.
Can you open an issue for it at Github, so I won’t forget fixing it before the next new nightly build?


Drum

Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: Custom build error VS-code and atom

#22

Post

by Drum » 18 Oct 2019, 16:36

Issue opened… I understand the need but I started to have flashbacks of completing Italian Government forms…

By the way, I tried the build on the windows install and I had the same problem. The first build failed sooner with what appeared to be permission errors, see below. They do not show up on the second build of the same env.

Code: Select all

Cloning into 'c:UsersDrumDocumentsGitHubESPEasy.piolibdepstest_core_260_sdk3_alpha_ESP8266_4M1M_tmp_installing-5k3pztmz-package'...
PermissionError: [WinError 5] Access is denied: 'c:\Users\Drum\Documents\GitHub\ESPEasy\.pio\libdeps\test_core_260_sdk3_alpha_ESP8266_4M1M\_tmp_installing-5k3pztmz-package\.git\objects\47\92ae0b2f70d6537b6d6b22e1603caca202ebd4':
  File "C:UsersDrum.platformiopenvlibsite-packagesplatformiobuildermain.py", line 126:
    env.SConscript("$BUILD_SCRIPT")
  File "C:UsersDrum.platformiopackagestool-sconsscript..engineSConsScriptSConscript.py", line 605:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:UsersDrum.platformiopackagestool-sconsscript..engineSConsScriptSConscript.py", line 286:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "C:UsersDrum.platformioplatformsespressif8266@src-d2f6a4ecb96f34425e5e701de09dc0a9buildermain.py", line 203:
    target_elf = env.BuildProgram()
  File "C:UsersDrum.platformiopackagestool-sconsscript..engineSConsEnvironment.py", line 224:
    return self.method(*nargs, **kwargs)
  File "C:UsersDrum.platformiopenvlibsite-packagesplatformiobuildertoolsplatformio.py", line 122:
    _build_project_deps(env)
  File "C:UsersDrum.platformiopenvlibsite-packagesplatformiobuildertoolsplatformio.py", line 47:
    project_lib_builder = env.ConfigureProjectLibBuilder()
  File "C:UsersDrum.platformiopackagestool-sconsscript..engineSConsEnvironment.py", line 224:
    return self.method(*nargs, **kwargs)
  File "C:UsersDrum.platformiopenvlibsite-packagesplatformiobuildertoolspiolib.py", line 1043:
    project.install_dependencies()
  File "C:UsersDrum.platformiopenvlibsite-packagesplatformiobuildertoolspiolib.py", line 878:
    lm.install(uri)
  File "C:UsersDrum.platformiopenvlibsite-packagesplatformiomanagerslib.py", line 359:
    force=force)
  File "C:UsersDrum.platformiopenvlibsite-packagesplatformiomanagerspackage.py", line 701:
    track=True)
  File "C:UsersDrum.platformiopenvlibsite-packagesplatformiomanagerspackage.py", line 500:
    return self._install_from_tmp_dir(_tmp_dir, requirements)
  File "C:UsersDrum.platformiopenvlibsite-packagesplatformiomanagerspackage.py", line 583:
    shutil.move(tmp_dir, pkg_dir)
  File "C:UsersDrum.platformiopython37libshutil.py", line 578:
    rmtree(src)
  File "C:UsersDrum.platformiopython37libshutil.py", line 516:
    return _rmtree_unsafe(path, onerror)
  File "C:UsersDrum.platformiopython37libshutil.py", line 395:
    _rmtree_unsafe(fullname, onerror)
  File "C:UsersDrum.platformiopython37libshutil.py", line 395:
    _rmtree_unsafe(fullname, onerror)
  File "C:UsersDrum.platformiopython37libshutil.py", line 395:
    _rmtree_unsafe(fullname, onerror)
  File "C:UsersDrum.platformiopython37libshutil.py", line 400:
    onerror(os.unlink, fullname, sys.exc_info())
  File "C:UsersDrum.platformiopython37libshutil.py", line 398:
    os.unlink(fullname)


Who is online

Users browsing this forum: No registered users and 2 guests

Current Behavior

Hi, i am trying to build the Frsky TX Backpack or Zorro TX Backpack on my Mac with the settings below.

Bildschirmfoto 2022-05-17 um 08 50 08

But i get the following error:
I tried it also with the latest master branch without success

`Failed to find Platformio on your computer. Trying to install it automatically…Installer version: 1.1.0
Platform: macOS-10.16
Python version: 3.8.4 (default, Jul 14 2020, 15:19:59)
[Clang 10.0.0 (clang-1000.10.44.4)]
Python path: /Applications/ExpressLRS Configurator.app/Contents/dependencies/darwin_amd64/python-portable-darwin-3.8.4/bin/python3
Creating a virtual environment at /Users/f4b0/.platformio/penv
Updating Python package manager (PIP) in a virtual environment
PIP has been successfully updated!
Virtual environment has been successfully created!
Installing PlatformIO Core
Collecting platformio
Using cached platformio-6.0.0-py3-none-any.whl
Collecting marshmallow==3.*
Using cached marshmallow-3.15.0-py3-none-any.whl (47 kB)
Collecting aiofiles==0.8.*
Using cached aiofiles-0.8.0-py3-none-any.whl (13 kB)
Collecting wsproto==1.1.*
Using cached wsproto-1.1.0-py3-none-any.whl (24 kB)
Collecting click<9,>=8.0.3
Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting ajsonrpc==1.*
Using cached ajsonrpc-1.2.0-py3-none-any.whl (22 kB)
Collecting colorama
Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting uvicorn==0.17.*
Using cached uvicorn-0.17.6-py3-none-any.whl (53 kB)
Collecting requests==2.*
Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB)
Collecting bottle==0.12.*
Using cached bottle-0.12.19-py3-none-any.whl (89 kB)
Collecting tabulate==0.8.*
Using cached tabulate-0.8.9-py3-none-any.whl (25 kB)
Collecting semantic-version==2.9.*
Using cached semantic_version-2.9.0-py2.py3-none-any.whl (15 kB)
Collecting starlette==0.20.*
Using cached starlette-0.20.0-py3-none-any.whl (61 kB)
Collecting zeroconf<1
Using cached zeroconf-0.38.6-py3-none-any.whl (106 kB)
Collecting pyelftools<1,>=0.27
Using cached pyelftools-0.28-py2.py3-none-any.whl (155 kB)
Collecting pyserial==3.*
Using cached pyserial-3.5-py2.py3-none-any.whl (90 kB)
Collecting packaging
Using cached packaging-21.3-py3-none-any.whl (40 kB)
Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
Collecting charset-normalizer~=2.0.0
Using cached charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting idna<4,>=2.5
Using cached idna-3.3-py3-none-any.whl (61 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting typing-extensions>=3.10.0
Using cached typing_extensions-4.2.0-py3-none-any.whl (24 kB)
Collecting anyio<5,>=3.4.0
Using cached anyio-3.6.1-py3-none-any.whl (80 kB)
Collecting asgiref>=3.4.0
Downloading asgiref-3.5.2-py3-none-any.whl (22 kB)
Collecting h11>=0.8
Using cached h11-0.13.0-py3-none-any.whl (58 kB)
Collecting ifaddr>=0.1.7
Using cached ifaddr-0.1.7-py2.py3-none-any.whl (10 kB)
Collecting sniffio>=1.1
Using cached sniffio-1.2.0-py3-none-any.whl (10 kB)
Collecting pyparsing!=3.0.5,>=2.0.2
Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB)
Installing collected packages: tabulate, pyserial, pyelftools, ifaddr, certifi, bottle, zeroconf, urllib3, typing-extensions, sniffio, semantic-version, pyparsing, idna, h11, colorama, click, charset-normalizer, asgiref, ajsonrpc, aiofiles, wsproto, uvicorn, requests, packaging, anyio, starlette, marshmallow, platformio
Successfully installed aiofiles-0.8.0 ajsonrpc-1.2.0 anyio-3.6.1 asgiref-3.5.2 bottle-0.12.19 certifi-2021.10.8 charset-normalizer-2.0.12 click-8.1.3 colorama-0.4.4 h11-0.13.0 idna-3.3 ifaddr-0.1.7 marshmallow-3.15.0 packaging-21.3 platformio-6.0.0 pyelftools-0.28 pyparsing-3.0.9 pyserial-3.5 requests-2.27.1 semantic-version-2.9.0 sniffio-1.2.0 starlette-0.20.0 tabulate-0.8.9 typing-extensions-4.2.0 urllib3-1.26.9 uvicorn-0.17.6 wsproto-1.1.0 zeroconf-0.38.6

PlatformIO Core has been successfully installed into an isolated environment /Users/f4b0/.platformio/penv!

The full path to platformio.exe is /Users/f4b0/.platformio/penv/bin/platformio

If you need an access to platformio.exe from other applications, please install Shell Commands
(add PlatformIO Core binary directory /Users/f4b0/.platformio/penv/bin to the system environment PATH variable):

See https://docs.platformio.org/page/installation.html#install-shell-commands


If you like PlatformIO, please:

  • follow us on Twitter to stay up-to-date on the latest project news > https://twitter.com/PlatformIO_Org
  • star it on GitHub > https://github.com/platformio/platformio
  • try PlatformIO IDE for embedded development > https://platformio.org/platformio-ide

Processing Radiomaster_Zorro_TX_Backpack_via_ETX (board: esp8285; platform: espressif8266@3.2.0; framework: arduino)

Platform Manager: Installing espressif8266 @ 3.2.0
Downloading
Unpacking
Platform Manager: espressif8266@3.2.0 has been installed!
Tool Manager: Installing platformio/toolchain-xtensa @ ~2.100300.0
Downloading
Unpacking
Tool Manager: toolchain-xtensa@2.100300.210717 has been installed!
Tool Manager: Installing platformio/framework-arduinoespressif8266 @ ~3.30002.0
Downloading
Unpacking
Tool Manager: framework-arduinoespressif8266@3.30002.0 has been installed!
Tool Manager: Installing platformio/tool-esptool @ <2
Downloading
Unpacking
Tool Manager: tool-esptool@1.413.0 has been installed!
Tool Manager: Installing platformio/tool-esptoolpy @ ~1.30000.0
Downloading
Unpacking
Tool Manager: tool-esptoolpy@1.30000.201119 has been installed!
Library Manager: Installing ottowinter/ESPAsyncWebServer-esphome @ ^2.0.1
Downloading
Unpacking
Library Manager: ESPAsyncWebServer-esphome@2.1.0 has been installed!
Library Manager: Resolving dependencies…
Library Manager: Installing ottowinter/ESPAsyncTCP-esphome
Downloading
Unpacking
Library Manager: ESPAsyncTCP-esphome@1.2.3 has been installed!
Library Manager: Installing esphome/AsyncTCP-esphome
Downloading
Unpacking
Library Manager: AsyncTCP-esphome@1.2.2 has been installed!
Tool Manager: Installing platformio/tool-scons @ ~4.40300.0
Downloading
Unpacking
Tool Manager: tool-scons@4.40300.1 has been installed!
Verbose mode can be enabled via -v, --verbose option
UID bytes: 219,165,243,45,156,23


Building for ESP8266/ESP8285 Platform
AUTO_WIFI_ON_INTERVAL = OFF
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp8285.html
PLATFORM: Espressif 8266 (3.2.0) > Generic ESP8285 Module
HARDWARE: ESP8266 160MHz, 80KB RAM, 1MB Flash
PACKAGES:

  • framework-arduinoespressif8266 @ 3.30002.0 (3.0.2)
  • tool-esptool @ 1.413.0 (4.13)
  • tool-esptoolpy @ 1.30000.201119 (3.0.0)
  • toolchain-xtensa @ 2.100300.210717 (10.3.0)
    LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 48 compatible libraries
    Scanning dependencies…
    Dependency Graph
    |— ESPAsyncWebServer-esphome @ 2.1.0
    | |— ESPAsyncTCP-esphome @ 1.2.3
    | |— Hash @ 1.0
    | |— ESP8266WiFi @ 1.0
    |— config
    | |— EEPROM
    | | |— logging
    | | |— EEPROM @ 1.0
    | | |— Wire @ 1.0
    | |— logging
    |— BUTTON
    | |— DEVICE
    | |— logging
    |— LED
    | |— DEVICE
    |— WIFI
    | |— DEVICE
    | |— STM32UPDATE
    | | |— logging
    | |— config
    | | |— EEPROM
    | | | |— logging
    | | | |— EEPROM @ 1.0
    | | | |— Wire @ 1.0
    | | |— logging
    | |— logging
    | |— DNSServer @ 1.1.1
    | | |— ESP8266WiFi @ 1.0
    | |— ESP8266WiFi @ 1.0
    | |— ESP8266mDNS @ 1.2
    | | |— ESP8266WiFi @ 1.0
    | |— ESPAsyncWebServer-esphome @ 2.1.0
    | | |— ESPAsyncTCP-esphome @ 1.2.3
    | | |— Hash @ 1.0
    | | |— ESP8266WiFi @ 1.0
    |— DEVICE
    |— logging
    |— MSP
    | |— logging
    |— ESP8266WiFi @ 1.0
    |— CRC
    |— CrsfProtocol
    |— SPI @ 1.0
    Building in release mode
    PLATFORM : ‘espressif8266’
    BUILD ENV: ‘RADIOMASTER_ZORRO_TX_BACKPACK_VIA_ETX’
    Compiling .pio/build/Radiomaster_Zorro_TX_Backpack_via_ETX/src/Tx_main.cpp.o
    Compiling .pio/build/Radiomaster_Zorro_TX_Backpack_via_ETX/src/Vrx_main.cpp.o
    Compiling .pio/build/Radiomaster_Zorro_TX_Backpack_via_ETX/src/fusion.cpp.o
    Compiling .pio/build/Radiomaster_Zorro_TX_Backpack_via_ETX/src/hdzero.cpp.o
    Compiling .pio/build/Radiomaster_Zorro_TX_Backpack_via_ETX/src/options.cpp.o
    Compiling .pio/build/Radiomaster_Zorro_TX_Backpack_via_ETX/src/rapidfire.cpp.o
    src/Vrx_main.cpp:89:1: error: ‘VrxBackpackConfig’ does not name a type; did you mean ‘TxBackpackConfig’?
    89 | VrxBackpackConfig config;
    | ^~~~~~~~~~~~~~~~~
    | TxBackpackConfig
    src/Vrx_main.cpp: In function ‘void RebootIntoWifi()’:
    src/Vrx_main.cpp:116:10: error: ‘class TxBackpackConfig’ has no member named ‘SetBootCount’
    116 | config.SetBootCount(0);
    | ^~~~~~~~~~~~
    src/Vrx_main.cpp: In function ‘void resetBootCounter()’:
    src/Vrx_main.cpp:309:10: error: ‘class TxBackpackConfig’ has no member named ‘SetBootCount’
    309 | config.SetBootCount(0);
    | ^~~~~~~~~~~~
    src/Vrx_main.cpp: In function ‘void checkIfInBindingMode()’:
    src/Vrx_main.cpp:315:32: error: ‘class TxBackpackConfig’ has no member named ‘GetBootCount’
    315 | uint8_t bootCounter = config.GetBootCount();
    | ^~~~~~~~~~~~
    src/Vrx_main.cpp:330:12: error: ‘class TxBackpackConfig’ has no member named ‘SetBootCount’
    330 | config.SetBootCount(bootCounter);
    | ^~~~~~~~~~~~
    src/Vrx_main.cpp: In function ‘void setup()’:
    src/Vrx_main.cpp:396:3: error: ‘vrxModule’ was not declared in this scope
    396 | vrxModule.Init();
    | ^~~~~~~~~
    src/Vrx_main.cpp: In function ‘void loop()’:
    src/Vrx_main.cpp:430:5: error: ‘vrxModule’ was not declared in this scope
    430 | vrxModule.SendIndexCmd(cachedIndex);
    | ^~~~~~~~~
    src/Vrx_main.cpp:442:39: error: ‘class TxBackpackConfig’ has no member named ‘GetBootCount’
    442 | if (now > BINDING_TIMEOUT && config.GetBootCount() > 0)
    | ^~~~~~~~~~~~
    *** [.pio/build/Radiomaster_Zorro_TX_Backpack_via_ETX/src/Vrx_main.cpp.o] Error 1
    src/rapidfire.cpp: In member function ‘void Rapidfire::Init()’:
    src/rapidfire.cpp:12:13: error: ‘PIN_MOSI’ was not declared in this scope
    12 | pinMode(PIN_MOSI, INPUT);
    | ^~~~~~~~
    src/rapidfire.cpp:13:13: error: ‘PIN_CLK’ was not declared in this scope
    13 | pinMode(PIN_CLK, INPUT);
    | ^~~~~~~
    src/rapidfire.cpp:14:13: error: ‘PIN_CS’ was not declared in this scope; did you mean ‘PIN_A0’?
    14 | pinMode(PIN_CS, INPUT);
    | ^~~~~~
    | PIN_A0
    src/rapidfire.cpp: In member function ‘void Rapidfire::EnableSPIMode()’:
    src/rapidfire.cpp:23:13: error: ‘PIN_MOSI’ was not declared in this scope
    23 | pinMode(PIN_MOSI, OUTPUT);
    | ^~~~~~~~
    src/rapidfire.cpp:24:13: error: ‘PIN_CLK’ was not declared in this scope
    24 | pinMode(PIN_CLK, OUTPUT);
    | ^~~~~~~
    src/rapidfire.cpp:25:13: error: ‘PIN_CS’ was not declared in this scope; did you mean ‘PIN_A0’?
    25 | pinMode(PIN_CS, OUTPUT);
    | ^~~~~~
    | PIN_A0
    src/rapidfire.cpp: In member function ‘void Rapidfire::SendSPI(uint8_t*, uint8_t)’:
    src/rapidfire.cpp:167:13: error: ‘PIN_MOSI’ was not declared in this scope
    167 | pinMode(PIN_MOSI, OUTPUT);
    | ^~~~~~~~
    src/rapidfire.cpp:168:13: error: ‘PIN_CLK’ was not declared in this scope
    168 | pinMode(PIN_CLK, OUTPUT);
    | ^~~~~~~
    src/rapidfire.cpp:169:13: error: ‘PIN_CS’ was not declared in this scope; did you mean ‘PIN_A0’?
    169 | pinMode(PIN_CS, OUTPUT);
    | ^~~~~~
    | PIN_A0
    *** [.pio/build/Radiomaster_Zorro_TX_Backpack_via_ETX/src/rapidfire.cpp.o] Error 1
    ========================= [FAILED] Took 56.59 seconds =========================

Environment Status Duration


Radiomaster_Zorro_TX_Backpack_via_ETX FAILED 00:00:56.586
==================== 1 failed, 0 succeeded in 00:00:56.586 ====================
`

Steps to Reproduce

  1. Select «Backpack» in ELRS Configurator
  2. Select Target Type «TX» and Device «Frsky Tx Backpack»
  3. Press «Build» button

Your Environment

OS: MacOS 12.4
ELRS Configurator v1.4.1

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Error could not connect to the configured hostname ip address
  • Error could not connect to server filezilla что делать
  • Error could not connect to mikrotik winbox
  • Error could not bind the server on interface and port 22010
  • Error could not bind the server on interface and port 22003

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии