Receiving .async error when trying to import the firebase package












0

















I'm trying to write a python script that requires a connection to firebase. I've installed the python-firebase package, but when I import it into my program using 'import firebase', I get the following error:



Traceback (most recent call last):
File "C:UsershajelAppDataLocalProgramsPythonPython37-32ScriptsRFIDHandler.py", line 1, in <module>
import firebase
File "C:UsershajelAppDataLocalProgramsPythonPython37-32libsite-packagesfirebase__init__.py", line 3
from .async import process_pool
^
SyntaxError: invalid syntax









share|improve this question




















  • 1





    async is a keyword in Python 3.7, it looks like firebase is not compatible with Py3.7. Either look/wait for a compatible version of firebase or use Py 3.6.

    – AChampion
    Sep 2 '18 at 0:35











  • That worked, thanks!

    – S. Hajela
    Sep 2 '18 at 3:28
















0

















I'm trying to write a python script that requires a connection to firebase. I've installed the python-firebase package, but when I import it into my program using 'import firebase', I get the following error:



Traceback (most recent call last):
File "C:UsershajelAppDataLocalProgramsPythonPython37-32ScriptsRFIDHandler.py", line 1, in <module>
import firebase
File "C:UsershajelAppDataLocalProgramsPythonPython37-32libsite-packagesfirebase__init__.py", line 3
from .async import process_pool
^
SyntaxError: invalid syntax









share|improve this question




















  • 1





    async is a keyword in Python 3.7, it looks like firebase is not compatible with Py3.7. Either look/wait for a compatible version of firebase or use Py 3.6.

    – AChampion
    Sep 2 '18 at 0:35











  • That worked, thanks!

    – S. Hajela
    Sep 2 '18 at 3:28














0












0








0










I'm trying to write a python script that requires a connection to firebase. I've installed the python-firebase package, but when I import it into my program using 'import firebase', I get the following error:



Traceback (most recent call last):
File "C:UsershajelAppDataLocalProgramsPythonPython37-32ScriptsRFIDHandler.py", line 1, in <module>
import firebase
File "C:UsershajelAppDataLocalProgramsPythonPython37-32libsite-packagesfirebase__init__.py", line 3
from .async import process_pool
^
SyntaxError: invalid syntax









share|improve this question


















I'm trying to write a python script that requires a connection to firebase. I've installed the python-firebase package, but when I import it into my program using 'import firebase', I get the following error:



Traceback (most recent call last):
File "C:UsershajelAppDataLocalProgramsPythonPython37-32ScriptsRFIDHandler.py", line 1, in <module>
import firebase
File "C:UsershajelAppDataLocalProgramsPythonPython37-32libsite-packagesfirebase__init__.py", line 3
from .async import process_pool
^
SyntaxError: invalid syntax






python firebase syntax-error






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 2 '18 at 0:34









AChampion

21k32345




21k32345










asked Sep 2 '18 at 0:03









S. HajelaS. Hajela

1




1








  • 1





    async is a keyword in Python 3.7, it looks like firebase is not compatible with Py3.7. Either look/wait for a compatible version of firebase or use Py 3.6.

    – AChampion
    Sep 2 '18 at 0:35











  • That worked, thanks!

    – S. Hajela
    Sep 2 '18 at 3:28














  • 1





    async is a keyword in Python 3.7, it looks like firebase is not compatible with Py3.7. Either look/wait for a compatible version of firebase or use Py 3.6.

    – AChampion
    Sep 2 '18 at 0:35











  • That worked, thanks!

    – S. Hajela
    Sep 2 '18 at 3:28








1




1





async is a keyword in Python 3.7, it looks like firebase is not compatible with Py3.7. Either look/wait for a compatible version of firebase or use Py 3.6.

– AChampion
Sep 2 '18 at 0:35





async is a keyword in Python 3.7, it looks like firebase is not compatible with Py3.7. Either look/wait for a compatible version of firebase or use Py 3.6.

– AChampion
Sep 2 '18 at 0:35













That worked, thanks!

– S. Hajela
Sep 2 '18 at 3:28





That worked, thanks!

– S. Hajela
Sep 2 '18 at 3:28












2 Answers
2






active

oldest

votes


















2














The problem is that async is a keyword in python 3.7
the solution is quite simple.



