![]() ![]() Then from local, I can upload to dropbox dbx.files_upload('D:/chat2/file.png', '/project/file1.png', mode=. ![]() I know that we can save the figure to local like df.value_counts().plot.pie(label='', autopct='%1.0f%%',figsize =(15, 10)).figure.savefig('D:/chat2/file.png') TypeError: expected request_binary as binary type, got > 539 raise TypeError('expected request_binary as binary type, got %s' % > 477 return self.request_json_string(host,Ĭ:\tools\Anaconda3\lib\site-packages\dropbox\dropbox_client.py in request_json_string(self, host, func_name, route_style, request_json_arg, auth_type, request_binary, timeout)ĥ37 # behavior when a non-rewindable stream is read from, but theĥ38 # request fails and needs to be re-tried at a later time. ![]() > 321 res = self.request_json_string_with_retry(host,Ĭ:\tools\Anaconda3\lib\site-packages\dropbox\dropbox_client.py in request_json_string_with_retry(self, host, route_name, route_style, request_json_arg, auth_type, request_binary, timeout)Ĥ75 self._('Request to %s', route_name) binarization ret,thresh1 cv2.threshold (img,127,255,cv2.THRESHBINARY) ret,thresh2 cv2.threshold (img,127,255,cv2.THRESHBINARYINV) ret,thresh3 cv2.threshold (img,127,255,cv2.THRESHTRUNC) ret,thresh4 cv2.threshold (img,127,255,cv2.THRESHTOZERO) ret,thresh5 cv2.threshold (img,127,255,cv2. > 1 dbx.files_upload(figure, '/project/file1.png', mode=)Ĭ:\tools\Anaconda3\lib\site-packages\dropbox\base.py in files_upload(self, f, path, mode, autorename, client_modified, mute, property_groups, strict_conflict)Ĭ:\tools\Anaconda3\lib\site-packages\dropbox\dropbox_client.py in request(self, route, namespace, request_arg, request_binary, timeout) The error which I am getting is TypeError Traceback (most recent call last) Is there any way that I can convert matplotlib Figure to binary type so that I can upload the image to dropbox import dropbox ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |