platformio / platformio-home

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

Could not initialize project #998

Closed kasunnirmala closed 4 years ago

kasunnirmala commented 4 years ago

PIO Core Call Error: "The current working directory C:\Users\Kasun Nirmala\Documents\PlatformIO\Projects\NBIOT will be used for the project.\r\n\r\nThe next files/directories have been created in C:\Users\Kasun Nirmala\Documents\PlatformIO\Projects\NBIOT\r\ninclude - Put project header files here\r\nlib - Put here project specific (private) libraries\r\nsrc - Put project source files here\r\nplatformio.ini - Project Configuration File\r\n\n\nError: Traceback (most recent call last):\r\n File \"c:\users\kasun nirmala\.platformio\penv\lib\site-packages\platformio\main.py\", line 109, in main\r\n cli() # pylint: disable=no-value-for-parameter\r\n File \"c:\users\kasun nirmala\.platformio\penv\lib\site-packages\click\core.py\", line 829, in call\r\n return self.main(args, kwargs)\r\n File \"c:\users\kasun nirmala\.platformio\penv\lib\site-packages\click\core.py\", line 782, in main\r\n rv = self.invoke(ctx)\r\n File \"c:\users\kasun nirmala\.platformio\penv\lib\site-packages\platformio\commands\init.py\", line 44, in invoke\r\n return super(PlatformioCLI, self).invoke(ctx)\r\n File \"c:\users\kasun nirmala\.platformio\penv\lib\site-packages\click\core.py\", line 1259, in invoke\r\n return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n File \"c:\users\kasun nirmala\.platformio\penv\lib\site-packages\click\core.py\", line 1066, in invoke\r\n return ctx.invoke(self.callback, ctx.params)\r\n File \"c:\users\kasun nirmala\.platformio\penv\lib\site-packages\click\core.py\", line 610, in invoke\r\n return callback(args, *kwargs)\r\n File \"c:\users\kasun nirmala\.platformio\penv\lib\site-packages\click\decorators.py\", line 21, in new_func\r\n return f(get_current_context(), args, *kwargs)\r\n File \"c:\users\kasun nirmala\.platformio\penv\lib\site-packages\platformio\commands\project.py\", line 134, in project_init\r\n init_base_project(project_dir)\r\n File \"c:\users\kasun nirmala\.platformio\penv\lib\site-packages\platformio\commands\project.py\", line 174, in init_base_project\r\n config.save()\r\n File \"c:\users\kasun nirmala\.platformio\penv\lib\site-packages\platformio\project\config.py\", line 463, in save\r\n with open(path or self.path, \"w+\") as fp:\r\nPermissionError: [Errno 13] Permission denied: 'C:\\Users\\Kasun Nirmala\\Documents\\PlatformIO\\Projects\\NBIOT\\platformio.ini'\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 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.html\r\n\r\n Report this problem to the developers\r\n https://github.com/platformio/platformio-core/issues\r\n\r\n============================================================"

valeros commented 4 years ago

Something is blocking PlatformIO or your current user doesn't have rights to write to the following file:

PermissionError: [Errno 13] Permission denied: 'C:\\Users\\Kasun Nirmala\\Documents\\PlatformIO\\Projects\\NBIOT\\platformio.ini