<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Adding a check for "dir_name is not None” in _apply_sysroot() fixes it: <br class=""><div class=""><br class=""></div><div class=""><div style="color: rgb(212, 212, 212); background-color: rgb(30, 30, 30); font-family: Menlo, Monaco, "Courier New", monospace; line-height: 18px; white-space: pre;" class=""><div class=""> <span style="color: #569cd6;" class="">def</span> <span style="color: #dcdcaa;" class="">_apply_sysroot</span>(<span style="color: #9cdcfe;" class="">self</span>, <span style="color: #9cdcfe;" class="">dir_name</span>):</div><div class=""> <span style="color: #ce9178;" class="">""" Replace any leading sys.prefix of a directory name with sysroot.</span></div><div class=""><span style="color: #ce9178;" class=""> """</span></div><br class=""><div class=""> <span style="color: #c586c0;" class="">if</span> dir_name <span style="color: #569cd6;" class="">is</span> <span style="color: #569cd6;" class="">not</span> <span style="color: #569cd6;" class="">None</span> <span style="color: #569cd6;" class="">and</span> dir_name.startswith(sys.prefix):</div><div class=""> dir_name = <span style="color: #569cd6;" class="">self</span>.sysroot + dir_name[<span style="color: #dcdcaa;" class="">len</span>(sys.prefix):]</div><br class=""><div class=""> <span style="color: #c586c0;" class="">return</span> dir_name</div></div><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 14, 2019, at 6:31 PM, Patrick Stinson <<a href="mailto:patrickkidd@gmail.com" class="">patrickkidd@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Just following directions...<div class=""><br class=""></div><div class="">Qt-5.13.1</div><div class="">Python-3.6.4</div><div class="">sip-4.19.19</div><div class="">PyQt5_gpl-5.13.1</div><div class="">PyQtPurchasing_gpl-5.13.0</div><div class=""><br class=""></div><div class="">Building from source. Tried first without —sip-incdir.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">turin:PyQtPurchasing_gpl-5.13.0 patrick$ python configure.py --debug --sysroot=$SYSROOT --sip-incdir=/Users/patrick/dev/vendor/sysroot-dev/include/python3.6dm/</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">An internal error occured. Please report all the output from the program,</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">including the following traceback, to <a href="mailto:support@riverbankcomputing.com" class="">support@riverbankcomputing.com</a>.</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Traceback (most recent call last):</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> File "configure.py", line 1954, in <module></span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> _main(sys.argv, pkg_config)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> File "configure.py", line 1785, in _main</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> target_config.apply_sysroot()</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> File "configure.py", line 867, in apply_sysroot</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> self.sip_inc_dir = self._apply_sysroot(self.sip_inc_dir)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> File "configure.py", line 873, in _apply_sysroot</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> if dir_name.startswith(sys.prefix):</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">AttributeError: 'NoneType' object has no attribute 'startswith'</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">turin:PyQtPurchasing_gpl-5.13.0 Patrick$ </span></div>
<br class=""></div></div></div></blockquote></div><br class=""></div></body></html>