platformio / platformio-home

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

Could not initialize project #7839

Open xing12fei opened 2 months ago

xing12fei commented 2 months ago

PIO Core Call Error: "The following files/directories have been created in /Users/xingfei/Movies/rhino/rihno20240501\ninclude - Put project header files here\nlib - Put project specific (private) libraries here\nsrc - Put project source files here\nplatformio.ini - Project Configuration File\nResolving upesy_wroom dependencies...\nAlready up-to-date.\n\n\nUnboundLocalError: Traceback (most recent call last):\n File \"/Users/xingfei/.platformio/penv/lib/python3.10/site-packages/platformio/main.py\", line 103, in main\n cli() # pylint: disable=no-value-for-parameter\n File \"/Users/xingfei/.platformio/penv/lib/python3.10/site-packages/click/core.py\", line 1157, in call\n return self.main(args, kwargs)\n File \"/Users/xingfei/.platformio/penv/lib/python3.10/site-packages/click/core.py\", line 1078, in main\n rv = self.invoke(ctx)\n File \"/Users/xingfei/.platformio/penv/lib/python3.10/site-packages/platformio/cli.py\", line 85, in invoke\n return super().invoke(ctx)\n File \"/Users/xingfei/.platformio/penv/lib/python3.10/site-packages/click/core.py\", line 1688, in invoke\n return _process_result(sub_ctx.command.invoke(sub_ctx))\n File \"/Users/xingfei/.platformio/penv/lib/python3.10/site-packages/click/core.py\", line 1434, in invoke\n return ctx.invoke(self.callback, ctx.params)\n File \"/Users/xingfei/.platformio/penv/lib/python3.10/site-packages/click/core.py\", line 783, in invoke\n return __callback(args, *kwargs)\n File \"/Users/xingfei/.platformio/penv/lib/python3.10/site-packages/platformio/project/commands/init.py\", line 115, in project_init_cmd\n init_sample_code(config, environment)\n File \"/Users/xingfei/.platformio/penv/lib/python3.10/site-packages/platformio/project/commands/init.py\", line 400, in init_sample_code\n is_cpp_project = p.name not in [\"intel_mcs51\", \"ststm8\"]\nUnboundLocalError: local variable 'p' referenced before assignment\n\n============================================================\n\nAn unexpected error occurred. Further steps:\n\n Verify that you have the latest version of PlatformIO using\n python -m pip install -U platformio command\n\n Try to find answer in FAQ Troubleshooting section\n https://docs.platformio.org/page/faq/index.html\n\n Report this problem to the developers\n https://github.com/platformio/platformio-core/issues\n\n============================================================"

davewyers commented 2 months ago

Verify that you have the latest version of PlatformIO using python -m pip install -U platformio