Installing snappy - jpy problems

I’ve found the problem and fixed it. For the explanation see the issue SNAP-929

You can work around the problem by editing the __init__.py of snappy.
Go to method _get_nb_user_modules_dir() line 113.
And change it to:

def _get_nb_user_modules_dir():
    import platform
    from os.path import expanduser

    home_dir = expanduser('~')
    nb_user_dir = None
    if platform.system() == 'Windows':
        if home_dir:
            nb_user_dir = os.path.join(home_dir, 'AppData\\Roaming\\SNAP')
    else:
        if home_dir:
            nb_user_dir = os.path.join(home_dir, '.snap/system')

    if nb_user_dir:
        return os.path.join(nb_user_dir, 'modules')

    return None

Many thanks for the report @geoagr2003

1 Like