2012-02-25 3 views
1

나는 바보 그래서 실행하여이 문제를 해결하려고 /usr/lib/python3.2
에서 subprocess.py 모듈을 제거 이 오류가 발생했습니다 :수리 손상 Python3.2 설치 (우분투)

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 

, 그냥 파이썬 저장소에서 subprocess.py을 잡고 그것은 올바른 디렉토리에 복사합니다. 예를 들어, 파이썬 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

감사합니다. 원시 파일을 어디에 속하게 할 지 문제가 해결되었습니다. – nouh

+0

같은 이슈로 2 일을 보낸 후에 마침내'sudo apt-get --reinstall install python3' 문제가 해결되었습니다. – Gagan