Just rename the file async.py to something other like asyncn.py and replace every from .async import process_pool in the files firebase.py , decorators.py and others , to from .asyncn import process_pool






share|improve this answer

































    0














    I commented "#from .async import process_pool" in firebase.py and started working, it was incompatible with python 3.7






    share|improve this answer
























    • It is generally not a good idea to edit a 3rd party library and to maintain your own version. Unless obviously, it's something just for practice. In production environments, it can be too much of a technical debt, if you need to update the library in future.

      – Tushar
      Sep 28 '18 at 19:02











    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',
    autoActivateHeartbeat: false,
    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%2f52133031%2freceiving-async-error-when-trying-to-import-the-firebase-package%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    The problem is that async is a keyword in python 3.7
    the solution is quite simple.



    Just rename the file async.py to something other like asyncn.py and replace every from .async import process_pool in the files firebase.py , decorators.py and others , to from .asyncn import process_pool






    share|improve this answer






























      2














      The problem is that async is a keyword in python 3.7
      the solution is quite simple.



      Just rename the file async.py to something other like asyncn.py and replace every from .async import process_pool in the files firebase.py , decorators.py and others , to from .asyncn import process_pool






      share|improve this answer




























        2












        2








        2







        The problem is that async is a keyword in python 3.7
        the solution is quite simple.



        Just rename the file async.py to something other like asyncn.py and replace every from .async import process_pool in the files firebase.py , decorators.py and others , to from .asyncn import process_pool






        share|improve this answer















        The problem is that async is a keyword in python 3.7
        the solution is quite simple.



        Just rename the file async.py to something other like asyncn.py and replace every from .async import process_pool in the files firebase.py , decorators.py and others , to from .asyncn import process_pool







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 6 '18 at 9:32









        ChrisF

        114k25216291




        114k25216291










        answered Nov 22 '18 at 17:10









        Angad KulkarniAngad Kulkarni

        213




        213

























            0














            I commented "#from .async import process_pool" in firebase.py and started working, it was incompatible with python 3.7






            share|improve this answer
























            • It is generally not a good idea to edit a 3rd party library and to maintain your own version. Unless obviously, it's something just for practice. In production environments, it can be too much of a technical debt, if you need to update the library in future.

              – Tushar
              Sep 28 '18 at 19:02
















            0














            I commented "#from .async import process_pool" in firebase.py and started working, it was incompatible with python 3.7






            share|improve this answer
























            • It is generally not a good idea to edit a 3rd party library and to maintain your own version. Unless obviously, it's something just for practice. In production environments, it can be too much of a technical debt, if you need to update the library in future.

              – Tushar
              Sep 28 '18 at 19:02














            0












            0








            0







            I commented "#from .async import process_pool" in firebase.py and started working, it was incompatible with python 3.7






            share|improve this answer













            I commented "#from .async import process_pool" in firebase.py and started working, it was incompatible with python 3.7







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Sep 28 '18 at 18:51









            Emmanuel BulacioEmmanuel Bulacio

            1




            1













            • It is generally not a good idea to edit a 3rd party library and to maintain your own version. Unless obviously, it's something just for practice. In production environments, it can be too much of a technical debt, if you need to update the library in future.

              – Tushar
              Sep 28 '18 at 19:02



















            • It is generally not a good idea to edit a 3rd party library and to maintain your own version. Unless obviously, it's something just for practice. In production environments, it can be too much of a technical debt, if you need to update the library in future.

              – Tushar
              Sep 28 '18 at 19:02

















            It is generally not a good idea to edit a 3rd party library and to maintain your own version. Unless obviously, it's something just for practice. In production environments, it can be too much of a technical debt, if you need to update the library in future.

            – Tushar
            Sep 28 '18 at 19:02





            It is generally not a good idea to edit a 3rd party library and to maintain your own version. Unless obviously, it's something just for practice. In production environments, it can be too much of a technical debt, if you need to update the library in future.

            – Tushar
            Sep 28 '18 at 19:02


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52133031%2freceiving-async-error-when-trying-to-import-the-firebase-package%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

            404 Error Contact Form 7 ajax form submitting

            How to know if a Active Directory user can login interactively

            TypeError: fit_transform() missing 1 required positional argument: 'X'