Difference between revisions of "Arduino Big-Sur Workaround"

From Digipool-Wiki
Jump to: navigation, search
(Created page with " Fehlermeldung <pre> pyserial or esptool directories not found next to this upload.py tool. An error occurred while uploading the sketch </pre> <br> == Workaround == # Ope...")
 
(Workaround)
 
(5 intermediate revisions by 2 users not shown)
Line 11: Line 11:
 
== Workaround ==
 
== Workaround ==
  
# Open ~/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/pyserial/serial/tools/list_ports_osx.py
+
# Suche die Datei: '''list_ports_osx.py'''
# Comment out lines 29 and 30 and append these lines:
+
#* Verwende '''cmd + shift + [.]''' um den versteckten '''Library''' in deinem Konto sichtbar zu machen
  iokit = ctypes.cdll.LoadLibrary('/System/Library/Frameworks/IOKit.framework/IOKit')
+
#* Folge diesem Pfad: '''~/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/pyserial/serial/tools/'''
  cf = ctypes.cdll.LoadLibrary('/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation')
+
#* Und öffne die Datei '''list_ports_osx.py''' mit einem Texteditor
 +
# Comment out lines 29 and 30
 +
# Append these lines:
 +
#* iokit = ctypes.cdll.LoadLibrary('/System/Library/Frameworks/IOKit.framework/IOKit')
 +
#* cf = ctypes.cdll.LoadLibrary('/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation')
  
 
<br>
 
<br>
 
  
 
== The code should look like this ==
 
== The code should look like this ==

Latest revision as of 14:37, 25 January 2021

Fehlermeldung

pyserial or esptool directories not found next to this upload.py tool.
An error occurred while uploading the sketch


Workaround

  1. Suche die Datei: list_ports_osx.py
    • Verwende cmd + shift + [.] um den versteckten Library in deinem Konto sichtbar zu machen
    • Folge diesem Pfad: ~/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/pyserial/serial/tools/
    • Und öffne die Datei list_ports_osx.py mit einem Texteditor
  2. Comment out lines 29 and 30
  3. Append these lines:
    • iokit = ctypes.cdll.LoadLibrary('/System/Library/Frameworks/IOKit.framework/IOKit')
    • cf = ctypes.cdll.LoadLibrary('/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation')


The code should look like this

#iokit = ctypes.cdll.LoadLibrary(ctypes.util.find_library('IOKit'))
#cf = ctypes.cdll.LoadLibrary(ctypes.util.find_library('CoreFoundation'))
iokit = ctypes.cdll.LoadLibrary('/System/Library/Frameworks/IOKit.framework/IOKit')
cf = ctypes.cdll.LoadLibrary('/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation')