We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Fatal Python error: Py_Initialize: Unable to get the locale encoding

    • Frank Tuzi
      Subscriber

      When trying to start Fluent.  The start window appears.   I set working dir, num processors and press start.

      Then the system crashes

      $ fluent
      /opt/ohpc/pub/apps/ansys/v212/fluent/fluent21.2.0/bin/fluent -r21.2.0
      QXcbConnection: XCB error: 3 (BadWindow), sequence: 1007, resource id: 15301673, major code: 40 (TranslateCoords), minor code: 0
      /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
      /opt/ohpc/pub/apps/ansys/v212/fluent/fluent21.2.0/cortex/lnamd64/cortex.21.2.0 -f fluent -nm -license=premium (fluent "2d -pethernet  -host -alnamd64 -r21.2.0 -t12 -mpi=openmpi -cnf=/home/f
      tuzi/Documents/mpiTests/phosts -path/opt/ohpc/pub/apps/ansys/v212/fluent -ssh")
      Fatal Python error: Py_Initialize: Unable to get the locale encoding
      Traceback (most recent call last):
       File "/opt/ohpc/pub/apps/python/lib/python3.11/encodings/__init__.py", line 85, in search_function
       File "/opt/ohpc/pub/apps/python/lib/python3.11/encodings/__init__.py", line 64, in normalize_encoding
      AttributeError: 'str' object has no attribute 'isascii'
      /opt/ohpc/pub/apps/ansys/v212/fluent/fluent21.2.0/bin/fluent: line 2761: 147448 Aborted                 (core dumped) $NO_RUN $CORTEX_PRE $EXE -f $FLUENT_PROD $CX_FLAGS "$CX_FUNCTION"

       

      Any assistance would be greatly appreciated

       

    • George Karnos
      Ansys Employee

      What is the operating system that is installed?
      Are you running directly on the machine or using a remote viewing software? If remote, what are you using?

    • Frank Tuzi
      Subscriber

      Running in Rocky 8.9

      Logging in Via SSH

      using X to view GUIs

       

    • Frank Tuzi
      Subscriber

      Running in Rocky 8.9

      Logging in Via SSH

      using X to view GUIs

       

      Thank you  for any assistance that you  can provide

Viewing 3 reply threads
  • The topic ‘Fatal Python error: Py_Initialize: Unable to get the locale encoding’ is closed to new replies.