mediafileupload has no attribute '_fd'
See original GitHub issueEnvironment details
- OS: Ubuntu 18.04
- Python version: 3.7.4
- pip version: 19.2.3
google-api-python-client
version: current
Steps to reproduce
- Add simple file upload from example to quickstart example from https://developers.google.com/drive/api/v3/quickstart/python
- After running console shows error: attributeerror ‘mediafileupload’ object has no attribute ‘_fd’
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
I keep getting a 'MediaFileUpload' object has no attribute '_fd ...
I keep getting a 'MediaFileUpload' object has no attribute '_fd' error when I try uploading a file to Google Drive.
Read more >Error Occurred while executing python google drive v3 api
I got the same error while executing MediaFileUpload(). ... _fd.close() AttributeError: 'MediaFileUpload' object has no attribute '_fd'.
Read more >googleapiclient.http.MediaFileUpload - Google APIs
Construct a MediaFileUpload and pass as the media_body parameter of the method. For example, if we had a service that allowed uploading images:...
Read more >AttributeError: 'FileUpload' object has no attribute 'value'
I've created an empty /data/ directory, for the sake or trying to identify what is going on. Before it was giving another error,...
Read more >Python Examples of apiclient.http.MediaFileUpload
def upload_video(self, options: dict): """ Options is Dict with file - filepath ... body=body, media_body=MediaFileUpload(options.get('file'), chunksize=-1, ...
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 FreeTop 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
Top GitHub Comments
👍 I’m able to replicate it if I misspell the filename.
I’ve noticed that there was a typo in the path to photo I wanted to upload. So I think that the error might be coming from exception handling. Full error reads: