<div dir="ltr">Hi Omero developers,<br clear="all"><div><br></div><div>I would like to create a new table. I followed exactly the steps given in the <a href="https://docs.openmicroscopy.org/omero/5.4.6/developers/Python.html#omero-tables">python documentation</a>. I use the current version of omero (5.4.6).<br></div><div><br></div><div>Here is the my minimal code snippet:</div><div><i>#############################################################<br></i></div><div><i>table_name = "myrandomname"<br></i></div><div><i>columns = [omero.grid.LongColumn('col1', 'col test', [1,2,3])]<br><br>resources = conn.c.sf.sharedResources()<br>repository_id = resources.repositories().descriptions[0].getId().getValue()<br>table = resources.newTable(repository_id, table_name)<br>table.initialize(columns)<br>table.addData(columns)<br>table.close()<div><i>#############################################################</i></div><br></i></div><div><i><pre><span class="gmail-ansi-red-fg">AttributeError</span>: 'NoneType' object has no attribute 'initialize'</pre></i>The error is quite clear, <i>resources.newTable</i> returns None. However, I am not too sure what I should do to fix it.</div><div><br></div><div>Also it seems a record is created in the originalfile database table every time I run this code.<br></div><div><br></div><div>Thank you for your patience.</div><div><br></div><div>Regards,</div><div><br></div><div>Etienne<br></div><div><i></i></div><div><i><br></i></div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Etienne Dumoulin</div><div>PhenomicAI</div><div>Lead software engineer</div><div>+1 (416)-471-8323<br></div></div></div></div></div></div></div>
</div></div>