thisbejim / Pyrebase

A simple python wrapper for the Firebase API.
2.05k stars 526 forks source link

How to remove Pyrebase? #332

Open fabiom91 opened 4 years ago

fabiom91 commented 4 years ago

My question is a bit odd but it may be very useful to someone: I had my flask application running firebase normally without Pyrebase. I decided to install Pyrebase on my virtual environment because I needed a specific function but as soon as I installed Pyrebase I realised that too many things may go wrong using both firebase official api and Pyrebase so I decided to NOT use Pyrebase. However, even without importing Pyrebase in my app, now I get a cryptic error by flask:

TRACEBACK:
File "/Users/fabiomagarelli/Documents/INFANT/Competition Platform/main.py", line 16, in <module>
import myFirebase

File "/Users/fabiomagarelli/Documents/INFANT/Competition Platform/services/myFirebase.py", line 3, in <module>
from firebase_admin import credentials, auth, firestore, storage

File "/Users/fabiomagarelli/opt/anaconda3/lib/python3.7/site-packages/firebase_admin/auth.py", line 26, in <module>
from firebase_admin import _http_client

File "/Users/fabiomagarelli/opt/anaconda3/lib/python3.7/site-packages/firebase_admin/_http_client.py", line 32, in <module>
raise_on_status=False, backoff_factor=0.5)

ERROR:
TypeError: __init__() got an unexpected keyword argument 'status'

I tried pip uninstall pyrebase but it doesn't work. How do I remove Pyrebase and all the files created by the Pyrebase installation from my virtual environment?