HB Problems "Failed to download the files needed to PostProcess EnergyPlus"

Hi people, I’m writting this because I have been fighting with an issue that I need to solve as soos as possible.
I had installed the last versions of HB+, LB, Radiance, Therm, Open Studio and so on…
But now, when I try to run the simulations, it sends a message saying:

  1. Failed to download the files needed to run EnergyPlus with OpenStudio 2.x.
    SystemError(‘The request was aborted: Could not create SSL/TLS secure channel.’,)
  2. Failed to download the files needed to PostProcess EnergyPlus results with OpenStudio 2.x.
    SystemError(‘The request was aborted: Could not create SSL/TLS secure channel.’,)

By placing the files of radiance in Open studio folder I was able to fix the first error, but the second one still goes on.
I’ve read a lot of forums but still no solution.
It seems that there’s a problem of communication with the internet and open studio or something similar.

Here’s the first part of the script:

henv.Component.Name = “Honeybee_Honeybee”
ghenv.Component.NickName = ‘Honeybee’
ghenv.Component.Message = ‘VER 0.0.64\nDEC_05_2018’
ghenv.Component.IconDisplayMode = ghenv.Component.IconDisplayMode.icon
ghenv.Component.Category = “Honeybee”
ghenv.Component.SubCategory = “00 | Honeybee”
try: ghenv.Component.AdditionalHelpFromDocStrings = “1”
except: pass

import sys
sys.path = sorted(sys.path, key=lambda p: p.find(“Python27”))

import rhinoscriptsyntax as rs
import Rhino as rc
import scriptcontext as sc
import Grasshopper
import Grasshopper.Kernel as gh
from Grasshopper import DataTree
from Grasshopper.Kernel.Data import GH_Path
import math
import shutil
import os
import System.Threading.Tasks as tasks
import System
import time
import itertools
import datetime
import json
import copy
import urllib2 as urllib
import cPickle as pickle
import subprocess
import uuid
import re
import random
import zipfile

try:
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12
except AttributeError:
# TLS 1.2 not provided by MacOS .NET Core; revert to using TLS 1.0
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls

PI = math.pi

rc.Runtime.HostUtils.DisplayOleAlerts(False)
tolerance = sc.doc.ModelAbsoluteTolerance

class CheckIn():

def __init__(self, defaultFolder, folderIsSetByUser = False):
    
    self.folderIsSetByUser = folderIsSetByUser
    self.letItFly = True
    
    if defaultFolder:
        # user is setting up the folder
        defaultFolder = os.path.normpath(defaultFolder) + os.sep
        
        # check if path has white space
        if (" " in defaultFolder):
            msg = "Default file path can't have white space. Please set the path to another folder." + \
                  "\nHoneybee failed to fly! :("
            print msg
            ghenv.Component.AddRuntimeMessage(gh.GH_RuntimeMessageLevel.Warning, msg)
            sc.sticky["Honeybee_DefaultFolder"] = ""
            self.letItFly = False
            return
        else:
            # create the folder if it is not created
            if not os.path.isdir(defaultFolder):
                try: os.mkdir(defaultFolder)
                except:
                    msg = "Cannot create default folder! Try a different filepath" + \
                          "\nHoneybee failed to fly! :("
                    print msg
                    ghenv.Component.AddRuntimeMessage(gh.GH_RuntimeMessageLevel.Warning, msg)
                    sc.sticky["Honeybee_DefaultFolder"] = ""
                    self.letItFly = False
                    return
        
        # looks fine so let's set it up
        sc.sticky["Honeybee_DefaultFolder"] = defaultFolder
        self.folderIsSetByUser = True
    
    #set up default pass
    if not self.folderIsSetByUser:
        if os.path.exists("c:\\ladybug\\") and os.access(os.path.dirname("c:\\ladybug\\"), os.F_OK):
            # folder already exists so it is all fine
            sc.sticky["Honeybee_DefaultFolder"] = "c:\\ladybug\\"
        elif os.access(os.path.dirname("c:\\"), os.F_OK):
            #the folder does not exists but write privileges are given so it is fine
            sc.sticky["Honeybee_DefaultFolder"] = "c:\\ladybug\\"
        else:
            # let's use the user folder
            appdata = os.getenv("APPDATA")
            # make sure username doesn't have space
            if (" " in appdata):
                msg = "User name on this system: " + appdata + " has white space." + \
                      " Default fodelr cannot be set.\nUse defaultFolder_ to set the path to another folder and try again!" + \
                      "\nHoneybee failed to fly! :("
                print msg
                ghenv.Component.AddRuntimeMessage(gh.GH_RuntimeMessageLevel.Warning, msg)
                sc.sticky["Honeybee_DefaultFolder"] = ""
                self.letItFly = False
                return
            
            sc.sticky["Honeybee_DefaultFolder"] = os.path.join(appdata, "Ladybug\\")
            
    self.updateCategoryIcon()

Are you using an older version of Honeybee? This problem has been resolved long time ago. If you look up the forum you can find links to also do it manually.

PS: This is an issue with Honeybee and not Honeybee[+]. I edited the title of the post.

Hi Mostapha, sorry about the mistake, you are right, is the honey bee.
Anyway, i’m sure to be using the last version.
I’ve read also about the download respect to the “ladybug-master” and i placed it manually to the ladybug folder C:/Ladybug but still have the same issues. Might be that I did something wrong in the steps or there’s something blocking the conection.
I would apreciate a lot any idea for a solution.
TY