$ sudo apt-get install python-qscintilla2<br>[sudo] password for jchia:<br>Reading package lists... Done<br>Building dependency tree<br>Reading state information... Done<br>python-qscintilla2 is already the newest version.<br>
python-qscintilla2 set to manually installed.<br>0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.<br>$ eric<br>Warning: translation file &#39;qt_en_US&#39;could not be loaded.<br>Using default.<br>Warning: translation file &#39;eric4_en_US&#39;could not be loaded.<br>
Using default.<br>Warning: translation file &#39;qscintilla_en_US&#39;could not be loaded.<br>Using default.<br><br>After this, I looked API dialog.&nbsp; The &quot;Add from installed APIs&quot; was greyed out.&nbsp; I&#39;m running a variant of Ubuntu Hardy.<br>
<br>Josh<br><br><div class="gmail_quote">On Sat, Oct 25, 2008 at 3:01 AM, Detlev Offenbach <span dir="ltr">&lt;<a href="mailto:detlev@die-offenbachs.de">detlev@die-offenbachs.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Samstag, 25. Oktober 2008, ☂Josh Chiα (谢任中) wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m not sure how to get auto-completion to work. &nbsp;E.g. if I just install<br>
&gt; Eric4.1.1, and edit a .py file, autocompletion doesn&#39;t know anything about<br>
&gt; math.sqrt. &nbsp;Fine, I run &quot;eric4-api -o test.api /usr/lib/python2.5/*.py&quot;,<br>
&gt; and set Eric to use the resulting test.api. &nbsp;Well, math is not in a .py<br>
&gt; file. How do I get Eric to autocomplete for a standard modules like math?<br>
&gt; I&#39;m not sure what other modules have the same problem as math.<br>
&gt;<br>
&gt; Josh<br>
<br>
</div></div>Have you tried to enable the usage of the Python API file that comes with<br>
QScintilla (I think)? Just go to the eric4 configuration dialog, API page,<br>
select Python and select &quot;Add from installed APIs&quot;. You should get a list of<br>
raw API files to select from. Once done, just compile the list into a<br>
prepared API file (which is a binary file). This file is used by the<br>
QScintilla autocompletion. Alternatively you may install the eric4 assistant<br>
plugin (for eric4 4.2.0 or better) and configure the autocompletion to use<br>
that instead. You still have to configure the set of rawAPI files to use.<br>
However, compilation is done automatically if needed.<br>
<br>
Regards,<br>
Detlev<br>
<font color="#888888">--<br>
Detlev Offenbach<br>
<a href="mailto:detlev@die-offenbachs.de">detlev@die-offenbachs.de</a><br>
</font></blockquote></div><br>