2012-02-25 15 views
1

私は愚かなので、私は実行してこの問題を解決しようとする/usr/lib/python3.2
からsubprocess.pyモジュールを取り外しますこのエラーが発生しました:修理破損しPython3.2のインストール(Ubuntuの)

Traceback (most recent call last): File "/usr/bin/py3compile", line 33, in
from subprocess import PIPE, Popen ImportError: No module named subprocess dpkg: error processing python3 (--configure): subprocess
installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of python3-gobject: python3-gobject depends on python3 (>= 3.2); however: Package python3 is not configured yet. python3-gobject depends on python3 (<< 3.3); however: Package python3 is not configured yet. dpkg: error processing python3-gobject (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure. Errors were encountered while processing: python3 python3-gobject E: Sub-process /usr/bin/dpkg returned an error code (1)

どうすれば修正できますか?

答えて

8

Python 3をアンインストールしてからもう一度インストールしてみましたか?

sudo apt-get remove python3 
sudo apt-get install python3 

または多分

sudo apt-get --reinstall install python3 

これが動作しない場合は、単にPythonのリポジトリからsubprocess.pyを取得し、右のディレクトリにコピーします。例えば、Pythonの3.2.2のために、あなたのブラウザでナビゲート:

http://hg.python.org/cpython/file/137e45f15c0b/Lib/subprocess.py

と「生」(左列)でクリックすると、ファイルをダウンロードします。

http://hg.python.org/cpython/tags

は、その後、あなたのバージョンを選択し、ブラウズ(左列)、その後のLib、その後、 "subprocess.py"(フォルダのリストから)をクリックしてください:他のバージョンについては

、ちょうどに行きますファイルをダウンロードするには "raw"(左の列)をクリックします。

+0

私はそれを試しましたが、うまくいきません。コンソールには同じエラーが表示されます – nouh

+0

多くのおかげで、私はそれが所属する場所に生のファイルをcp、問題が解決しました。 – nouh

+0

同じ問題で2日間過ごした後、ついに 'sudo apt-get --reinstall install python3'の問題を解決しました。 – Gagan

関連する問題