question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python 2.7.9 ImportError: cannot import name firebase

See original GitHub issue

I 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:closed
  • Created 9 years ago
  • Comments:11

github_iconTop GitHub Comments

24reactions
GharsallaouiNadercommented, Jul 25, 2016

just not use firebase.py as a name for your project and it will work

1reaction
DavidSilTroycommented, Aug 1, 2019

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 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found