Updating Honeybee[+]


#1

Hi @mostapha,

Further to this update, i’ve been experiencing the same issue as Theodore here .
The hbsurface component is printing:

  1. Solution exception:“fromGeometries” method can only be used in [+] libraries.

How does blind states in daylight coefficient based simulation work?
#2

How did you update the installation? Make sure your __init__.py file looks like this file:

https://github.com/ladybug-tools/honeybee-grasshopper/blob/master/honeybee/__init__.py

"""Honeybee grasshopper library."""
import sys
import os

_dependencies = ('ladybug',)
for lib in _dependencies:
    if lib not in sys.modules:
        sys.path.insert(
            0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
    try:
        __import__(lib)
    except ImportError as e:
        raise ImportError('Failed to import {}:\n\t{}'.format(lib, e))

# This is a variable to check if the library is a [+] library.
setattr(sys.modules[__name__], 'isplus', True)

#3

All is working with the following steps, I’m posting this as it may be helpful for new users who wish to update in between releases.

  1. Further to installing the stable release of HB+ from food4rhino;

  2. I’ve replaced userobjects from
    C:\Users\OlivierDambron\AppData\Roaming\Grasshopper\UserObjects\HoneybeePlus
    with
    https://github.com/ladybug-tools/honeybee-grasshopper/tree/master/plugin/grasshopper/userObjects
    and from
    C:\Users\OlivierDambron\AppData\Roaming\Grasshopper\UserObjects\LadybugPlus
    with
    https://github.com/ladybug-tools/ladybug-grasshopper/tree/master/plugin/grasshopper/userObjects

  3. I’ve replaced the scripts from
    C:\Users\OlivierDambron\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts\honeybee
    with
    https://github.com/ladybug-tools/honeybee/tree/master/honeybee
    and copied these additionally
    https://github.com/ladybug-tools/honeybee-grasshopper/tree/master/honeybee
    and replaced the scripts from
    C:\Users\OlivierDambron\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts\ladybug
    with
    https://github.com/ladybug-tools/ladybug/tree/master/ladybug
    and copied these additionally
    https://github.com/ladybug-tools/ladybug-grasshopper/tree/master/ladybug

cheers,


#4

… or updating with the HB+_HBInstaller, which will do the job much more easy :slight_smile:
-A.


#5

hi @AbrahamYezioro

oops, I had not seen the latest replies from Honeybee SystemError Could not create SSL/TLS secure channel . Thanks.