2

ERROR using Euclid for Sketchup when loading climate file

Hello,

I am using the following the pluggin Euclide for Sketchup to run building energy simulations using Energy Plus. But when I try to load the climate file, the following message appears with Sketchup 2018 and even with Sketchup 2017. Could you help me to solve this?

ERROR:
ArgumentError
invalid byte sequence in UTF-8

BACKTRACE:
C:/Users/F3159470/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/euclid/lib/legacy_openstudio/lib/WeatherFile.rb:33:in `split'
C:/Users/F3159470/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/euclid/lib/legacy_openstudio/lib/WeatherFile.rb:33:in `parse_header'
C:/Users/F3159470/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/euclid/lib/legacy_openstudio/lib/WeatherFile.rb:18:in `initialize'
C:/Users/F3159470/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/euclid/lib/legacy_openstudio/lib/dialogs/RunSimulationDialog.rb:95:in `new'
C:/Users/F3159470/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/euclid/lib/legacy_openstudio/lib/dialogs/RunSimulationDialog.rb:95:in `show_weather_file_info'
C:/Users/F3159470/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/euclid/lib/legacy_openstudio/lib/dialogs/RunSimulationDialog.rb:87:in `on_browse'
C:/Users/F3159470/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/euclid/lib/legacy_openstudio/lib/dialogs/RunSimulationDialog.rb:27:in `block in add_callbacks'
SketchUp:1:in `call'

CONFIGURATION: Euclid 0.9.3 SketchUp 17.2.2555 64-bit Pro Ruby 2.2.4 x64-mingw32

FLECARP's avatar
71
FLECARP
asked 2018-01-19 12:46:00 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2018-01-21 08:05:04 -0500
edit flag offensive 0 remove flag close merge delete

Comments

@FLECARP could you post a link to your climate file (the very one you use)?

Avi's avatar Avi (2018-01-21 07:45:07 -0500) edit
FLECARP's avatar FLECARP (2018-01-21 08:40:19 -0500) edit
add a comment see more comments

2 Answers

1

As the warning stated this is a problem of the weather file encoding. For some reason the file you are using have different encoding than the one you can find in EnergyPlus site here. I advise you to download again the weather files and make sure not to open and resave them. Also make sure you relanch Euclid after you tried loading the damaged weather file. so you start fresh.

Avi's avatar
4.3k
Avi
answered 2018-01-21 10:06:27 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
1

As Avi mentions, the problem is that there is a bad character encoding in the weather file. This means there is one or more text characters that come from a different/wrong character set (specifically not UTF-8). I tracked it down in your weather file (thanks for providing!) and found it in the first line:

LOCATION,São Paulo,SP,BRA,INMET,837810,-23.85,-46.64,-3.0,792.0

The ã character in São Paulo is the bad one. The easiest fix is to open your weather file in a text editor and change the ã with tilde to a regular a (no tilde). Then save your file and now it should work. Just to be precise, the problem is not the tilde, it's just that the character used is from a different encoding. You can certainly have characters with tildes. They just need to be in the UTF-8 encoding.

Many text editors can also save to a specific encoding. Try doing Save As and then look for an Encoding option. Select UTF-8 for the encoding. This should fix all encoding problems, not just one bad character.

All of that said, programs should generally try to catch encoding problems and handle them gracefully, not crash--this is a bug in Euclid that should be fixed. I have created an issue here to document the bug until it's fixed.

Peter Ellis's avatar
1.1k
Peter Ellis
answered 2018-01-26 16:31:45 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments