Hi guys!<div><br></div><div>I'm stuck at a problem, when I run the follow code:</div><div><br></div><div><div><a href="http://pastebin.com/4Gd9V325">http://pastebin.com/4Gd9V325</a></div><div><br></div><div>I get this error:</div>
<div><br></div><div><div><font class="Apple-style-span" color="#ff0000">Traceback (most recent call last):</font></div><div><font class="Apple-style-span" color="#ff0000"> File "/home/jayron/Downloads/grafos.py", line 49, in <module></font></div>
<div><font class="Apple-style-span" color="#ff0000"> g, e = ministro_lei()</font></div><div><font class="Apple-style-span" color="#ff0000"> File "/home/jayron/Downloads/grafos.py", line 24, in ministro_lei</font></div>
<div><font class="Apple-style-span" color="#ff0000"> resp = Q.fetchall()</font></div><div><font class="Apple-style-span" color="#ff0000">AttributeError: 'long' object has no attribute 'fetchall'</font></div>
</div><div><font class="Apple-style-span" color="#ff0000"><br></font></div><div><font class="Apple-style-span" color="#000099">Please any help ?</font></div><div><font class="Apple-style-span" color="#000099"><br></font></div>
<div><font class="Apple-style-span" color="#000099">cheers</font></div><div><font class="Apple-style-span" color="#000099"><br></font></div><div><font class="Apple-style-span" color="#000099"><br></font></div>-- <br><i><font color="#006600">" A Vida é arte do Saber...Quem quiser saber tem que </font><font color="#ff0000"><b>Estudar</b></font><font color="#006600">!"</font></i><div>
<br></div><div><a href="http://bucolick.tumblr.com/" target="_blank">http://bucolick.tumblr.com</a></div><div><a href="http://artecultural.wordpress.com/" target="_blank">http://artecultural.wordpress.com/</a></div><br>
</div>