server-client-python
server-client-python copied to clipboard
AttributeError: 'WorkbookItem' object has no attribute 'csv'
I'm using export.py from sample code on Jupyter notebook. I can view and load the workbook. Below is the error when I try to write data to csv.
tableauserverclient>=0.26 python=3.9 tableau server=2023.1.2
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[35], line 113
109 print("saved to " + filename)
112 if __name__ == "__main__":
--> 113 main()
Cell In[35], line 106, in main()
104 with open(filename, "wb") as f:
105 if member_name == "csv":
--> 106 f.writelines(getattr(item, member_name))
107 else:
108 f.write(getattr(item, member_name))
AttributeError: 'WorkbookItem' object has no attribute 'csv'
@hb0313 I tried but have not been able to reproduce this yet. I know that TSC 0.26 had some other issues, so you might try testing with 0.25 to see if that works for your case. I tried with both 0.25 and 0.26 with a couple different server versions.