Skip to content

accessing groups & group requirement when creating a new package #37

@jasminhafner

Description

@jasminhafner

The command

pkg = eP.create_package(
    name="Test Package", group=None,
    description="This package is created as a tutorial for enviPath-python documentation!")

raises the following error:

in create
    package_payload['groupURI'] = group.get_id()
AttributeError: 'NoneType' object has no attribute 'get_id'

Related to that, eP.get_groups() gives the following error:

raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions