AttributeError 'NoneType' object has no attribute 'upload_from_filename'
问题 I'm using Python 2.7.9 on Linux and I am following Google's example on Google-Cloud Server SDK. My goal is to upload an image to Google Cloud Platform, but I'm getting the error below. File "/home/pi/test.py", line 15, in <module> zebraBlob.upload_from_filename(filename='/home/pi/Pictures/testimg.jpg') AttributeError: 'NoneType' object has no attribute 'upload_from_filename' Code: from firebase import firebase from google.cloud import storage import os firebase = firebase.FirebaseApplication(