Python 2.7.9 ImportError: cannot import name firebase
See original GitHub issueI just installed via pip python-firebase (and requests) into a brand new virtualenv running Python 2.7.9, yet when I try to use from firebase import firebase Python spits out the following error:
ImportError: cannot import name firebase
I know for a fact the module and its prereqs are installed because I can see them in the list of modules generated by help(‘modules’)
I created this virtual environment after running into the same issue developing without a virtual environment (e.g. I was installing everything to the system’s typical Python install). I figured I’d messed something up so I started over with a fresh virtual environment and used it exclusively when I was reinstalling my other dependencies.
Am I doing something wrong? Is Python 2 not supported?
Issue Analytics
- State:
- Created 9 years ago
- Comments:11
Top Results From Across the Web
unable to connect firebase using python 3.72 - Stack Overflow
I tried this and I too got an error while importing. From what I gather, python-firebase hasn't been updated to be fully compatible...
Read more >Python 3.5, Error Connecting to Firebase - No module named ...
You have called your program the same name as the module. Python will get mixed up with your program and the actual module....
Read more >Firebase Admin Python SDK Release Notes - Google
Fixed an incorrect error message logged by the messaging module when calling the batch send APIs. Version 3.2.1 - 11 December, 2019. Cloud...
Read more >firebase-admin - PyPI
The Firebase Admin Python SDK enables server-side (backend) Python developers to integrate Firebase into their services and applications.
Read more >Python 3: How to fix your Firebase errors - YouTube
These are some of the fixes I've found. Time stamps to follow below:00:05 No module name firebase01:05 async error03:38 unauthorised for ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
just not use firebase.py as a name for your project and it will work
Hi everyone, I haved the same problem and it’s true… you must rename “firebase.py” to some other name and delete all the “firebase.pyc” created… I deleted almost 3 of them and then works 😃