Error when compiling for esp32

i'm trying to program an esp 32 with arduino IDE but it keeps on going wrong when I compile.
This is the error message I keep getting.

esptool.py v3.0-dev
Serial port /dev/cu.WH-CH710N-SerialPort
Traceback (most recent call last):
File "esptool.py", line 3969, in
File "esptool.py", line 3962, in _main
File "esptool.py", line 3551, in main
File "esptool.py", line 271, in init
File "serial/init.py", line 88, in serial_for_url
File "serial/serialposix.py", line 268, in open
serial.serialutil.SerialException: [Errno 16] could not open port /dev/cu.WH-CH710N-SerialPort: [Errno 16] Resource busy: '/dev/cu.WH-CH710N-SerialPort'
Failed to execute script esptool
An error occurred while uploading the sketch

I think it's something with serial py but I'm not sure. Working with OSX 10.11.6

I had an issue with mine but it was so long ago now I can't remember what error I was getting but I fixed it by running "pip install pyserial"

Make sure that you have the right port selected and that no other application has that port open.

You can verify the port by checking to see that it disappears when you unplug the board's USB cable from your computer and reappears after you connect the board to the computer again. Make sure to close and then open the Tools > Port menu each time because the ports list only refreshes at the time the menu is opened.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.