<html><body><div style="font-family: Arial; font-size: 10pt; color: #000000"><div>My App builds but a "UnknownTimeZoneError" is thrown by pytz/__init__.pyo when it is run.</div><div><br></div><div>I've put various logging lines and its looks to me as if the issue is where this file tries to confirm the existence of the zoneinfo file(s): for each tz in a hardcoded array it checks to see if it can open the file defined as:</div><div><br></div><div>filename = os.path.join(os.path.dirname(__file__),'zoneinfo', *name_parts)</div><div><br></div><div>This generates something like ":/pytz/zoneinfo/Europe/London".</div><div><br></div><div>Now the question is what does the ":" represent? The actual path to the pre-build file is<span style="font-size: 10pt;">, in this example, "$SYSROOT/resources/pytz/zoneinfo/Europe/London" which does exist.</span></div><div><span style="font-size: 10pt;"><br></span></div><div><span style="font-size: 10pt;">So, when pyqtdeploy builds the App does the ":" in the filename above represent the "internal" root of the App so that when it tries to open this file it is looking within the App's own directory structure and not some "real" path?</span></div><div><span style="font-size: 10pt;"><br></span></div><div><span style="font-size: 10pt;">If this is not the case and it is trying to open a file external to the app and within the general filesystem how can I get to read the zoneinfo which is, I assume, being embedded in the App as a resource?</span></div><div><span style="font-size: 10pt;"><br></span></div><div><span style="font-size: 10pt;">Thanks.</span></div><div><br></div><div><span name="x"></span>-- <br>Regards,<br><div><br></div>John Hackett<br>Icon Information Systems<br>74 Gibsons Hill, Norbury, London, SW16 3JS<br>t: 020 8764 2663<br>f: 020 8711 3370<br>m: 07801-231118<br>e: john.hackett@icon-is.co.uk<br>w: www.icon-is.co.uk<br>skype: john_hackett<br>twitter: @iconinfosys<span name="x"></span><br></div><div><br></div></div></body></html>