


{"id":363225,"date":"2024-04-19T14:45:26","date_gmt":"2024-04-19T14:45:26","guid":{"rendered":"\/forum\/forums\/topic\/fatal-python-error-py_initialize-unable-to-get-the-locale-encoding\/"},"modified":"2024-04-19T14:45:26","modified_gmt":"2024-04-19T14:45:26","slug":"fatal-python-error-py_initialize-unable-to-get-the-locale-encoding","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/fatal-python-error-py_initialize-unable-to-get-the-locale-encoding\/","title":{"rendered":"Fatal Python error: Py_Initialize: Unable to get the locale encoding"},"content":{"rendered":"<p>When trying to start Fluent.&nbsp; The start window appears.&nbsp; &nbsp;I set working dir, num processors and press start.<\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/04\/19-04-2024-1713537853-mceclip0.png\"><\/p>\n<p>Then the system crashes<\/p>\n<p>$ fluent <br \/>\/opt\/ohpc\/pub\/apps\/ansys\/v212\/fluent\/fluent21.2.0\/bin\/fluent -r21.2.0 <br \/>QXcbConnection: XCB error: 3 (BadWindow), sequence: 1007, resource id: 15301673, major code: 40 (TranslateCoords), minor code: 0 <br \/>\/opt\/ohpc\/pub\/apps\/ansys\/v212\/fluent\/fluent21.2.0\/bin\/fluent -r21.2.0 2d -t12 -pethernet -mpi=openmpi -cnf=\/home\/ftuzi\/Documents\/mpiTests\/phosts -nm -ssh -license=premium <br \/>\/opt\/ohpc\/pub\/apps\/ansys\/v212\/fluent\/fluent21.2.0\/cortex\/lnamd64\/cortex.21.2.0 -f fluent -nm -license=premium (fluent &#8220;2d -pethernet &nbsp;-host -alnamd64 -r21.2.0 -t12 -mpi=openmpi -cnf=\/home\/f<br \/>tuzi\/Documents\/mpiTests\/phosts -path\/opt\/ohpc\/pub\/apps\/ansys\/v212\/fluent -ssh&#8221;) <br \/>Fatal Python error: Py_Initialize: Unable to get the locale encoding <br \/>Traceback (most recent call last): <br \/>&nbsp;File &#8220;\/opt\/ohpc\/pub\/apps\/python\/lib\/python3.11\/encodings\/__init__.py&#8221;, line 85, in search_function <br \/>&nbsp;File &#8220;\/opt\/ohpc\/pub\/apps\/python\/lib\/python3.11\/encodings\/__init__.py&#8221;, line 64, in normalize_encoding <br \/>AttributeError: &#8216;str&#8217; object has no attribute &#8216;isascii&#8217; <br \/>\/opt\/ohpc\/pub\/apps\/ansys\/v212\/fluent\/fluent21.2.0\/bin\/fluent: line 2761: 147448 Aborted &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(core dumped) $NO_RUN $CORTEX_PRE $EXE -f $FLUENT_PROD $CX_FLAGS &#8220;$CX_FUNCTION&#8221;<\/p>\n<p>&nbsp;<\/p>\n<p>Any assistance would be greatly appreciated<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-363225","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["82074","68381"],"_bbp_author_ip":["23.206.193.59"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["616"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["363225"],"_bbp_forum_id":["27792"],"_bbp_engagement":["68381","82074"],"_bbp_voice_count":["2"],"_bbp_reply_count":["3"],"_bbp_last_reply_id":["364020"],"_bbp_last_active_id":["364020"],"_bbp_last_active_time":["2024-04-24 17:02:13"]},"test":"ftuziliberty-edu"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/363225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/363225\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=363225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}