awscli error - Can't convert 'NoneType' object to str implicitly











up vote
0
down vote

favorite












I'm attempting to create an environment using:



eb create xxx-env --database



but I'm getting the following Python error:




Can't convert 'NoneType' object to str implicitly




From reading this it seems that the issue is to do with the cli tool not being able to get the credentials.



I have created a .aws/config file and a ./aws/credentials file but still nothing.



eb --version =
EB CLI 3.14.6 (Python 3.5.2)



Has anyone come up against this?



EDIT



The full output of the eb create command is:




Enter an RDS DB username (default is "ebroot"):
Enter an RDS DB master password:
Retype password to confirm:
Creating application version archive "app-26c8a-181108_105531".
Uploading beebop-staging/app-26c8a-181108_105531.zip to S3. This may take a while.
Upload Complete.
ERROR: TypeError - Can't convert 'NoneType' object to str implicitly











share|improve this question
























  • Does the IAM user that you are using have the right Policies?
    – Matt D
    Nov 8 at 10:39










  • Could you please show us the entire stack trace?
    – TenorFlyy
    Nov 8 at 10:40










  • Yes the IAM user belongs to a group with AWSElasticBeanstalkFullAccess
    – Mark Kenny
    Nov 8 at 10:58










  • Where have you created the credentials file, because you are supposed to have it under ~/.aws/ , but './' isn't the equivalent of '~' . The folder .aws must be under your user home directory.
    – TenorFlyy
    Nov 8 at 11:13












  • Sorry yes, I meant ~/.aws ... appologies
    – Mark Kenny
    Nov 8 at 11:17















up vote
0
down vote

favorite












I'm attempting to create an environment using:



eb create xxx-env --database



but I'm getting the following Python error:




Can't convert 'NoneType' object to str implicitly




From reading this it seems that the issue is to do with the cli tool not being able to get the credentials.



I have created a .aws/config file and a ./aws/credentials file but still nothing.



eb --version =
EB CLI 3.14.6 (Python 3.5.2)



Has anyone come up against this?



EDIT



The full output of the eb create command is:




Enter an RDS DB username (default is "ebroot"):
Enter an RDS DB master password:
Retype password to confirm:
Creating application version archive "app-26c8a-181108_105531".
Uploading beebop-staging/app-26c8a-181108_105531.zip to S3. This may take a while.
Upload Complete.
ERROR: TypeError - Can't convert 'NoneType' object to str implicitly











share|improve this question
























  • Does the IAM user that you are using have the right Policies?
    – Matt D
    Nov 8 at 10:39










  • Could you please show us the entire stack trace?
    – TenorFlyy
    Nov 8 at 10:40










  • Yes the IAM user belongs to a group with AWSElasticBeanstalkFullAccess
    – Mark Kenny
    Nov 8 at 10:58










  • Where have you created the credentials file, because you are supposed to have it under ~/.aws/ , but './' isn't the equivalent of '~' . The folder .aws must be under your user home directory.
    – TenorFlyy
    Nov 8 at 11:13












  • Sorry yes, I meant ~/.aws ... appologies
    – Mark Kenny
    Nov 8 at 11:17













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm attempting to create an environment using:



eb create xxx-env --database



but I'm getting the following Python error:




Can't convert 'NoneType' object to str implicitly




From reading this it seems that the issue is to do with the cli tool not being able to get the credentials.



I have created a .aws/config file and a ./aws/credentials file but still nothing.



eb --version =
EB CLI 3.14.6 (Python 3.5.2)



Has anyone come up against this?



EDIT



The full output of the eb create command is:




Enter an RDS DB username (default is "ebroot"):
Enter an RDS DB master password:
Retype password to confirm:
Creating application version archive "app-26c8a-181108_105531".
Uploading beebop-staging/app-26c8a-181108_105531.zip to S3. This may take a while.
Upload Complete.
ERROR: TypeError - Can't convert 'NoneType' object to str implicitly











share|improve this question















I'm attempting to create an environment using:



eb create xxx-env --database



but I'm getting the following Python error:




Can't convert 'NoneType' object to str implicitly




From reading this it seems that the issue is to do with the cli tool not being able to get the credentials.



I have created a .aws/config file and a ./aws/credentials file but still nothing.



eb --version =
EB CLI 3.14.6 (Python 3.5.2)



Has anyone come up against this?



EDIT



The full output of the eb create command is:




Enter an RDS DB username (default is "ebroot"):
Enter an RDS DB master password:
Retype password to confirm:
Creating application version archive "app-26c8a-181108_105531".
Uploading beebop-staging/app-26c8a-181108_105531.zip to S3. This may take a while.
Upload Complete.
ERROR: TypeError - Can't convert 'NoneType' object to str implicitly








