$ 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 'qt_en_US'could not be loaded.<br>Using default.<br>Warning: translation file 'eric4_en_US'could not be loaded.<br>
Using default.<br>Warning: translation file 'qscintilla_en_US'could not be loaded.<br>Using default.<br><br>After this, I looked API dialog. The "Add from installed APIs" was greyed out. I'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"><<a href="mailto:detlev@die-offenbachs.de">detlev@die-offenbachs.de</a>></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>
> Hi,<br>
><br>
> I'm not sure how to get auto-completion to work. E.g. if I just install<br>
> Eric4.1.1, and edit a .py file, autocompletion doesn't know anything about<br>
> math.sqrt. Fine, I run "eric4-api -o test.api /usr/lib/python2.5/*.py",<br>
> and set Eric to use the resulting test.api. Well, math is not in a .py<br>
> file. How do I get Eric to autocomplete for a standard modules like math?<br>
> I'm not sure what other modules have the same problem as math.<br>
><br>
> 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 "Add from installed APIs". 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>