platformio / platformio-home

PlatformIO Home
https://docs.platformio.org/page/home/index.html
Apache License 2.0
91 stars 63 forks source link

Could not initialize project #7847

Open Riyadhalali opened 2 weeks ago

Riyadhalali commented 2 weeks ago

PIO Core Call Error: "The following files/directories have been created in F:\ENG. RIYAD\Ref\Ref Codes\Riyad_Complete_Codes\ATMEGA32A\Solar Auto Switcher\Solar Loads Controller V2 _2_Outputs\SLC_2_LOADS_CONTROL\r\ninclude - Put project header files here\r\nlib - Put project specific (private) libraries here\r\nsrc - Put project source files here\r\nplatformio.ini - Project Configuration File\r\nResolving ATmega328P dependencies...\r\nAlready up-to-date.\r\nUpdating metadata for the vscode IDE...\r\n\n\nNameError: Traceback (most recent call last):\r\n File \"C:\Users\RIYAD\.platformio\penv\Lib\site-packages\platformio\main.py\", line 103, in main\r\n cli() # pylint: disable=no-value-for-parameter\r\n ^^^^^\r\n File \"C:\Users\RIYAD\.platformio\penv\Lib\site-packages\click\core.py\", line 1157, in call\r\n return self.main(args, kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\Users\RIYAD\.platformio\penv\Lib\site-packages\click\core.py\", line 1078, in main\r\n rv = self.invoke(ctx)\r\n ^^^^^^^^^^^^^^^^\r\n File \"C:\Users\RIYAD\.platformio\penv\Lib\site-packages\platformio\cli.py\", line 85, in invoke\r\n return super().invoke(ctx)\r\n ^^^^^^^^^^^^^^^^^^^\r\n File \"C:\Users\RIYAD\.platformio\penv\Lib\site-packages\click\core.py\", line 1688, in invoke\r\n return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\Users\RIYAD\.platformio\penv\Lib\site-packages\click\core.py\", line 1434, in invoke\r\n return ctx.invoke(self.callback, ctx.params)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\Users\RIYAD\.platformio\penv\Lib\site-packages\click\core.py\", line 783, in invoke\r\n return __callback(args, kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\Users\RIYAD\.platformio\penv\Lib\site-packages\platformio\project\commands\init.py\", line 122, in project_init_cmd\r\n generator.generate()\r\n File \"C:\Users\RIYAD\.platformio\penv\Lib\site-packages\platformio\project\integration\generator.py\", line 165, in generate\r\n contents = self._render_tpl(tpl_path, tpl_vars)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\Users\RIYAD\.platformio\penv\Lib\site-packages\platformio\project\integration\generator.py\", line 171, in _render_tpl\r\n return bottle.template(fp.read(), tpl_vars)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\Users\RIYAD\.platformio\penv\Lib\site-packages\bottle.py\", line 3668, in template\r\n return TEMPLATES[tplid].render(kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\Users\RIYAD\.platformio\penv\Lib\site-packages\bottle.py\", line 3457, in render\r\n self.execute(stdout, env)\r\n File \"C:\Users\RIYAD\.platformio\penv\Lib\site-packages\bottle.py\", line 3444, in execute\r\n eval(self.co, env)\r\n File \"\", line 75, in \r\nNameError: name 'includes' is not defined\r\n\r\n============================================================\r\n\r\nAn unexpected error occurred. Further steps:\r\n\r\n Verify that you have the latest version of PlatformIO using\r\n python -m pip install -U platformio command\r\n\r\n Try to find answer in FAQ Troubleshooting section\r\n https://docs.platformio.org/page/faq/index.html\r\n\r\n* Report this problem to the developers\r\n https://github.com/platformio/platformio-core/issues\r\n\r\n============================================================"