Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I recently encountered the same problem whenever I run a Python 3.3.0 script in Aptana Studio using Ubuntu Quantal. Aside from the error from the script I'm working on, I get the following intermingled with it:</p> <pre><code>Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 64, in apport_excepthook from apport.fileutils import likely_packaged, get_recent_crashes File "/usr/lib/python3/dist-packages/apport/__init__.py", line 4, in &lt;module&gt; from apport.report import Report File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in &lt;module&gt; import apport.fileutils File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in &lt;module&gt; from apport.packaging_impl import impl as packaging File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 20, in &lt;module&gt; import apt File "/usr/lib/python3/dist-packages/apt/__init__.py", line 21, in &lt;module&gt; import apt_pkg ImportError: No module named 'apt_pkg' </code></pre> <p>I tried removing, cleaning, purging, and reinstalling python3-apt, and kind of snooping around a bit, and I found that the error is only affecting Python 3.3.0. Trying to import <code>apt_pkg</code> in IDLE barks the same error. Interestingly, importing this using IDLE with Python 3.2.3 works fine. Additionally, both version of Python 3.x.x share the same <code>/usr/lib/python3/dist-packages</code>, and in it there's <code>apt_pkg.cpython-32mu.so</code> and <code>apt_pkg.cpython-32dmu.so</code>. Are these file just not compatible with Python 3.3.0?</p> <p>One last thing, running the script outside of Aptana Studio gives me my script's error without the <code>ImportError: No module named 'apt_pkg'</code> message.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload