An error occurred while uploading the sketch.

i'm using a DHT11 humidity sensor, my cable works as i have tried before i just have no idea why its giving me errors

i posted a query earlier with error message from " file>preferences>upload(checked)"

this is with 'compilation (checked)'

</>
Arduino: 1.8.7 (Mac OS X), Board: "Arduino/Genuino Uno"

/Applications/Arduino 2.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino 2.app/Contents/Java/hardware -tools /Applications/Arduino 2.app/Contents/Java/tools-builder -tools /Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -built-in-libraries /Applications/Arduino 2.app/Contents/Java/libraries -libraries /Users/ifrahs/Documents/Arduino/libraries -fqbn=arduino:avr:uno -ide-version=10807 -build-path /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303 -warnings=none -build-cache /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_cache_725994 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -verbose /Users/ifrahs/Documents/Arduino/sketch_dec15a/sketch_dec15a.ino
/Applications/Arduino 2.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino 2.app/Contents/Java/hardware -tools /Applications/Arduino 2.app/Contents/Java/tools-builder -tools /Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -built-in-libraries /Applications/Arduino 2.app/Contents/Java/libraries -libraries /Users/ifrahs/Documents/Arduino/libraries -fqbn=arduino:avr:uno -ide-version=10807 -build-path /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303 -warnings=none -build-cache /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_cache_725994 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -verbose /Users/ifrahs/Documents/Arduino/sketch_dec15a/sketch_dec15a.ino
Using board 'uno' from platform in folder: /Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr
Using core 'arduino' from platform in folder: /Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr
Detecting libraries used...
"/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-I/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard" /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch/sketch_dec15a.ino.cpp -o /dev/null
"/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-I/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard" -I/Users/ifrahs/Documents/Arduino/libraries/DHTLib /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch/sketch_dec15a.ino.cpp -o /dev/null
Using cached library dependencies for file: /Users/ifrahs/Documents/Arduino/libraries/DHTLib/dht.cpp
Generating function prototypes...
"/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-I/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard" -I/Users/ifrahs/Documents/Arduino/libraries/DHTLib /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch/sketch_dec15a.ino.cpp -o /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/preproc/ctags_target_for_gcc_minus_e.cpp
"/Applications/Arduino 2.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
"/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-I/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard" -I/Users/ifrahs/Documents/Arduino/libraries/DHTLib /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch/sketch_dec15a.ino.cpp -o /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch/sketch_dec15a.ino.cpp.o
Compiling libraries...
Compiling library "DHTLib"
Using previously compiled file: /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/libraries/DHTLib/dht.cpp.o
Compiling core...
Using precompiled core: /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_cache_725994/core/core_arduino_avr_uno_a44201f00637cc7de5d2873b25582122.a
Linking everything together...
"/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch_dec15a.ino.elf /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch/sketch_dec15a.ino.cpp.o /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/libraries/DHTLib/dht.cpp.o /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/../arduino_cache_725994/core/core_arduino_avr_uno_a44201f00637cc7de5d2873b25582122.a -L/var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303 -lm
"/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch_dec15a.ino.elf /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch_dec15a.ino.eep
"/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-objcopy" -O ihex -R .eeprom /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch_dec15a.ino.elf /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch_dec15a.ino.hex
Using library DHTLib in folder: /Users/ifrahs/Documents/Arduino/libraries/DHTLib (legacy)
"/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-size" -A /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch_dec15a.ino.elf
Sketch uses 4300 bytes (13%) of program storage space. Maximum is 32256 bytes.
Global variables use 239 bytes (11%) of dynamic memory, leaving 1809 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't open device "/dev/cu.usbmodem1421": No such file or directory
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
</>