Hello, I encountered an issue of insufficient permissions while initializing the ESP32 environment。
My system is Linux, here is my platformio.ini file:
[env:esp32dev]
platform = https://gh.llkk.cc//https://github.com/2644359096/mycode/blob/main/platform-espressif32_jasu.zip
board = esp32dev
framework = arduino
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
upload_speed = 921600
upload_protocol = esptool
This is an error message:
Resolving esp32dev dependencies...
Platform Manager: Installing https://gh.llkk.cc//https://github.com/2644359096/mycode/blob/main/platform-espressif32_jasu.zip
Unpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Error: Traceback (most recent call last):
File "/home/aidlux/.platformio/penv/lib/python3.8/site-packages/platformio/__main__.py", line 103, in main
cli() # pylint: disable=no-value-for-parameter
File "/home/aidlux/.platformio/penv/lib/python3.8/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/home/aidlux/.platformio/penv/lib/python3.8/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/aidlux/.platformio/penv/lib/python3.8/site-packages/platformio/cli.py", line 85, in invoke
return super().invoke(ctx)
File "/home/aidlux/.platformio/penv/lib/python3.8/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/aidlux/.platformio/penv/lib/python3.8/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/aidlux/.platformio/penv/lib/python3.8/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/aidlux/.platformio/penv/lib/python3.8/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/aidlux/.platformio/penv/lib/python3.8/site-packages/platformio/project/commands/init.py", line 106, in project_init_cmd
install_project_dependencies(
File "/home/aidlux/.platformio/penv/lib/python3.8/site-packages/platformio/package/commands/install.py", line 107, in install_project_dependencies
already_up_to_date = not install_project_env_dependencies(env, options)
File "/home/aidlux/.platformio/penv/lib/python3.8/site-packages/platformio/package/commands/install.py", line 132, in install_project_env_dependencies
_install_project_env_platform(project_env, options),
File "/home/aidlux/.platformio/penv/lib/python3.8/site-packages/platformio/package/commands/install.py", line 149, in _install_project_env_platform
PlatformPackageManager().install(
File "/home/aidlux/.platformio/penv/lib/python3.8/site-packages/platformio/package/manager/platform.py", line 50, in install
pkg = super().install(spec, force=force, skip_dependencies=True)
File "/home/aidlux/.platformio/penv/lib/python3.8/site-packages/platformio/package/manager/_install.py", line 47, in install
pkg = self._install(spec, skip_dependencies=skip_dependencies, force=force)
File "/home/aidlux/.platformio/penv/lib/python3.8/site-packages/platformio/package/manager/_install.py", line 97, in _install
pkg = self.install_from_uri(spec.uri, spec)
File "/home/aidlux/.platformio/penv/lib/python3.8/site-packages/platformio/package/manager/_install.py", line 204, in install_from_uri
return self._install_tmp_pkg(pkg_item)
File "/home/aidlux/.platformio/penv/lib/python3.8/site-packages/platformio/package/manager/_install.py", line 271, in _install_tmp_pkg
shutil.copytree(dst_pkg.path, pkg_dir, symlinks=True)
File "/usr/lib/python3.8/shutil.py", line 557, in copytree
return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
File "/usr/lib/python3.8/shutil.py", line 513, in _copytree
raise Error(errors)
shutil.Error: [('/home/aidlux/.platformio/platforms/espressif32/.github/FUNDING.yml', '/home/aidlux/.platformio/platforms/espressif32@6.12.0/.github/FUNDING.yml', "[Errno 13] Permission denied: '/home/aidlux/.platformio/platforms/espressif32@6.12.0/.github/FUNDING.yml'"), ('/home/aidlux/.platformio/platforms/espressif32/.github/stale.yml', '/home/aidlux/.platformio/platforms/espressif32@6.12.0/.github/stale.yml', "[Errno 13] Permission denied: '/home/aidlux/.platformio/platforms/espressif32@6.12.0/.github/stale.yml'"), ('/home/aidlux/.platformio/platforms/espressif32/.github/workflows/examples.yml', '/home/aidlux/.platformio/platforms/espressif32@6.12.0/.github/workflows/examples.yml', "[Errno 13] Permission denied: '/home/aidlux/.platformio/platforms/espressif32@6.12.0/.github/workflows/examples.yml'"), ('/home/aidlux/.platformio/platforms/espressif32/.github/workflows/tests.yml', '/home/aidlux/.platformio/platforms/espressif32@6.12.0/.github/workflows/tests.yml', ...