ImportError: No module named dbus
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I need help urgently :(
I was trying to update my Python and messed up my whole system.
I am currently now able to start my software centre. I tried Googling multiple fixes but nothing helped. My Software Centre can't start.
When i try starting it up, this error shows :
astephen@localhost:/usr/bin$ ./software-centerGtk-Message: Failed to load module "gtk-vector-screenshot"
Traceback (most recent call last):
File "./software-center", line 36, in <module>
from softwarecenter.utils import (
File "/usr/share/software-center/softwarecenter/utils.py", line 19, in <module>
import dbus
ImportError: No module named dbus
I tried reinstaling dbus using
apt-get install --reinstall dbus
but it did not help :(
astephen@localhost:/usr/bin$ sudo apt-get install --reinstall dbusReading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/231 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 676272 files and directories currently installed.)
Preparing to unpack .../dbus_1.6.18-0ubuntu4.3_amd64.deb ...
Unpacking dbus (1.6.18-0ubuntu4.3) over (1.6.18-0ubuntu4.3) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up dbus (1.6.18-0ubuntu4.3) ...
Any help is appreciated :(
python software-center dbus
add a comment |
I need help urgently :(
I was trying to update my Python and messed up my whole system.
I am currently now able to start my software centre. I tried Googling multiple fixes but nothing helped. My Software Centre can't start.
When i try starting it up, this error shows :
astephen@localhost:/usr/bin$ ./software-centerGtk-Message: Failed to load module "gtk-vector-screenshot"
Traceback (most recent call last):
File "./software-center", line 36, in <module>
from softwarecenter.utils import (
File "/usr/share/software-center/softwarecenter/utils.py", line 19, in <module>
import dbus
ImportError: No module named dbus
I tried reinstaling dbus using
apt-get install --reinstall dbus
but it did not help :(
astephen@localhost:/usr/bin$ sudo apt-get install --reinstall dbusReading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/231 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 676272 files and directories currently installed.)
Preparing to unpack .../dbus_1.6.18-0ubuntu4.3_amd64.deb ...
Unpacking dbus (1.6.18-0ubuntu4.3) over (1.6.18-0ubuntu4.3) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up dbus (1.6.18-0ubuntu4.3) ...
Any help is appreciated :(
python software-center dbus
3
I am on mobile currently, but I am pretty sure it is not dbus you need to (re) install, but something like python-dbus or python3-dbus (python bindings) If you use synaptic, you can easily search for t he right one.
– Jacob Vlijm
Jul 21 '16 at 7:58
i tried to run sudo -h pip install dbus however it returned : Could not find a version that satisfies the requirement dbus (from versions: ) No matching distribution found for dbus Any ideas ? :(
– Adrian O'neil Stephen
Aug 4 '16 at 6:49
Did you try what @user72216 said?
– edwinksl
Sep 13 '16 at 21:18
add a comment |
I need help urgently :(
I was trying to update my Python and messed up my whole system.
I am currently now able to start my software centre. I tried Googling multiple fixes but nothing helped. My Software Centre can't start.
When i try starting it up, this error shows :
astephen@localhost:/usr/bin$ ./software-centerGtk-Message: Failed to load module "gtk-vector-screenshot"
Traceback (most recent call last):
File "./software-center", line 36, in <module>
from softwarecenter.utils import (
File "/usr/share/software-center/softwarecenter/utils.py", line 19, in <module>
import dbus
ImportError: No module named dbus
I tried reinstaling dbus using
apt-get install --reinstall dbus
but it did not help :(
astephen@localhost:/usr/bin$ sudo apt-get install --reinstall dbusReading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/231 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 676272 files and directories currently installed.)
Preparing to unpack .../dbus_1.6.18-0ubuntu4.3_amd64.deb ...
Unpacking dbus (1.6.18-0ubuntu4.3) over (1.6.18-0ubuntu4.3) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up dbus (1.6.18-0ubuntu4.3) ...
Any help is appreciated :(
python software-center dbus
I need help urgently :(
I was trying to update my Python and messed up my whole system.
I am currently now able to start my software centre. I tried Googling multiple fixes but nothing helped. My Software Centre can't start.
When i try starting it up, this error shows :
astephen@localhost:/usr/bin$ ./software-centerGtk-Message: Failed to load module "gtk-vector-screenshot"
Traceback (most recent call last):
File "./software-center", line 36, in <module>
from softwarecenter.utils import (
File "/usr/share/software-center/softwarecenter/utils.py", line 19, in <module>
import dbus
ImportError: No module named dbus
I tried reinstaling dbus using
apt-get install --reinstall dbus
but it did not help :(
astephen@localhost:/usr/bin$ sudo apt-get install --reinstall dbusReading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/231 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 676272 files and directories currently installed.)
Preparing to unpack .../dbus_1.6.18-0ubuntu4.3_amd64.deb ...
Unpacking dbus (1.6.18-0ubuntu4.3) over (1.6.18-0ubuntu4.3) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up dbus (1.6.18-0ubuntu4.3) ...
Any help is appreciated :(
python software-center dbus
python software-center dbus
asked Jul 21 '16 at 7:51
Adrian O'neil StephenAdrian O'neil Stephen
1112
1112
3
I am on mobile currently, but I am pretty sure it is not dbus you need to (re) install, but something like python-dbus or python3-dbus (python bindings) If you use synaptic, you can easily search for t he right one.
– Jacob Vlijm
Jul 21 '16 at 7:58
i tried to run sudo -h pip install dbus however it returned : Could not find a version that satisfies the requirement dbus (from versions: ) No matching distribution found for dbus Any ideas ? :(
– Adrian O'neil Stephen
Aug 4 '16 at 6:49
Did you try what @user72216 said?
– edwinksl
Sep 13 '16 at 21:18
add a comment |
3
I am on mobile currently, but I am pretty sure it is not dbus you need to (re) install, but something like python-dbus or python3-dbus (python bindings) If you use synaptic, you can easily search for t he right one.
– Jacob Vlijm
Jul 21 '16 at 7:58
i tried to run sudo -h pip install dbus however it returned : Could not find a version that satisfies the requirement dbus (from versions: ) No matching distribution found for dbus Any ideas ? :(
– Adrian O'neil Stephen
Aug 4 '16 at 6:49
Did you try what @user72216 said?
– edwinksl
Sep 13 '16 at 21:18
3
3
I am on mobile currently, but I am pretty sure it is not dbus you need to (re) install, but something like python-dbus or python3-dbus (python bindings) If you use synaptic, you can easily search for t he right one.
– Jacob Vlijm
Jul 21 '16 at 7:58
I am on mobile currently, but I am pretty sure it is not dbus you need to (re) install, but something like python-dbus or python3-dbus (python bindings) If you use synaptic, you can easily search for t he right one.
– Jacob Vlijm
Jul 21 '16 at 7:58
i tried to run sudo -h pip install dbus however it returned : Could not find a version that satisfies the requirement dbus (from versions: ) No matching distribution found for dbus Any ideas ? :(
– Adrian O'neil Stephen
Aug 4 '16 at 6:49
i tried to run sudo -h pip install dbus however it returned : Could not find a version that satisfies the requirement dbus (from versions: ) No matching distribution found for dbus Any ideas ? :(
– Adrian O'neil Stephen
Aug 4 '16 at 6:49
Did you try what @user72216 said?
– edwinksl
Sep 13 '16 at 21:18
Did you try what @user72216 said?
– edwinksl
Sep 13 '16 at 21:18
add a comment |
4 Answers
4
active
oldest
votes
A quick search reveals that the name of the Debian package for the Python DBUS module is called python-dbus
(or python3-dbus
). Why it isn't available despite being an explicit dependency of the software-center
package is beyond me. You should re-install the two packages in case they were corrupted:
sudo apt-get install --reinstall software-center python-dbus
add a comment |
Adrian O'neil Stephen
:
i tried to run sudo -h pip install dbus however it returned : Could not find a version that satisfies the requirement dbus (from versions: ) No matching distribution found for dbus Any ideas ? :( –
Further information on what you did would be helpful, however, my hunches:
Consider a python3 upgrade issue
When upgrading to python3, the modules sometimes change names / the import procedure changes; did you remove your old python environment manually or installed something from git?
Try aptitude
Install aptitude, it recommends ways to solve dependencies. Be careful, however, always check what it wants to do, which other stuff may be affected by this change, and write down what you do, and what aptitude does so you always can undo possible missteps.
Reinstall your System
Sometimes it's just best to nuke everything (in a convoluted OS error issue, after backing up everything, using the export function of the apps apps you want to backup, preferrably. That makes things way easier).
add a comment |
If your python3 module cannot find the right version of packages, a possible hack is to create symlinks to old versions.
In case of dbus, you can do the following. (Say you just upgrade python3.5 to python3.6)
$ cd /usr/lib/python3/dist-packages/
$ ln -s _dbus_glib_bindings.cpython-{35m,36m}-x86_64-linux-gnu.so
If you get further errors, try to link all packages.
a=$(find /usr/lib/python3/dist-packages -name '*35m*so')
b=$(echo $a | tr 35m 36m)
IFS=' ' read -r -a a <<< $a
IFS=' ' read -r -a b <<< $b
for ((i=0;i<${#a[@]};++i)); do
ln -s "${a[i]}" "${b[i]}"
done
add a comment |
You must install dbus-python
package using pip
or pip3
:
pip3 install dbus-python
or
pip install dbus-python
Might be you need to sudo
before the above commands.
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%2f801195%2fimporterror-no-module-named-dbus%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
A quick search reveals that the name of the Debian package for the Python DBUS module is called python-dbus
(or python3-dbus
). Why it isn't available despite being an explicit dependency of the software-center
package is beyond me. You should re-install the two packages in case they were corrupted:
sudo apt-get install --reinstall software-center python-dbus
add a comment |
A quick search reveals that the name of the Debian package for the Python DBUS module is called python-dbus
(or python3-dbus
). Why it isn't available despite being an explicit dependency of the software-center
package is beyond me. You should re-install the two packages in case they were corrupted:
sudo apt-get install --reinstall software-center python-dbus
add a comment |
A quick search reveals that the name of the Debian package for the Python DBUS module is called python-dbus
(or python3-dbus
). Why it isn't available despite being an explicit dependency of the software-center
package is beyond me. You should re-install the two packages in case they were corrupted:
sudo apt-get install --reinstall software-center python-dbus
A quick search reveals that the name of the Debian package for the Python DBUS module is called python-dbus
(or python3-dbus
). Why it isn't available despite being an explicit dependency of the software-center
package is beyond me. You should re-install the two packages in case they were corrupted:
sudo apt-get install --reinstall software-center python-dbus
answered Sep 13 '16 at 21:34
David FoersterDavid Foerster
28.6k1367113
28.6k1367113
add a comment |
add a comment |
Adrian O'neil Stephen
:
i tried to run sudo -h pip install dbus however it returned : Could not find a version that satisfies the requirement dbus (from versions: ) No matching distribution found for dbus Any ideas ? :( –
Further information on what you did would be helpful, however, my hunches:
Consider a python3 upgrade issue
When upgrading to python3, the modules sometimes change names / the import procedure changes; did you remove your old python environment manually or installed something from git?
Try aptitude
Install aptitude, it recommends ways to solve dependencies. Be careful, however, always check what it wants to do, which other stuff may be affected by this change, and write down what you do, and what aptitude does so you always can undo possible missteps.
Reinstall your System
Sometimes it's just best to nuke everything (in a convoluted OS error issue, after backing up everything, using the export function of the apps apps you want to backup, preferrably. That makes things way easier).
add a comment |
Adrian O'neil Stephen
:
i tried to run sudo -h pip install dbus however it returned : Could not find a version that satisfies the requirement dbus (from versions: ) No matching distribution found for dbus Any ideas ? :( –
Further information on what you did would be helpful, however, my hunches:
Consider a python3 upgrade issue
When upgrading to python3, the modules sometimes change names / the import procedure changes; did you remove your old python environment manually or installed something from git?
Try aptitude
Install aptitude, it recommends ways to solve dependencies. Be careful, however, always check what it wants to do, which other stuff may be affected by this change, and write down what you do, and what aptitude does so you always can undo possible missteps.
Reinstall your System
Sometimes it's just best to nuke everything (in a convoluted OS error issue, after backing up everything, using the export function of the apps apps you want to backup, preferrably. That makes things way easier).
add a comment |
Adrian O'neil Stephen
:
i tried to run sudo -h pip install dbus however it returned : Could not find a version that satisfies the requirement dbus (from versions: ) No matching distribution found for dbus Any ideas ? :( –
Further information on what you did would be helpful, however, my hunches:
Consider a python3 upgrade issue
When upgrading to python3, the modules sometimes change names / the import procedure changes; did you remove your old python environment manually or installed something from git?
Try aptitude
Install aptitude, it recommends ways to solve dependencies. Be careful, however, always check what it wants to do, which other stuff may be affected by this change, and write down what you do, and what aptitude does so you always can undo possible missteps.
Reinstall your System
Sometimes it's just best to nuke everything (in a convoluted OS error issue, after backing up everything, using the export function of the apps apps you want to backup, preferrably. That makes things way easier).
Adrian O'neil Stephen
:
i tried to run sudo -h pip install dbus however it returned : Could not find a version that satisfies the requirement dbus (from versions: ) No matching distribution found for dbus Any ideas ? :( –
Further information on what you did would be helpful, however, my hunches:
Consider a python3 upgrade issue
When upgrading to python3, the modules sometimes change names / the import procedure changes; did you remove your old python environment manually or installed something from git?
Try aptitude
Install aptitude, it recommends ways to solve dependencies. Be careful, however, always check what it wants to do, which other stuff may be affected by this change, and write down what you do, and what aptitude does so you always can undo possible missteps.
Reinstall your System
Sometimes it's just best to nuke everything (in a convoluted OS error issue, after backing up everything, using the export function of the apps apps you want to backup, preferrably. That makes things way easier).
edited Apr 13 '17 at 12:23
Community♦
1
1
answered Sep 13 '16 at 21:08
hirschhirsch
539
539
add a comment |
add a comment |
If your python3 module cannot find the right version of packages, a possible hack is to create symlinks to old versions.
In case of dbus, you can do the following. (Say you just upgrade python3.5 to python3.6)
$ cd /usr/lib/python3/dist-packages/
$ ln -s _dbus_glib_bindings.cpython-{35m,36m}-x86_64-linux-gnu.so
If you get further errors, try to link all packages.
a=$(find /usr/lib/python3/dist-packages -name '*35m*so')
b=$(echo $a | tr 35m 36m)
IFS=' ' read -r -a a <<< $a
IFS=' ' read -r -a b <<< $b
for ((i=0;i<${#a[@]};++i)); do
ln -s "${a[i]}" "${b[i]}"
done
add a comment |
If your python3 module cannot find the right version of packages, a possible hack is to create symlinks to old versions.
In case of dbus, you can do the following. (Say you just upgrade python3.5 to python3.6)
$ cd /usr/lib/python3/dist-packages/
$ ln -s _dbus_glib_bindings.cpython-{35m,36m}-x86_64-linux-gnu.so
If you get further errors, try to link all packages.
a=$(find /usr/lib/python3/dist-packages -name '*35m*so')
b=$(echo $a | tr 35m 36m)
IFS=' ' read -r -a a <<< $a
IFS=' ' read -r -a b <<< $b
for ((i=0;i<${#a[@]};++i)); do
ln -s "${a[i]}" "${b[i]}"
done
add a comment |
If your python3 module cannot find the right version of packages, a possible hack is to create symlinks to old versions.
In case of dbus, you can do the following. (Say you just upgrade python3.5 to python3.6)
$ cd /usr/lib/python3/dist-packages/
$ ln -s _dbus_glib_bindings.cpython-{35m,36m}-x86_64-linux-gnu.so
If you get further errors, try to link all packages.
a=$(find /usr/lib/python3/dist-packages -name '*35m*so')
b=$(echo $a | tr 35m 36m)
IFS=' ' read -r -a a <<< $a
IFS=' ' read -r -a b <<< $b
for ((i=0;i<${#a[@]};++i)); do
ln -s "${a[i]}" "${b[i]}"
done
If your python3 module cannot find the right version of packages, a possible hack is to create symlinks to old versions.
In case of dbus, you can do the following. (Say you just upgrade python3.5 to python3.6)
$ cd /usr/lib/python3/dist-packages/
$ ln -s _dbus_glib_bindings.cpython-{35m,36m}-x86_64-linux-gnu.so
If you get further errors, try to link all packages.
a=$(find /usr/lib/python3/dist-packages -name '*35m*so')
b=$(echo $a | tr 35m 36m)
IFS=' ' read -r -a a <<< $a
IFS=' ' read -r -a b <<< $b
for ((i=0;i<${#a[@]};++i)); do
ln -s "${a[i]}" "${b[i]}"
done
answered May 24 '18 at 3:38
Yuq WangYuq Wang
1
1
add a comment |
add a comment |
You must install dbus-python
package using pip
or pip3
:
pip3 install dbus-python
or
pip install dbus-python
Might be you need to sudo
before the above commands.
add a comment |
You must install dbus-python
package using pip
or pip3
:
pip3 install dbus-python
or
pip install dbus-python
Might be you need to sudo
before the above commands.
add a comment |
You must install dbus-python
package using pip
or pip3
:
pip3 install dbus-python
or
pip install dbus-python
Might be you need to sudo
before the above commands.
You must install dbus-python
package using pip
or pip3
:
pip3 install dbus-python
or
pip install dbus-python
Might be you need to sudo
before the above commands.
answered Mar 24 at 12:13
Benyamin JafariBenyamin Jafari
361316
361316
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%2f801195%2fimporterror-no-module-named-dbus%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
3
I am on mobile currently, but I am pretty sure it is not dbus you need to (re) install, but something like python-dbus or python3-dbus (python bindings) If you use synaptic, you can easily search for t he right one.
– Jacob Vlijm
Jul 21 '16 at 7:58
i tried to run sudo -h pip install dbus however it returned : Could not find a version that satisfies the requirement dbus (from versions: ) No matching distribution found for dbus Any ideas ? :(
– Adrian O'neil Stephen
Aug 4 '16 at 6:49
Did you try what @user72216 said?
– edwinksl
Sep 13 '16 at 21:18