python amazon-web-services






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 8 at 11:01

























asked Nov 8 at 10:16









Mark Kenny

789923




789923












  • Does the IAM user that you are using have the right Policies?
    – Matt D
    Nov 8 at 10:39










  • Could you please show us the entire stack trace?
    – TenorFlyy
    Nov 8 at 10:40










  • Yes the IAM user belongs to a group with AWSElasticBeanstalkFullAccess
    – Mark Kenny
    Nov 8 at 10:58










  • Where have you created the credentials file, because you are supposed to have it under ~/.aws/ , but './' isn't the equivalent of '~' . The folder .aws must be under your user home directory.
    – TenorFlyy
    Nov 8 at 11:13












  • Sorry yes, I meant ~/.aws ... appologies
    – Mark Kenny
    Nov 8 at 11:17


















  • Does the IAM user that you are using have the right Policies?
    – Matt D
    Nov 8 at 10:39










  • Could you please show us the entire stack trace?
    – TenorFlyy
    Nov 8 at 10:40










  • Yes the IAM user belongs to a group with AWSElasticBeanstalkFullAccess
    – Mark Kenny
    Nov 8 at 10:58










  • Where have you created the credentials file, because you are supposed to have it under ~/.aws/ , but './' isn't the equivalent of '~' . The folder .aws must be under your user home directory.
    – TenorFlyy
    Nov 8 at 11:13












  • Sorry yes, I meant ~/.aws ... appologies
    – Mark Kenny
    Nov 8 at 11:17
















Does the IAM user that you are using have the right Policies?
– Matt D
Nov 8 at 10:39




Does the IAM user that you are using have the right Policies?
– Matt D
Nov 8 at 10:39












Could you please show us the entire stack trace?
– TenorFlyy
Nov 8 at 10:40




Could you please show us the entire stack trace?
– TenorFlyy
Nov 8 at 10:40












Yes the IAM user belongs to a group with AWSElasticBeanstalkFullAccess
– Mark Kenny
Nov 8 at 10:58




Yes the IAM user belongs to a group with AWSElasticBeanstalkFullAccess
– Mark Kenny
Nov 8 at 10:58












Where have you created the credentials file, because you are supposed to have it under ~/.aws/ , but './' isn't the equivalent of '~' . The folder .aws must be under your user home directory.
– TenorFlyy
Nov 8 at 11:13






Where have you created the credentials file, because you are supposed to have it under ~/.aws/ , but './' isn't the equivalent of '~' . The folder .aws must be under your user home directory.
– TenorFlyy
Nov 8 at 11:13














Sorry yes, I meant ~/.aws ... appologies
– Mark Kenny
Nov 8 at 11:17




Sorry yes, I meant ~/.aws ... appologies
– Mark Kenny
Nov 8 at 11:17












1 Answer
1






active

oldest

votes

















up vote
0
down vote













To confirm, the issue was in [app_directory]/.elasticbeanstalk/config.yml where the region was not being set. I removed the region from ~/.aws/config forcing eb init to prompt me to choose the region. After doing this the region was set correctly and eb create ... worked as expected






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53205619%2fawscli-error-cant-convert-nonetype-object-to-str-implicitly%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    To confirm, the issue was in [app_directory]/.elasticbeanstalk/config.yml where the region was not being set. I removed the region from ~/.aws/config forcing eb init to prompt me to choose the region. After doing this the region was set correctly and eb create ... worked as expected






    share|improve this answer

























      up vote
      0
      down vote













      To confirm, the issue was in [app_directory]/.elasticbeanstalk/config.yml where the region was not being set. I removed the region from ~/.aws/config forcing eb init to prompt me to choose the region. After doing this the region was set correctly and eb create ... worked as expected






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        To confirm, the issue was in [app_directory]/.elasticbeanstalk/config.yml where the region was not being set. I removed the region from ~/.aws/config forcing eb init to prompt me to choose the region. After doing this the region was set correctly and eb create ... worked as expected






        share|improve this answer












        To confirm, the issue was in [app_directory]/.elasticbeanstalk/config.yml where the region was not being set. I removed the region from ~/.aws/config forcing eb init to prompt me to choose the region. After doing this the region was set correctly and eb create ... worked as expected







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 8 at 11:36









        Mark Kenny

        789923




        789923






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53205619%2fawscli-error-cant-convert-nonetype-object-to-str-implicitly%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Schultheiß

            Verwaltungsgliederung Dänemarks

            Liste der Kulturdenkmale in Wilsdruff