Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2017-09-06 10:38:48

Wbriand
Member
Registered: 2017-07-03
Posts: 12

UnicodeDecodeError

Hi,

I used the new Salome release for 2 days and I was able to run cases until today. Now I have this error (UnicodeDecodeError), see the screenshot attached.

It seems to be an error related to python.

I use a spanish keyboard layout in an english environment (Ubuntu 16.04 LTS).

Best regards,

William


Attachments:
bug.png, Size: 20.19 KiB, Downloads: 330

Offline

#2 2017-09-06 11:33:39

Wbriand
Member
Registered: 2017-07-03
Posts: 12

Re: UnicodeDecodeError

It seems that change my keyboard layout to english solve the problem.

Offline

#3 2017-09-10 07:31:56

k_zurawski
Member
From: Gdansk (Poland)
Registered: 2010-03-13
Posts: 166

Re: UnicodeDecodeError

Hi. I had the same error. Thanks for solution.


regards,
Krzysztof

Offline

#4 2017-10-03 10:56:27

GiuliaM_91
Member
From: Italy
Registered: 2017-10-03
Posts: 16

Re: UnicodeDecodeError

Hello,

I've installed the new version Salome- meca 2017, because the 2016 version gave me problems.
Now, everytime I do an exercise, appears the same error: I put here a screenshot about the error.

The error is: Type OSError

When I search on Web it suggests me that is a Python error. My version Ubuntu is 16.04 LTS.

Someone can help me, or suggest me something to do?

Thanks!

Best regards,

Giulia


Attachments:
1.3 - MyError_OSError.png, Size: 29.75 KiB, Downloads: 237

Offline

#5 2017-10-03 22:14:58

Thomas DE SOZA
Guru
From: EDF
Registered: 2007-11-23
Posts: 3,066

Re: UnicodeDecodeError

Hi,

GiuliaM_91 wrote:

Someone can help me, or suggest me something to do?

If the error persists and is reproducible, could you please do the following ?

  1. Launch Salome-Meca in DEBUG mode from a terminal:

    DEBUG=1 $HOME/salome_meca/appli_V2017/salome
  2. Use the software until the error is reproduced

  3. Copy the output from the terminal and attach it to this post

Thanks for your feedback.

TdS

Offline

#6 2017-10-04 20:06:41

GiuliaM_91
Member
From: Italy
Registered: 2017-10-03
Posts: 16

Re: UnicodeDecodeError

Hi Thomas,
Here I put the output message: I copied it in a word document.

Thanks for your help!

Giulia


Attachments:
output_terminal.docx, Size: 6.84 KiB, Downloads: 243

Offline

#7 2017-10-10 17:38:35

Thomas DE SOZA
Guru
From: EDF
Registered: 2007-11-23
Posts: 3,066

Re: UnicodeDecodeError

Hi Giulia,

Thanks for the output. Looking at it, it seems that the location where you're saving your HDF file contains blanks in its name :

/home/giulia/Desktop/GIULIA_FEM_TESI/3.1 - SHELL_CONFRONTO_8Settembre/Caso1 - Mesh_250/Caso1_250_salome8/mesh250Press.hdf

Please try saving your HDF file in a location that does not contain any blank (replace that with "_" for example) and get back to us with the result.

Best regards,

TdS

Offline

#8 2017-11-01 23:22:14

MarcinX
Member
Registered: 2017-10-27
Posts: 8

Re: UnicodeDecodeError

Hello,
I have the same problem again. I thought that I have solved it by changing my OS an keyboard to English (US). Everything has been OK, until now... I tried to open file that I have created on the another computer (with the same configuration). Copied it via dropbox (if it is important). When I try to run the calculations in AsterStuty I see "UnicodeDecodeError". When I close and open again the .hdf file, all setting form AsterStudy dissipated and I have a blank design. It seems that everything is lost.

In debug mode the error appears when I try to activate AsterStudy (in normal mode there is no error): "Failed to activate module AsterStudy". Please find attached report from console. There are "UnicodeDecodeError" errors.

I know that this is the next problem I am writing on this forum... I do not know why I have such troubles when I try to do something in Salome-Meca. I believe these are the effect that I have no enough experience yet.

Thanks for hints.


Attachments:
UnicodeDecodeError_MarcinX.txt, Size: 23.57 KiB, Downloads: 264

Offline

#9 2017-11-02 13:48:43

Thomas DE SOZA
Guru
From: EDF
Registered: 2007-11-23
Posts: 3,066

Re: UnicodeDecodeError

Hello Marcin,

MarcinX wrote:

I have the same problem again. I thought that I have solved it by changing my OS an keyboard to English (US). Everything has been OK, until now...

Well, the explanation may be a little funny. This may indeed come from the fact that in Polish, there are two weekdays that have non ASCII characters in their first three letters, e.g. Wednesday and Friday (https://en.wiktionary.org/wiki/Category … f_the_week).
As some Python timestamps are used to mark the calculations (e.g. 'Thu-02-13:33:45.796'), this may lead to the aforementioned error when encountering these non-ASCII characters.
This might also explain why you have this problem every now and then.

MarcinX wrote:

In debug mode the error appears when I try to activate AsterStudy (in normal mode there is no error): "Failed to activate module AsterStudy". Please find attached report from console. There are "UnicodeDecodeError" errors.

This is because timestamps are used even more in DEBUG mode, yielding an error sooner.

The workaround in the meantime would be to switch to an English locale. For example, launching Salome-Meca in the following way :

$ LANG='en_EN.utf8' ./salome

TdS

Offline

#10 2017-11-02 22:22:40

MarcinX
Member
Registered: 2017-10-27
Posts: 8

Re: UnicodeDecodeError

Hello Thomas!
Yes, You're right! Today my Salome is working without coding issues. I would never think this will be caused by our native names of the weekdays. Thank You for help. I have permanently changed all time/zone info to British and now everything should be OK.
Best regards,
Marcin

Last edited by MarcinX (2017-11-02 22:25:55)

Offline

#11 2017-11-14 12:11:08

chucknick
Member
From: Nizhny Novgjrod, Russia
Registered: 2017-03-02
Posts: 27

Re: UnicodeDecodeError

Hello, Thomas
I had this problem too. With your solution problem was fixed.
Thank you very much

Offline

#12 2018-10-22 20:16:50

Dimos
Member
Registered: 2018-10-22
Posts: 1

Re: UnicodeDecodeError

Hello,

I had this problem with Ubuntu 18.04 and Salome_Meca_2017_0.2. I had two languages in my setup, english (US) and greek.
The solution for me was to go to Settings->Region&Language and set Language->English(United States) and Formats->United States.

Best regards,
Dimos

Last edited by Dimos (2018-10-22 20:17:19)

Offline

#13 2018-10-26 22:50:14

k_zurawski
Member
From: Gdansk (Poland)
Registered: 2010-03-13
Posts: 166

Re: UnicodeDecodeError

I'm having the same problem. This is the very first time in my life I see problem in software due to week days' names. It's I think because Salome prevents us from working on Fridays smile It seems that weekend has extended wink


regards,
Krzysztof

Offline

#14 2018-10-26 23:06:35

k_zurawski
Member
From: Gdansk (Poland)
Registered: 2010-03-13
Posts: 166

Re: UnicodeDecodeError

If someone, like me, is using Debian and there are no other languagest to choose from in setting gui, you may add language manually by following these steps:
https: //wiki.debian.org/ChangeLanguage

Last edited by k_zurawski (2018-10-26 23:06:59)


regards,
Krzysztof

Offline