{"id":3820,"date":"2020-12-03T21:55:59","date_gmt":"2020-12-03T12:55:59","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=3820"},"modified":"2020-12-04T08:08:31","modified_gmt":"2020-12-03T23:08:31","slug":"arduino-valueerror-dlsym","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/3820","title":{"rendered":"[Arduino] ValueError: dlsym"},"content":{"rendered":"<h3>1. \u75c7\u72b6<\/h3>\n<p>Arduino IDE\u306b\u304a\u3044\u3066\uff08\u30b5\u30f3\u30d7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\uff09\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u5931\u6557\u3059\u308b\u3002<\/p>\n<h3>2. \u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >Traceback (most recent call last):\r\n  File \"esptool.py\", line 57, in &lt;module&gt;\r\n  File \"\/Library\/Python\/2.7\/site-packages\/PyInstaller\/loader\/pyimod03_importers.py\", line 389, in load_module\r\n  File \"serial\/tools\/list_ports.py\", line 29, in &lt;module&gt;\r\n  File \"\/Library\/Python\/2.7\/site-packages\/PyInstaller\/loader\/pyimod03_importers.py\", line 389, in load_module\r\n  File \"serial\/tools\/list_ports_posix.py\", line 31, in &lt;module&gt;\r\n  File \"\/Library\/Python\/2.7\/site-packages\/PyInstaller\/loader\/pyimod03_importers.py\", line 389, in load_module\r\n  File \"serial\/tools\/list_ports_osx.py\", line 32, in &lt;module&gt;\r\nValueError: dlsym(RTLD_DEFAULT, kIOMasterPortDefault): symbol not found\r\nFailed to execute script esptool\r\nexit status 255\r\n\/Applications\/Arduino.app\/Contents\/Java\/arduino-builder\u304c255\u3092\u8fd4\u3057\u307e\u3057\u305f\u3002\r\n\u30dc\u30fc\u30c9M5Stack-Core-ESP32\u306b\u5bfe\u3059\u308b\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\r\n\r\n\r\n\u300c\u30d5\u30a1\u30a4\u30eb\u300d\u30e1\u30cb\u30e5\u30fc\u306e\u300c\u74b0\u5883\u8a2d\u5b9a\u300d\u304b\u3089\r\n\u300c\u3088\u308a\u8a73\u7d30\u306a\u60c5\u5831\u3092\u8868\u793a\u3059\u308b\uff1a\u30b3\u30f3\u30d1\u30a4\u30eb\u300d\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\r\n\u3088\u308a\u8a73\u3057\u3044\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\r\n\r\n\r\n\r\nArduino\uff1a1.8.13 (Mac OS X), \u30dc\u30fc\u30c9\uff1a\"M5Stack-Core-ESP32, QIO, 80MHz, Default, 921600, None\"<\/pre>\n<p><!--more--><\/p>\n<h3>3. \u74b0\u5883<\/h3>\n<ul>\n<li>Arduino IDE 1.8.13<\/li>\n<li>macOS Big Sur (11.0.1)<\/li>\n<li>Python 2.7.16<\/li>\n<li>Python 3.9.0<\/li>\n<\/ul>\n<h3>4. \u539f\u56e0<\/h3>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u6e08\u307f\u306e <code>esptool<\/code> \u3067\u306f\u6b63\u3057\u304f\u52d5\u4f5c\u3057\u306a\u3044\u3002<\/p>\n<h3>5. \u4fee\u6b63 \u6982\u8981<\/h3>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u6e08\u307f\u306e <code>esptool<\/code> \u306e\u4ee3\u308f\u308a\u306b\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u524d\u306e <code>esptool.py<\/code> \u3092\u547c\u3073\u51fa\u3059\u3088\u3046\u306b\u5dee\u3057\u66ff\u3048\u308b\u3002<\/p>\n<h3>6. \u4fee\u6b63 \u8a73\u7d30<\/h3>\n<h4>6.1. \u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3059\u308b<\/h4>\n<pre class=\"lang:sh decode:true \" >$ cp \/Users\/Nobody\/Library\/Arduino15\/packages\/esp32\/hardware\/esp32\/1.0.4\/tools\/esptool.py \\\r\n\/Users\/Nobody\/Library\/Arduino15\/packages\/esp32\/tools\/esptool_py\/2.6.1\/esptool.py<\/pre>\n<h4>6.2. \u30b3\u30d4\u30fc\u5148\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u5b9f\u884c\u6a29\u9650\u3092\u4e0e\u3048\u308b<\/h4>\n<pre class=\"lang:sh decode:true \" >$ chmod +x \/Users\/Nobody\/Library\/Arduino15\/packages\/esp32\/hardware\/esp32\/1.0.4\/tools\/esptool.py \\\r\n\/Users\/Nobody\/Library\/Arduino15\/packages\/esp32\/tools\/esptool_py\/2.6.1\/esptool.py\r\n<\/pre>\n<h4>6.3. Arduino IDE\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u63db\u3048\u308b<\/h4>\n<h5>6.3.1. \u7de8\u96c6\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb<\/h5>\n<p><code>\/Users\/Nobody\/Library\/Arduino15\/packages\/esp32\/hardware\/esp32\/1.0.4\/platform.txt<\/code><\/p>\n<h5>6.3.2. \u7de8\u96c6\u5bfe\u8c61\u884c(diff)<\/h5>\n<pre class=\"lang:diff decode:true \" >- tools.esptool_py.cmd=esptool\r\n+ tools.esptool_py.cmd=esptool.py<\/pre>\n<h3>7. \u53c2\u8003\u30da\u30fc\u30b8<\/h3>\n<p><a href=\"https:\/\/forum.arduino.cc\/index.php?topic=699989\">ESP32 \/ Big Sur Mac OS compilation fail<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u75c7\u72b6 Arduino IDE\u306b\u304a\u3044\u3066\uff08\u30b5\u30f3\u30d7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\uff09\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u5931\u6557\u3059\u308b\u3002 2. \u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8 Traceback (most recent call last): File &#8220;esptool.py&#8221;, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[107],"class_list":["post-3820","post","type-post","status-publish","format-standard","hentry","category-memo","tag-arduino"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/3820","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=3820"}],"version-history":[{"count":9,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/3820\/revisions"}],"predecessor-version":[{"id":3831,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/3820\/revisions\/3831"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=3820"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=3820"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=3820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}