I continued the testing using a custom library.
Nothing has changed on the locations from my previous post /home/fred/Documents/PlatformIO/custom-libraries/ILI9488-ESP32
I tried the following variations in platformio.ini in lib_deps section:
- file://~/Documents/PlatformIO/custom-libraries/ILI9488-ESP32/
- file://$HOME/Documents/PlatformIO/custom-libraries/ILI9488-ESP32/
- file://$HOME/Documents/PlatformIO/custom-libraries/ILI9488-ESP32/ILI9488-ESP32-master.zip
In all cases I got a long list of error messages (with the only difference of the contents of “FileNotFoundError: [Errno 2] No such file or directory: ‘…….’).
error message #1
================
Library Manager: Installing file://$HOME/Documents/PlatformIO/custom-libraries/ILI9488-ESP32/
FileNotFoundError: Traceback (most recent call last):
File "/home/fred/.platformio/penv/lib/python3.13/site-packages/platformio/__main__.py", line 103, in main
cli() # pylint: disable=no-value-for-parameter
~~~^^
File "/home/fredplatformio.ini/.platformio/penv/lib/python3.13/site-packages/click/core.py", line 1485, in __call__
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/home/fred/.platformio/penv/lib/python3.13/site-packages/click/core.py", line 1406, in main
rv = self.invoke(ctx)
File "/home/fred/.platformio/penv/lib/python3.13/site-packages/platformio/cli.py", line 85, in invoke
return super().invoke(ctx)
~~~~~~~~~~~~~~^^^^^
File "/home/fred/.platformio/penv/lib/python3.13/site-packages/click/core.py", line 1873, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/home/fred/.platformio/penv/lib/python3.13/site-packages/click/core.py", line 1269, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/fred/.platformio/penv/lib/python3.13/site-packages/click/core.py", line 824, in invoke
return callback(*args, **kwargs)
File "/home/fred/.platformio/penv/lib/python3.13/site-packages/click/decorators.py", line 34, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/fred/.platformio/penv/lib/python3.13/site-packages/platformio/run/cli.py", line 147, in cli
process_env(
~~~~~~~~~~~^
ctx,
^^^^
...<9 lines>...
verbose,
^^^^^^^^
)
^
File "/home/fred/.platformio/penv/lib/python3.13/site-packages/platformio/run/cli.py", line 210, in process_env
).process()
~~~~~~~^^
File "/home/fred/.platformio/penv/lib/python3.13/site-packages/platformio/run/processor.py", line 81, in process
install_project_env_dependencies(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
self.name,
^^^^^^^^^^
...<3 lines>...
},
^^
)
^
File "/home/fred/.platformio/penv/lib/python3.13/site-packages/platformio/package/commands/install.py", line 133, in install_project_env_dependencies
_install_project_env_libraries(project_env, options),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/home/fred/.platformio/penv/lib/python3.13/site-packages/platformio/package/commands/install.py", line 253, in _install_project_env_libraries
env_lm.install(
~~~~~~~~~~~~~~^
spec,
^^^^^
skip_dependencies=options.get("skip_dependencies"),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
force=options.get("force"),
^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/fred/.platformio/penv/lib/python3.13/site-packages/platformio/package/manager/_install.py", line 47, in install
pkg = self._install(spec, skip_dependencies=skip_dependencies, force=force)
File "/home/fred/.platformio/penv/lib/python3.13/site-packages/platformio/package/manager/_install.py", line 97, in _install
pkg = self.install_from_uri(spec.uri, spec)
File "/home/fred/.platformio/penv/lib/python3.13/site-packages/platformio/package/manager/_install.py", line 187, in install_from_uri
shutil.copytree(_uri, tmp_dir, symlinks=True)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/fred/.local/share/uv/python/cpython-3.13.11-linux-x86_64-gnu/lib/python3.13/shutil.py", line 591, in copytree
with os.scandir(src) as itr:
~~~~~~~~~~^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '$HOME/Documents/PlatformIO/custom-libraries/ILI9488-ESP32/'
============================================================
An unexpected error occurred. Further steps:
* Verify that you have the latest version of PlatformIO using
`python -m pip install -U platformio` command
* Try to find answer in FAQ Troubleshooting section
https://docs.platformio.org/page/faq/index.html
* Report this problem to the developers
https://github.com/platformio/platformio-core/issues
============================================================
I have to stress, this is the same library as when retrieved (successfully) from github, without any error messages.
And to learn more about the ‘protocols’ that can be used in platformio.ini, I searched the whole documentation side but was not able to locate an entry that is explaining the use of file:// and symlink://
Thanks for your attention.