<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://imechanica.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>iMechanica - python script error - Comments</title>
 <link>http://imechanica.org/node/3142</link>
 <description>Comments for &quot;python script error&quot;</description>
 <language>en</language>
<item>
 <title>Python script error - define element sets first</title>
 <link>http://imechanica.org/node/3142#comment-7465</link>
 <description>&lt;p&gt;
Hey&amp;nbsp; Muhammad,&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
I think this is because you must be trying to call history output data for &amp;#39;PIVOT&amp;#39; and &amp;#39;ElementSet PIVOT&amp;#39;, while these have not been defined in the file. Try defining the set and element sets in the assmebly module and you should be able to read history output data after running the job.
&lt;/p&gt;
&lt;p&gt;
just out of curiosity, what are you trying to do with the python script? what program are you trying to run? or is it just for the python compiler?
&lt;/p&gt;
&lt;p&gt;
good luck!
&lt;/p&gt;
&lt;p&gt;
Regards,
&lt;/p&gt;
&lt;p&gt;
Raul&amp;nbsp;
&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;</description>
 <pubDate>Thu, 15 May 2008 03:24:01 -0400</pubDate>
 <dc:creator>raul_bobby</dc:creator>
 <guid isPermaLink="false">comment 7465 at http://imechanica.org</guid>
</item>
<item>
 <title>python script error</title>
 <link>http://imechanica.org/node/3142</link>
 <description>&lt;p&gt;
Hi &lt;br /&gt;
I have script written in phyton and get following error when try to read history data. &lt;br /&gt;
I will appreciate any help. &lt;br /&gt;
thanks and regards,&lt;/p&gt;
&lt;p&gt;ERROR:
&lt;/p&gt;
&lt;p&gt;
Neither set named &amp;#39;PIVOT&amp;#39; nor region named &amp;#39;ElementSet PIVOT&amp;#39; found. &lt;/p&gt;
&lt;p&gt;***COMMENT: History output is available at the following points [&amp;#39;Element PART-1-1.701&amp;#39;, &amp;#39;Element PART-1-1.908&amp;#39;, &amp;#39;Element PART-1-1.909&amp;#39;, &amp;#39;Node PART-1-1.901&amp;#39;, &amp;#39;Node PART-1-1.902&amp;#39;, &amp;#39;Node PART-1-1.903&amp;#39;, &amp;#39;Node PART-1-1.904&amp;#39;] &lt;/p&gt;
&lt;p&gt;***ERROR: The spatial location for the requested history not found in the historyRegion objects of step &amp;#39;Step-1&amp;#39;. &lt;/p&gt;
&lt;p&gt;***ERROR: No history data in output database
&lt;/p&gt;
&lt;p&gt;
POST SCRIPT FILE&lt;/p&gt;
&lt;p&gt;PSF tp.generate(template=&amp;#39;base07-f&amp;#39;) &lt;/p&gt;
&lt;p&gt;tp.execute(ALL) &lt;br /&gt;
tp.output(file=ODB,request=HISTORY,step=1) &lt;/p&gt;
&lt;p&gt;tp.gather(request=HISTORY,results=&amp;#39;pivot_CU&amp;#39;, variable=&amp;#39;CU&amp;#39;,elset=&amp;#39;pivot&amp;#39;) &lt;br /&gt;
tp.report(FILE,par=(&amp;#39;m1_mass&amp;#39;),results=(&amp;#39;pivot_CUR.1&amp;#39;),file=&amp;#39;output&amp;#39;) &lt;/p&gt;
&lt;p&gt;INPUT FILE &lt;/p&gt;
&lt;p&gt;*output,history,freq=1
&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;</description>
 <comments>http://imechanica.org/node/3142#comments</comments>
 <category domain="http://imechanica.org/taxonomy/term/109">Ask iMechanica</category>
 <category domain="http://imechanica.org/taxonomy/term/289">ABAQUS</category>
 <pubDate>Tue, 29 Apr 2008 18:04:08 -0400</pubDate>
 <dc:creator>muhammad</dc:creator>
 <guid isPermaLink="false">3142 at http://imechanica.org</guid>
</item>
</channel>
</rss>
