PIO Core Call Error: "Platform C:\\Users\\agambier\\.platformio\\platforms\\espressif8266\r\n--------\r\nUpdating espressif8266
@ 2.0.4
[2.2.1]\r\r\nUninstalling espressif8266 @ 2.0.4: \t[OK]\r\nPlatformManager: Installing espressif8266 @ 2.2.1\r\r\nDownloading\r\nDownloading\r\nUnpacking\r\nUnpacking\r\nespressif8266 @ 2.2.1 has been successfully installed!\r\nUpdating tool-esptoolpy
@ 1.20600.0
[Up-to-date]\r\nUpdating tool-mkspiffs
@ 1.200.0
[Up-to-date]\r\nUpdating tool-esptool
@ 1.413.0
[Up-to-date]\r\nUpdating toolchain-xtensa
@ 1.40802.0
[2.40802.190218]\n\nError: Traceback (most recent call last):\r\n

 \"c:\\users\\agambier\\.platformio\\penv\\lib\\site-packages\\platformio\\__main__.py\", line 120, in main\r\n
cli(None, None, None)\r\n

 \"c:\\users\\agambier\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 700, in __call__\r\n
return self.main(*args, **kwargs)\r\n

 \"c:\\users\\agambier\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 680, in main\r\n
rv = self.invoke(ctx)\r\n

 \"c:\\users\\agambier\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 1027, in invoke\r\n
return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n

 \"c:\\users\\agambier\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 1027, in invoke\r\n
return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n

 \"c:\\users\\agambier\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 873, in invoke\r\n
return ctx.invoke(self.callback, **ctx.params)\r\n

 \"c:\\users\\agambier\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 508, in invoke\r\n
return callback(*args, **kwargs)\r\n

 \"c:\\users\\agambier\\.platformio\\penv\\lib\\site-packages\\platformio\\commands\\platform.py\", line 385, in platform_update\r\n
platform, only_packages=only_packages, only_check=only_check)\r\n

 \"c:\\users\\agambier\\.platformio\\penv\\lib\\site-packages\\platformio\\managers\\platform.py\", line 131, in update\r\n
p.update_packages(only_check)\r\n

 \"c:\\users\\agambier\\.platformio\\penv\\lib\\site-packages\\platformio\\managers\\platform.py\", line 312, in update_packages\r\n
self.pm.update(manifest['__pkg_dir'], requirements, only_check)\r\n

 \"c:\\users\\agambier\\.platformio\\penv\\lib\\site-packages\\platformio\\managers\\package.py\", line 831, in update\r\n
self.uninstall(pkg_dir, after_update=True)\r\n

 \"c:\\users\\agambier\\.platformio\\penv\\lib\\site-packages\\platformio\\managers\\package.py\", line 748, in uninstall\r\n
with Lock
(self.package_dir):\r\n

 \"c:\\users\\agambier\\.platformio\\penv\\lib\\site-packages\\platformio\\lockfile.py\", line 102, in __enter__\r\n
self.acquire()\r\n

 \"c:\\users\\agambier\\.platformio\\penv\\lib\\site-packages\\platformio\\lockfile.py\", line 86, in acquire\r\n
return self._lock()\r\n

 \"c:\\users\\agambier\\.platformio\\penv\\lib\\site-packages\\platformio\\lockfile.py\", line 61, in _lock\r\n
self._fp = open(self._lock_path, \"w\")\r\nIOError: [Errno 13] Permission denied: 'C:\\\\Users\\\\agambier\\\\.platformio\\\\packages.lock'\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============================================================"
Traceback (most recent call last):


 "test_image.py", line 26, in <module>

model.load_state_dict(torch.load('epochs/' + MODEL_NAME))


 "/home/gasoon/anaconda3/envs/vd/lib/python3.6/site-packages/torch/nn/modules/module.py", line 522, in load_state_dict

.format(name))
KeyError: 'unexpected key "block8.2.conv.weight" in state_dict'
