Hi all,
I am in a deep mess. It started that our project on google drive can only be compiled on my computer, as it seeminlgy has many local references. But even when I try to replace all local references to my drive with ${env:PLATFORMIO_PACKAGES_DIR} in the c_cpp_properties.json folder I still get errors. The problem is really that I do not know where and how all of these environment variables are stored (in Windows system files accessible through the power shell, cmd or in Jason files that are accessible through Python/PlatformIO?). There are so many layers, it seems that even Python is allowed to create special shell contexts through its environment wizzardry.
So I have asked Chatgpt how to install platform so that it can be used for all users I got something like that, to be executed as an administrator on the power shell:
[System.Environment]::SetEnvironmentVariable(“PLATFORMIO_PACKAGES_DIR”, “G:\Shared_PIO\platformio\packages”, “Machine”)
where G:\Shared_PIO\platformio\packages is replaced by the network drive onto which the workspace is saved, so this supposededly should install everything on the network. A big mistake as I am no longer able to load platformio and I get the following error
*Error: Traceback (most recent call last):*
* File "<frozen runpy>", line 198, in _run_module_as_main*
* File "<frozen runpy>", line 88, in _run_code*
* File "G:\Shared drives\Raw Data Storage\Git\FW-32004-100\penv\Lib\site-packages\pip\__main__.py", line 24, in <module>*
* sys.exit(_main())*
* ~~~~~^^*
* File "G:\Shared drives\Raw Data Storage\Git\FW-32004-100\penv\Lib\site-packages\pip\_internal\cli\main.py", line 78, in main*
* command = create_command(cmd_name, isolated=("--isolated" in cmd_args))*
* File "G:\Shared drives\Raw Data Storage\Git\FW-32004-100\penv\Lib\site-packages\pip\_internal\commands\__init__.py", line 114, in create_command*
* module = importlib.import_...*
I think that that the Python environment looks for its own executable on the network (have removed all env folders) and not on the local drive (to which it is installed). So probably the python interpreter wants to run itself from the network but that is no longer possible.
I have uninstalled vscode and python but to no avail.
I am in desparate desparate need to
a) a nuclear option to reset all this mess, and
b) a way to make use of some relative environment variables (Python or Windows) to replace direct references to local directories so that I am finally able to collaborate with others.
many thanks in advance,
yours in desperation,
C.