Update Manager doesn't work “ImportError: No module named 'codecs'”
Hello,
Dear awesome community
Each time I try sudo update-manager
it returns
Fatal Python error: Py_Initialize: Unable to get the locale encoding
Traceback (most recent call last): File
"/usr/lib/python3.4/encodings/__ init __.py", line 31, in
ImportError: No module named 'codecs'
I tried the following with the help of my brother schultza from the IRC boys.:
sudo apt-get update // no errors
sudo apt-get clean // no errors
sudo apt-get install -fy // same error
sudo apt-get install --reinstall python3 // same error
sudo apt-get install --reinstall dpkg apt update-manager python // same error
sudo apt-get autoremove // same error
sudo apt-get upgrade // same error
sudo apt-get install --reinstall python3.4 //E: Internal Error, No file name for python3.4:amd64
sudo apt-get install python3.4 // same error (Dependency problems )
python --version //Python 2.7.6
- sudo apt-get -f install // same error (Dependency problems )
And I didn't modify the "__ init __.py" file .
Here is a full error code with my name removed:
http://pastebin.com/YX3m1HRy
I'm using ubuntu 14.04 LTS
Thanks for being Awesome
Your brother Majed
apt python update-manager
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
|
show 2 more comments
Hello,
Dear awesome community
Each time I try sudo update-manager
it returns
Fatal Python error: Py_Initialize: Unable to get the locale encoding
Traceback (most recent call last): File
"/usr/lib/python3.4/encodings/__ init __.py", line 31, in
ImportError: No module named 'codecs'
I tried the following with the help of my brother schultza from the IRC boys.:
sudo apt-get update // no errors
sudo apt-get clean // no errors
sudo apt-get install -fy // same error
sudo apt-get install --reinstall python3 // same error
sudo apt-get install --reinstall dpkg apt update-manager python // same error
sudo apt-get autoremove // same error
sudo apt-get upgrade // same error
sudo apt-get install --reinstall python3.4 //E: Internal Error, No file name for python3.4:amd64
sudo apt-get install python3.4 // same error (Dependency problems )
python --version //Python 2.7.6
- sudo apt-get -f install // same error (Dependency problems )
And I didn't modify the "__ init __.py" file .
Here is a full error code with my name removed:
http://pastebin.com/YX3m1HRy
I'm using ubuntu 14.04 LTS
Thanks for being Awesome
Your brother Majed
apt python update-manager
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
I triedgksu update manager
as one of the members recommended ; and it returnsFatal Python error: Py_Initialize: Unable to get the locale encoding Traceback (most recent call last): File "/usr/lib/python3.4/encodings/__init__.py", line 31, in <module> ImportError: No module named 'codecs' Aborted (core dumped)
– Majed
Nov 28 '14 at 8:24
I added a space between __ init __ .py ; so the editor doesn't make it init.py
– Majed
Nov 28 '14 at 8:35
Could you check how many versions of python do you have on your system? It seems 2.7.6, but apt is using a messy 3.4, tryls /usr/lib
command and look at python directory. Also could you update your question with Ubuntu version?
– Lety
Nov 30 '14 at 17:00
here is thels /usr/lib/python*
output : http://pastebin.com/DK1mqNBe
– Majed
Dec 2 '14 at 12:41
@Letizia I triedlsb_release -a
. Sadly I get the same error msg which isFatal Python error: Py_Initialize: Unable to get the locale encoding Traceback (most recent call last): File "/usr/lib/python3.4/encodings/__init__.py", line 31, in <module> ImportError: No module named 'codecs' Aborted
– Majed
Dec 2 '14 at 12:55
|
show 2 more comments
Hello,
Dear awesome community
Each time I try sudo update-manager
it returns
Fatal Python error: Py_Initialize: Unable to get the locale encoding
Traceback (most recent call last): File
"/usr/lib/python3.4/encodings/__ init __.py", line 31, in
ImportError: No module named 'codecs'
I tried the following with the help of my brother schultza from the IRC boys.:
sudo apt-get update // no errors
sudo apt-get clean // no errors
sudo apt-get install -fy // same error
sudo apt-get install --reinstall python3 // same error
sudo apt-get install --reinstall dpkg apt update-manager python // same error
sudo apt-get autoremove // same error
sudo apt-get upgrade // same error
sudo apt-get install --reinstall python3.4 //E: Internal Error, No file name for python3.4:amd64
sudo apt-get install python3.4 // same error (Dependency problems )
python --version //Python 2.7.6
- sudo apt-get -f install // same error (Dependency problems )
And I didn't modify the "__ init __.py" file .
Here is a full error code with my name removed:
http://pastebin.com/YX3m1HRy
I'm using ubuntu 14.04 LTS
Thanks for being Awesome
Your brother Majed
apt python update-manager
Hello,
Dear awesome community
Each time I try sudo update-manager
it returns
Fatal Python error: Py_Initialize: Unable to get the locale encoding
Traceback (most recent call last): File
"/usr/lib/python3.4/encodings/__ init __.py", line 31, in
ImportError: No module named 'codecs'
I tried the following with the help of my brother schultza from the IRC boys.:
sudo apt-get update // no errors
sudo apt-get clean // no errors
sudo apt-get install -fy // same error
sudo apt-get install --reinstall python3 // same error
sudo apt-get install --reinstall dpkg apt update-manager python // same error
sudo apt-get autoremove // same error
sudo apt-get upgrade // same error
sudo apt-get install --reinstall python3.4 //E: Internal Error, No file name for python3.4:amd64
sudo apt-get install python3.4 // same error (Dependency problems )
python --version //Python 2.7.6
- sudo apt-get -f install // same error (Dependency problems )
And I didn't modify the "__ init __.py" file .
Here is a full error code with my name removed:
http://pastebin.com/YX3m1HRy
I'm using ubuntu 14.04 LTS
Thanks for being Awesome
Your brother Majed
apt python update-manager
apt python update-manager
edited Dec 2 '14 at 12:47
Majed
asked Nov 28 '14 at 8:03
MajedMajed
613
613
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
I triedgksu update manager
as one of the members recommended ; and it returnsFatal Python error: Py_Initialize: Unable to get the locale encoding Traceback (most recent call last): File "/usr/lib/python3.4/encodings/__init__.py", line 31, in <module> ImportError: No module named 'codecs' Aborted (core dumped)
– Majed
Nov 28 '14 at 8:24
I added a space between __ init __ .py ; so the editor doesn't make it init.py
– Majed
Nov 28 '14 at 8:35
Could you check how many versions of python do you have on your system? It seems 2.7.6, but apt is using a messy 3.4, tryls /usr/lib
command and look at python directory. Also could you update your question with Ubuntu version?
– Lety
Nov 30 '14 at 17:00
here is thels /usr/lib/python*
output : http://pastebin.com/DK1mqNBe
– Majed
Dec 2 '14 at 12:41
@Letizia I triedlsb_release -a
. Sadly I get the same error msg which isFatal Python error: Py_Initialize: Unable to get the locale encoding Traceback (most recent call last): File "/usr/lib/python3.4/encodings/__init__.py", line 31, in <module> ImportError: No module named 'codecs' Aborted
– Majed
Dec 2 '14 at 12:55
|
show 2 more comments
I triedgksu update manager
as one of the members recommended ; and it returnsFatal Python error: Py_Initialize: Unable to get the locale encoding Traceback (most recent call last): File "/usr/lib/python3.4/encodings/__init__.py", line 31, in <module> ImportError: No module named 'codecs' Aborted (core dumped)
– Majed
Nov 28 '14 at 8:24
I added a space between __ init __ .py ; so the editor doesn't make it init.py
– Majed
Nov 28 '14 at 8:35
Could you check how many versions of python do you have on your system? It seems 2.7.6, but apt is using a messy 3.4, tryls /usr/lib
command and look at python directory. Also could you update your question with Ubuntu version?
– Lety
Nov 30 '14 at 17:00
here is thels /usr/lib/python*
output : http://pastebin.com/DK1mqNBe
– Majed
Dec 2 '14 at 12:41
@Letizia I triedlsb_release -a
. Sadly I get the same error msg which isFatal Python error: Py_Initialize: Unable to get the locale encoding Traceback (most recent call last): File "/usr/lib/python3.4/encodings/__init__.py", line 31, in <module> ImportError: No module named 'codecs' Aborted
– Majed
Dec 2 '14 at 12:55
I tried
gksu update manager
as one of the members recommended ; and it returns Fatal Python error: Py_Initialize: Unable to get the locale encoding Traceback (most recent call last): File "/usr/lib/python3.4/encodings/__init__.py", line 31, in <module> ImportError: No module named 'codecs' Aborted (core dumped)
– Majed
Nov 28 '14 at 8:24
I tried
gksu update manager
as one of the members recommended ; and it returns Fatal Python error: Py_Initialize: Unable to get the locale encoding Traceback (most recent call last): File "/usr/lib/python3.4/encodings/__init__.py", line 31, in <module> ImportError: No module named 'codecs' Aborted (core dumped)
– Majed
Nov 28 '14 at 8:24
I added a space between __ init __ .py ; so the editor doesn't make it init.py
– Majed
Nov 28 '14 at 8:35
I added a space between __ init __ .py ; so the editor doesn't make it init.py
– Majed
Nov 28 '14 at 8:35
Could you check how many versions of python do you have on your system? It seems 2.7.6, but apt is using a messy 3.4, try
ls /usr/lib
command and look at python directory. Also could you update your question with Ubuntu version?– Lety
Nov 30 '14 at 17:00
Could you check how many versions of python do you have on your system? It seems 2.7.6, but apt is using a messy 3.4, try
ls /usr/lib
command and look at python directory. Also could you update your question with Ubuntu version?– Lety
Nov 30 '14 at 17:00
here is the
ls /usr/lib/python*
output : http://pastebin.com/DK1mqNBe– Majed
Dec 2 '14 at 12:41
here is the
ls /usr/lib/python*
output : http://pastebin.com/DK1mqNBe– Majed
Dec 2 '14 at 12:41
@Letizia I tried
lsb_release -a
. Sadly I get the same error msg which is Fatal Python error: Py_Initialize: Unable to get the locale encoding Traceback (most recent call last): File "/usr/lib/python3.4/encodings/__init__.py", line 31, in <module> ImportError: No module named 'codecs' Aborted
– Majed
Dec 2 '14 at 12:55
@Letizia I tried
lsb_release -a
. Sadly I get the same error msg which is Fatal Python error: Py_Initialize: Unable to get the locale encoding Traceback (most recent call last): File "/usr/lib/python3.4/encodings/__init__.py", line 31, in <module> ImportError: No module named 'codecs' Aborted
– Majed
Dec 2 '14 at 12:55
|
show 2 more comments
1 Answer
1
active
oldest
votes
This can happen if your filesystem has been damaged. Check the logs for hints, and also look inside /lost+found
.
The solution is to reinstall the package containing the missing module.
Find the Ubuntu package providing this file:
dpkg -S /usr/lib/python3.4/codecs.py
Reinstall the package:
sudo apt-get install --reinstall libpython3.4-minimal
Also, reinstall the packages that provide any other files found in lost+found
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f554202%2fupdate-manager-doesnt-work-importerror-no-module-named-codecs%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
This can happen if your filesystem has been damaged. Check the logs for hints, and also look inside /lost+found
.
The solution is to reinstall the package containing the missing module.
Find the Ubuntu package providing this file:
dpkg -S /usr/lib/python3.4/codecs.py
Reinstall the package:
sudo apt-get install --reinstall libpython3.4-minimal
Also, reinstall the packages that provide any other files found in lost+found
add a comment |
This can happen if your filesystem has been damaged. Check the logs for hints, and also look inside /lost+found
.
The solution is to reinstall the package containing the missing module.
Find the Ubuntu package providing this file:
dpkg -S /usr/lib/python3.4/codecs.py
Reinstall the package:
sudo apt-get install --reinstall libpython3.4-minimal
Also, reinstall the packages that provide any other files found in lost+found
add a comment |
This can happen if your filesystem has been damaged. Check the logs for hints, and also look inside /lost+found
.
The solution is to reinstall the package containing the missing module.
Find the Ubuntu package providing this file:
dpkg -S /usr/lib/python3.4/codecs.py
Reinstall the package:
sudo apt-get install --reinstall libpython3.4-minimal
Also, reinstall the packages that provide any other files found in lost+found
This can happen if your filesystem has been damaged. Check the logs for hints, and also look inside /lost+found
.
The solution is to reinstall the package containing the missing module.
Find the Ubuntu package providing this file:
dpkg -S /usr/lib/python3.4/codecs.py
Reinstall the package:
sudo apt-get install --reinstall libpython3.4-minimal
Also, reinstall the packages that provide any other files found in lost+found
answered May 30 '15 at 8:36
Sergiu BivolSergiu Bivol
362
362
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f554202%2fupdate-manager-doesnt-work-importerror-no-module-named-codecs%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I tried
gksu update manager
as one of the members recommended ; and it returnsFatal Python error: Py_Initialize: Unable to get the locale encoding Traceback (most recent call last): File "/usr/lib/python3.4/encodings/__init__.py", line 31, in <module> ImportError: No module named 'codecs' Aborted (core dumped)
– Majed
Nov 28 '14 at 8:24
I added a space between __ init __ .py ; so the editor doesn't make it init.py
– Majed
Nov 28 '14 at 8:35
Could you check how many versions of python do you have on your system? It seems 2.7.6, but apt is using a messy 3.4, try
ls /usr/lib
command and look at python directory. Also could you update your question with Ubuntu version?– Lety
Nov 30 '14 at 17:00
here is the
ls /usr/lib/python*
output : http://pastebin.com/DK1mqNBe– Majed
Dec 2 '14 at 12:41
@Letizia I tried
lsb_release -a
. Sadly I get the same error msg which isFatal Python error: Py_Initialize: Unable to get the locale encoding Traceback (most recent call last): File "/usr/lib/python3.4/encodings/__init__.py", line 31, in <module> ImportError: No module named 'codecs' Aborted
– Majed
Dec 2 '14 at 12:55