I have an environment on my laptop that can build my project
VSC 1.69.2
C/C++ 1.2.0
Azure IoT Hub 2.16.4
Platformio IDE v1.10.0 Core 5.1.0 Home 3.3.3
I have tried to mount the work environment on another computer, for this
I have downloaded and installed VSC version 1.69.2
Inside VSC I have
**Install C/C++ and downgrade to 1.2.0**
** Install Azure IoT Hub and downgrade to 2.16.4**
** Platformio IDE and downgrade to v1.10.0 (the core keep in 6.1.11 Home 3.4.4)**
In the platformio.ini file I have
platform = espressif32@1.12.4
platform_packages =
toolchain-xtensa32@~2.80400.0
And the result for build is
c:/users/jaht.keld/.platformio/packages/toolchain-xtensa32/bin/…/lib/gcc/xtensa-esp32-elf/8.4.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: cannot find -lUsersjaht.KELD.platformiopackagesframework-espidf@3.40001.200521componentsxtensaesp32libhal
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\esp32dev\bootloader.elf] Error 1
I have maked (At the laptop when I had this error it fixed downgrade the platformio versión)
pip uninstall platformio
pip install platformio==5.1.0
When I start VSC, the Platformilo Home can´t be show and the loader say
Error: Error: Traceback (most recent call last):
File “C:\Users\jaht.KELD.platformio\penv\Lib\site-packages\platformio_main_.py”, line 109, in main
cli() # pylint: disable=no-value-for-parameter
^^^^^
File “C:\Users\jaht.KELD.platformio\penv\Lib\site-packages\click\core.py”, line 829, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\jaht.KELD.platformio\penv\Lib\site-packages\click\core.py”, line 782, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File “C:\Users\jaht.KELD.platformio\penv\Lib\site-packages\platformio\commands_init_.py”, line 44, in invoke
return super(PlatformioCLI, self).invoke(ctx)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\jaht.KELD.platformio\penv\Lib\site-packages\click\core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\jaht.KELD.platformio\penv\Lib\site-packages\click\core.py”, line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\jaht.KELD.platformio\penv\Lib\site-packages\click\core.py”, line 610, in invoke
return callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\jaht.KELD.platformio\penv\Lib\site-packages\platformio\commands\home\command.py”, line 93, in cli
run_server(
File “C:\Users\jaht.KELD.platformio\penv\Lib\site-packages\platformio\commands\home\run.py”, line 63, in run_server
contrib_dir = get_core_package_dir(“contrib-piohome”)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\jaht.KELD.platformio\penv\Lib\site-packages\platformio\package\manager\core.py”, line 48, in get_core_package_dir
pkg = pm.get_package(spec)
^^^^^^^^^^^^^^^^^^^^
File “C:\Users\jaht.KELD.platformio\penv\Lib\site-packages\platformio\package\manager\base.py”, line 236, in get_package
for pkg in self.get_installed():
^^^^^^^^^^^^^^^^^^^^
File “C:\Users\jaht.KELD.platformio\penv\Lib\site-packages\platformio\package\manager\base.py”, line 209, in get_installed
pkg = PackageItem(pkg_dir)
^^^^^^^^^^^^^^^^^^^^
File “C:\Users\jaht.KELD.platformio\penv\Lib\site-packages\platformio\package\meta.py”, line 405, in init
self.metadata = self.load_meta()
^^^^^^^^^^^^^^^^
File “C:\Users\jaht.KELD.platformio\penv\Lib\site-packages\platformio\package\meta.py”, line 440, in load_meta
return PackageMetaData.load(manifest_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\jaht.KELD.platformio\penv\Lib\site-packages\platformio\package\meta.py”, line 393, in load
data[“spec”] = PackageSpec(**data[“spec”])
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: PackageSpec.init() got an unexpected keyword argument ‘uri’============================================================
An unexpected error occurred. Further steps:
Verify that you have the latest version of PlatformIO using
pip install -U platformio
commandTry to find answer in FAQ Troubleshooting section
Redirecting...Report this problem to the developers
Issues · platformio/platformio-core · GitHub============================================================
at c:\Users\jaht.KELD.vscode\extensions\platformio.platformio-ide-1.10.0\node_modules\platformio-node-helpers\dist\index.js:1:11965
at ChildProcess.d (c:\Users\jaht.KELD.vscode\extensions\platformio.platformio-ide-1.10.0\node_modules\platformio-node-helpers\dist\index.js:1:8215)
at ChildProcess.emit (node:events:390:28)
at ChildProcess.cp.emit (c:\Users\jaht.KELD.vscode\extensions\platformio.platformio-ide-1.10.0\node_modules\platformio-node-helpers\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
Out of desperation, I tried to replace the .platformio folder on the PC where it doesn’t work, with the folder on the laptop that does work, but this wasn’t valid either.
Installing PlatformIO Core…
Please do not close this window and do not open other folders until this process is completed.
PlatformIO IDE installed successfully.
Please restart VSCode.
After Restar
PlatformIO IDE installation has been suspended, because PlatformIO IDE Installer is already started in another window.
I restart again, teh Pio Home doesný load and the build not works
Is there a way to export a working configuration from one computer to another?