-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File uploading is stuck #77
Comments
Uploading is done via a Python script microupload.py located in the plugin installation directory. See this doc for the platform-specific location of the directory with installed plugins. In order to debug this problem you can try running /path/to/your/project/virtualenv/bin/python microupload.py with the necessary parameters from the system command line and see what it does. Feel free to copy this script into your project directory so you can modify it / debug it within PyCharm. |
OK, thanks a lot! I will try to do that and be back with results. |
@vlasovskikh |
Is your REPL terminal open when you are trying to upload? I noticed that if it is open, uploading will get stuck like you describe. |
Unfortunately no, a REPL terminal was not open at the time of upload. Can you think of any thing else which will cause "files.put(remote_path, fd.read())" to block the script? |
I've also faced this issue, with one ESP32 board, which other tools were able to connect and flash files to. However, trying with a different ESP32 board, I was able to get the tool to flash the files sucessfully. I'll post here if I do more digging on the "bad board" |
did you find the solution on this issue |
For me, I ended up using a different board and the upload is working fine ever since... Did not have the time to dig deeper into the issue. |
Great, but I have a solution for that, I have d one this to avoid that every time and it alwasys work.
1. When you are uploading make sure the running terminals, like "REPL terminal” or “Python terminal” are all closed. These terminals are found on the bottom of the IDE..
2. If for some reason it doesn’t upload, I found that if you flash it again with esptool.py on the terminal, it works fine. (You can create a script to do that, It will be easy)
On 15 Jul 2019, at 12:59, Lucas Paul <[email protected]<mailto:[email protected]>> wrote:
For me, I ended up using a different board and the upload is working fine ever since... Did not have the time to dig deeper into the issue.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#77>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AGBAYD6ET5NXKNIJ37NG2XTP7RC7DANCNFSM4GKIU5EQ>.
|
Closing this issue as obsolete. If the problem is still relevant to you, feel free to comment or open another issue. |
I am facing the exact same issue. The upload is stuck forever. |
Turns out adding a delay of 3 seconds like below in microupload.py solves the issue. While debugging step by step I found out that there was no issue at all. It works if we slow it down a bit. 😃
|
Hi, |
There is #142 that proposes one way to fix it. I've left my review comments there suggesting yet another approach. |
I have the same issue now, Ive tried thay but the line I get pointed out debugging is "raise DocopExit()", any idea what my problem might be? |
I still have this one .... No file uploaded. I have tried different delay times in microupload.py, but nothing helps. I also try the boot button while Run flash, but no positive result. |
I followed every step in the README file, though when I press run to upload the python files I get:
"Connecting to COM4
Uploading files: 0% (0/1)
C:\Projects\MicroPython\ESP32\main.py -> main.py"
This just stays like this forever.
Please tell me what to do.
The text was updated successfully, but these errors were encountered: