Cannot run AWS Lambda using snowflake-connector











up vote
1
down vote

favorite












When I deployed my lambda and try to run it, it generates the following error:



libpython3.7m.so.1.0: cannot open shared object file: No such file or directory


Why? What can I do about it? I have in my requirements.txt the following.



snowflake-connector-python
jsonschema>=2.6.0
coverage









share|improve this question




























    up vote
    1
    down vote

    favorite












    When I deployed my lambda and try to run it, it generates the following error:



    libpython3.7m.so.1.0: cannot open shared object file: No such file or directory


    Why? What can I do about it? I have in my requirements.txt the following.



    snowflake-connector-python
    jsonschema>=2.6.0
    coverage









    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      When I deployed my lambda and try to run it, it generates the following error:



      libpython3.7m.so.1.0: cannot open shared object file: No such file or directory


      Why? What can I do about it? I have in my requirements.txt the following.



      snowflake-connector-python
      jsonschema>=2.6.0
      coverage









      share|improve this question















      When I deployed my lambda and try to run it, it generates the following error:



      libpython3.7m.so.1.0: cannot open shared object file: No such file or directory


      Why? What can I do about it? I have in my requirements.txt the following.



      snowflake-connector-python
      jsonschema>=2.6.0
      coverage






      aws-lambda python-3.6 compatibility python-3.7 snowflake-datawarehouse






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 days ago

























      asked Oct 18 at 8:56









      Niklas Rosencrantz

      6,93248150312




      6,93248150312
























          3 Answers
          3






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          AWS Supports Python3.6 runtime, while error describing "python3.7". Have you build it with python3.7 support.



          P.S.
          I am assuming you followed official tutorial






          share|improve this answer




























            up vote
            2
            down vote













            Pls follow instructions from here https://github.com/snowflakedb/examples/tree/master/lambda_function
            If you run into issues, raise it there on github.






            share|improve this answer




























              up vote
              0
              down vote













              I had built the snowflake connector with Python 3.7 (latest Alpine Linux container). When I changed container and built it with python:jessie and Python 3.6 then everything worked.






              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%2f52870445%2fcannot-run-aws-lambda-using-snowflake-connector%23new-answer', 'question_page');
                }
                );

                Post as a guest
































                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes








                up vote
                1
                down vote



                accepted










                AWS Supports Python3.6 runtime, while error describing "python3.7". Have you build it with python3.7 support.



                P.S.
                I am assuming you followed official tutorial






                share|improve this answer

























                  up vote
                  1
                  down vote



                  accepted










                  AWS Supports Python3.6 runtime, while error describing "python3.7". Have you build it with python3.7 support.



                  P.S.
                  I am assuming you followed official tutorial






                  share|improve this answer























                    up vote
                    1
                    down vote



                    accepted







                    up vote
                    1
                    down vote



                    accepted






                    AWS Supports Python3.6 runtime, while error describing "python3.7". Have you build it with python3.7 support.



                    P.S.
                    I am assuming you followed official tutorial






                    share|improve this answer












                    AWS Supports Python3.6 runtime, while error describing "python3.7". Have you build it with python3.7 support.



                    P.S.
                    I am assuming you followed official tutorial







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Oct 18 at 9:18









                    Butuzov

                    1,13021016




                    1,13021016
























                        up vote
                        2
                        down vote













                        Pls follow instructions from here https://github.com/snowflakedb/examples/tree/master/lambda_function
                        If you run into issues, raise it there on github.






                        share|improve this answer

























                          up vote
                          2
                          down vote













                          Pls follow instructions from here https://github.com/snowflakedb/examples/tree/master/lambda_function
                          If you run into issues, raise it there on github.






                          share|improve this answer























                            up vote
                            2
                            down vote










                            up vote
                            2
                            down vote









                            Pls follow instructions from here https://github.com/snowflakedb/examples/tree/master/lambda_function
                            If you run into issues, raise it there on github.






                            share|improve this answer












                            Pls follow instructions from here https://github.com/snowflakedb/examples/tree/master/lambda_function
                            If you run into issues, raise it there on github.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Oct 18 at 16:52









                            Vikas Jain

                            461




                            461






















                                up vote
                                0
                                down vote













                                I had built the snowflake connector with Python 3.7 (latest Alpine Linux container). When I changed container and built it with python:jessie and Python 3.6 then everything worked.






                                share|improve this answer

























                                  up vote
                                  0
                                  down vote













                                  I had built the snowflake connector with Python 3.7 (latest Alpine Linux container). When I changed container and built it with python:jessie and Python 3.6 then everything worked.






                                  share|improve this answer























                                    up vote
                                    0
                                    down vote










                                    up vote
                                    0
                                    down vote









                                    I had built the snowflake connector with Python 3.7 (latest Alpine Linux container). When I changed container and built it with python:jessie and Python 3.6 then everything worked.






                                    share|improve this answer












                                    I had built the snowflake connector with Python 3.7 (latest Alpine Linux container). When I changed container and built it with python:jessie and Python 3.6 then everything worked.







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Oct 19 at 4:57









                                    Niklas Rosencrantz

                                    6,93248150312




                                    6,93248150312






























                                         

                                        draft saved


                                        draft discarded



















































                                         


                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52870445%2fcannot-run-aws-lambda-using-snowflake-connector%23new-answer', 'question_page');
                                        }
                                        );

                                        Post as a guest




















































































                                        Popular posts from this blog

                                        Xamarin.iOS Cant Deploy on Iphone

                                        Glorious Revolution

                                        Dulmage-Mendelsohn matrix decomposition in Python