Receiving .async error when trying to import the firebase package
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
add a comment |
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
1
async
is a keyword in Python 3.7, it looks likefirebase
is not compatible with Py3.7. Either look/wait for a compatible version offirebase
or use Py 3.6.
– AChampion
Sep 2 '18 at 0:35
That worked, thanks!
– S. Hajela
Sep 2 '18 at 3:28
add a comment |
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
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
python firebase syntax-error
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 likefirebase
is not compatible with Py3.7. Either look/wait for a compatible version offirebase
or use Py 3.6.
– AChampion
Sep 2 '18 at 0:35
That worked, thanks!
– S. Hajela
Sep 2 '18 at 3:28
add a comment |
1
async
is a keyword in Python 3.7, it looks likefirebase
is not compatible with Py3.7. Either look/wait for a compatible version offirebase
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
add a comment |
2 Answers
2
active
oldest
votes
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
add a comment |
I commented "#from .async import process_pool" in firebase.py and started working, it was incompatible with python 3.7
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
edited Dec 6 '18 at 9:32
ChrisF♦
114k25216291
114k25216291
answered Nov 22 '18 at 17:10
Angad KulkarniAngad Kulkarni
213
213
add a comment |
add a comment |
I commented "#from .async import process_pool" in firebase.py and started working, it was incompatible with python 3.7
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
add a comment |
I commented "#from .async import process_pool" in firebase.py and started working, it was incompatible with python 3.7
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
add a comment |
I commented "#from .async import process_pool" in firebase.py and started working, it was incompatible with python 3.7
I commented "#from .async import process_pool" in firebase.py and started working, it was incompatible with python 3.7
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
1
async
is a keyword in Python 3.7, it looks likefirebase
is not compatible with Py3.7. Either look/wait for a compatible version offirebase
or use Py 3.6.– AChampion
Sep 2 '18 at 0:35
That worked, thanks!
– S. Hajela
Sep 2 '18 at 3:28