libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Bulcher (JIRA)" <>
Subject [jira] [Created] (LIBCLOUD-970) GCE driver: __init__() missing 1 required positional argument: 'secure'
Date Tue, 19 Dec 2017 16:54:03 GMT
John Bulcher created LIBCLOUD-970:

             Summary: GCE driver: __init__() missing 1 required positional argument: 'secure'
                 Key: LIBCLOUD-970
             Project: Libcloud
          Issue Type: Bug
         Environment: - libcloud 2.2.1 or 2.2.0
- python 3.5.2
- virtualenv
- GCE service account with a json credential file
            Reporter: John Bulcher

Python code looks like this:

    from libcloud.compute.types import Provider
    from libcloud.compute.providers import get_driver

    def run():
        """ Run this script
        ComputeEngine = get_driver(Provider.GCE)
        driver = ComputeEngine(user_id='****@****.com',


When I run my code, I'm getting:

    Traceback (most recent call last):
      File "./", line 47, in <module>
      File "./", line 21, in run
        project='ebs-it', secure=True)
      File "/***/virtualenv/lib/python3.5/site-packages/libcloud/compute/drivers/",
line 1795, in __init__
        super(GCENodeDriver, self).__init__(user_id, key, **kwargs)
      File "/***/virtualenv/lib/python3.5/site-packages/libcloud/common/", line 975,
in __init__
        self.connection = self.connectionCls(*args, **conn_kwargs)
    TypeError: __init__() missing 1 required positional argument: 'secure'

This looks [perfectly textbook](
to me.  I created a [stackstorm question here](,
but the more I look into it the more it looks like a bug. E.g., if I don't specify `user_id`
 and `credential_file`, libcloud asks me to load a URL and type a code; since I'm using a
service account, I shouldn't need to do  this (I think).

This message was sent by Atlassian JIRA

View raw message