platformio / platformio-home

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

Libraries: Stats #7616

Open smileyiA opened 1 month ago

smileyiA commented 1 month ago

PIO Core Call Error: "FileNotFoundError: Traceback (most recent call last):\r\n File \"E:\.VScode\.platformio\penv\Lib\site-packages\platformio\main.py\", line 103, in main\r\n File \"E:\.VScode\.platformio\penv\Lib\site-packages\click\core.py\", line 1157, in call\r\n return self.main(*args, *kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"E:\.VScode\.platformio\penv\Lib\site-packages\click\core.py\", line 1078, in main\r\n rv = self.invoke(ctx)\r\n ^^^^^^^^^^^^^^^^\r\n File \"E:\.VScode\.platformio\penv\Lib\site-packages\platformio\cli.py\", line 85, in invoke\r\n File \"E:\.VScode\.platformio\penv\Lib\site-packages\click\core.py\", line 1682, in invoke\r\n cmd_name, cmd, args = self.resolve_command(ctx, args)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"E:\.VScode\.platformio\penv\Lib\site-packages\click\core.py\", line 1729, in resolve_command\r\n cmd = self.get_command(ctx, cmd_name)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"E:\.VScode\.platformio\penv\Lib\site-packages\platformio\cli.py\", line 91, in get_command\r\n File \"E:\.VScode\.platformio\penv\Lib\site-packages\platformio\cli.py\", line 44, in _find_pio_commands\r\n File \"E:\.VScode\.platformio\python3\Lib\pathlib.py\", line 931, in iterdir\r\n for name in os.listdir(self):\r\n ^^^^^^^^^^^^^^^^\r\nFileNotFoundError: [WinError 3] 系统找不到指定的路径。: 'E:\\.VScode\\.platformio\\penv\\Lib\\site-packages\\platformio\\commands'\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============================================================"

robertlipe commented 1 month ago

I'm not a project team member, but am a mere user.

Including a reproducible set of steps so the developers can observe the steps really is key to making progress on reports like this. Devs can't "fix" (if it's their fault at all, which seems unlikely here) what they can't see.

Finding out what a Winerror 3 is (sounds like something Windows-ish) and why you might get some Chinese that translates to "System can not find the route." might be would be helpful steps you can undertake to speed things along. Maybe you don't have an E: drive or it's networked installation and you don't have read permission and confirming that you've taken the recommended troubleshooting steps and so on might be helpful.

Everyone is happier if you can help the devs (or other interested users) help you. I don't do Windows and I don't do Chinese, but maybe I can help you skip up in the line by helping you mold this question into steps that anyone can reproduce and then, hopefully, fast-forward through.

Honestly, it doesn't sound like something Platformio-specific at all; this sounds like a general setup issue of pathlib or core or python or ... something related to generally setting up the cross development issue of ESP32 on your Windows host.

(Please resist the urge to take this offline with me personally. I don't really do either Python, Windows, or a few other things, but I've been on both ends of the conversation and have some understanding of how to ask questions to get them moved closer to a resolution with less frustration for everyone. Here, the ball to provide a reproducible test case that works outside of PlatformIO and fails inside of PlatformIO really is in your court. Sorry.)

May The Source Be With You.