Closed kingyin3613 closed 12 months ago
Hello @kingyin3613,
Thank you for reporting this!
It seems that colors and greek letters are not being properly encoded by your OS - Are you running CRATE on Windows?
I believe that I found a similar problem discussed here, where some comments suggest that I must be explicit about the encoding (UTF-8) when running on Windows OS.
I attempted to fix CRATE accordingly, but I am not facing this issue in either Linux or MacOS. Can you please check if the latest version available on CRATE's GitHub repository (master branch) solved the issue?
Thank you!
Yes, I'm using Windows. The encoding error was totally gone with the latest version of CRATE, I think the functionality of this package on my Windows OS has been verified. Although I can still see "←[xx m" in the console (see below), but it is just a minor display issue, you may want to fix this in future versions. Thanks for the quick updates @BernardoFerreira !
←[32m
End phase: ←[37mSolve reduced microscale equilibrium problem (phase duration time = 7.52e+01s)
--------------------------------------------------------------------------------------------←[0m
←[37m~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~←[0m
←[33mEnding program execution at: ←[0m20h42m35s (17/Jul/2023)
←[33mProblem analysed: ←[0mexample_1_uniaxial_tension_nc54
←[33mTotal execution time: ←[0m3.04e+02s (~0h5m)
←[33mExecution times:
←[0m Phase Duration (s) %
---------------------------------------------------------------------------
Read input data 5.89e-01 0.19
Compute cluster analysis data matrix 3.44e+00 1.13
Perform RVE cluster analysis 1.38e+01 4.53
Compute cluster interaction tensors 9.91e+01 32.56
Solve reduced microscale equilibrium problem 7.52e+01 24.70
Accumulated post-processing operations 1.12e+02 36.81
---------------------------------------------------------------------------
←[32mProgram Completed←[0m
Nice to know that at least the core functionality is now working!
Concerning the colors not displaying properly on Windows, I believe that this has to do with the way that the Python package colorama works in Windows. I found a thread reporting a similar problem, but I currently don't have access to a Windows OS to test some of the simple solutions proposed there.
I'll leave this open and try to fix it as soon as get my hands on a Windows OS!
Hi! I tried to install and run this package on a fresh conda env:
However, I had these strange "xx m" and errors: