<div dir="ltr">みなさま<br><div><br></div><div>前回、道路グラフプラグインに関してご質問させていただきました、田久保です。<br></div><div>別の道路データを使った結果、うまく作動してくれました。高橋様、岩崎様、大変有難うございます。</div><div><br></div><div>(岩崎様:また、経路検索したのち、元の道路データとのintersectionを取り、属性テーブルで処理すると、経路内の属性ごとにそれぞれ距離をだすことが出来ました。)</div><div><br></div><div>さて、これら所作を全てpythonで行おうと思っているのですが、 以前は普通に使えていたのに関わらず、なぜか突然エラーが起きてしまいました。</div><div>Stack overflowで解決策として一つ、”Remove <span class="gmail-pun" style="font-family:inherit;font-style:inherit;font-variant-caps:inherit;white-space:inherit;font-size:inherit;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54)">/</span><span class="gmail-typ" style="font-family:inherit;font-style:inherit;font-variant-caps:inherit;white-space:inherit;font-size:inherit;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(43,145,175)">Users</span><span class="gmail-pun" style="font-family:inherit;font-style:inherit;font-variant-caps:inherit;white-space:inherit;font-size:inherit;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54)">/<</span><span class="gmail-pln" style="font-family:inherit;font-style:inherit;font-variant-caps:inherit;white-space:inherit;font-size:inherit;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54)">your_username</span><span class="gmail-pun" style="font-family:inherit;font-style:inherit;font-variant-caps:inherit;white-space:inherit;font-size:inherit;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54)">>/</span><span class="gmail-typ" style="font-family:inherit;font-style:inherit;font-variant-caps:inherit;white-space:inherit;font-size:inherit;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(43,145,175)">Library</span><span class="gmail-pun" style="font-family:inherit;font-style:inherit;font-variant-caps:inherit;white-space:inherit;font-size:inherit;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54)">/</span><span class="gmail-typ" style="font-family:inherit;font-style:inherit;font-variant-caps:inherit;white-space:inherit;font-size:inherit;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(43,145,175)">Preferences</span><span class="gmail-pun" style="font-family:inherit;font-style:inherit;font-variant-caps:inherit;white-space:inherit;font-size:inherit;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54)">/</span><span class="gmail-pln" style="font-family:inherit;font-style:inherit;font-variant-caps:inherit;white-space:inherit;font-size:inherit;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54)">org</span><span class="gmail-pun" style="font-family:inherit;font-style:inherit;font-variant-caps:inherit;white-space:inherit;font-size:inherit;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54)">.</span><span class="gmail-pln" style="font-family:inherit;font-style:inherit;font-variant-caps:inherit;white-space:inherit;font-size:inherit;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54)">qgis</span><span class="gmail-pun" style="font-family:inherit;font-style:inherit;font-variant-caps:inherit;white-space:inherit;font-size:inherit;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54)">.</span><span class="gmail-pln" style="font-family:inherit;font-style:inherit;font-variant-caps:inherit;white-space:inherit;font-size:inherit;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54)">QGIS2</span><span class="gmail-pun" style="font-family:inherit;font-style:inherit;font-variant-caps:inherit;white-space:inherit;font-size:inherit;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54)">.</span><span class="gmail-pln" style="font-family:inherit;font-style:inherit;font-variant-caps:inherit;white-space:inherit;font-size:inherit;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;color:rgb(48,51,54)">plist</span>”とあったので、消してみたのですが、うまくいきませんでした。</div><div><br></div><div>何が原因か全くわからないので、大変申し訳ありませんが、よろしくお願いいたします。</div><div><br></div><div>以下がエラー文になります。</div><div>#--------------------------------------------#</div><div>
<p style="margin:0px"><span style="font-family:"Courier New,courier"">Traceback (most recent call last):<br> File "", line 2, in <br> File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/console/console.py", line 46, in show_console<br> _console = PythonConsole(parent)<br> File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/console/console.py", line 83, in __init__<br> self.console = PythonConsoleWidget(self)<br> File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/console/console.py", line 109, in __init__<br> self.shell = ShellScintilla(self)<br> File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/console/console_sci.py", line 86, in __init__<br> self.refreshSettingsShell()<br> File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/console/console_sci.py", line 141, in refreshSettingsShell<br> self.setCaretForegroundColor(cursorColor)<br>TypeError: setCaretForegroundColor(self, QColor): argument 1 has unexpected type 'unicode'<br><br></span></p>
<p style="margin:0px">Python version:<br>2.7.10 (default, Jul 15 2017, 17:16:57) <br>[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)]<br><br>QGIS version:<br>2.18.15 'Las Palmas', exported</p><p style="margin:0px"></p><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"></div><p></p><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">#--------------------------------------------#</div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">田久保</div></div>