Δημοσιεύτηκε: 21 Μαρ 2024, 22:38
Το είχα βάλει το python3-dbus αλλά και το dbus-python. Καμία πρόοδος. Έβαλα και την python 3.7 που μου είπες, πάλι τίποτα.
Βρήκα λίγο σχετικό αυτό και σας ρωτάω που είστε πιο αγγλομαθείς και πιο κομπιουτεράδες, είναι πράγματι σχετικό´;
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
Από τη σελίδα που μου έδωσες https://askubuntu.com/questions/801195/ ... named-dbus
Βεβαίως όχι για το bindings.cpython-{35m,36m}-x86_64-linux-gnu.so που ενδιαφέρει τον τύπο, αλλά γι αυτό
https://github.com/posborne/dbus-python ... _compat.py
Είναι το μόνο που βρήκα με τη λέξη compat και το κατέβασα. Αλλά δεν καταλαβαίνω τίποτα. Τι είναι αυτό ρε παιδιά; Πέντε γραμμές κώδικα... και τι;
# Python 2 / Python 3 compatibility helpers.
import sys
# In Python 2.6, sys.version_info is not a namedtuple, so we can't use
# sys.version_info.major.
is_py3 = (sys.version_info[0] == 3)
is_py2 = not is_py3
Μόνο άμα υποσχεθείς ότι δεν θα με κράξετε (γιατί είμαι ευαίσθητος και πληγώνομαι)/ Πάω να το βάλω.
Βρήκα λίγο σχετικό αυτό και σας ρωτάω που είστε πιο αγγλομαθείς και πιο κομπιουτεράδες, είναι πράγματι σχετικό´;
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
Από τη σελίδα που μου έδωσες https://askubuntu.com/questions/801195/ ... named-dbus
Βεβαίως όχι για το bindings.cpython-{35m,36m}-x86_64-linux-gnu.so που ενδιαφέρει τον τύπο, αλλά γι αυτό
https://github.com/posborne/dbus-python ... _compat.py
Είναι το μόνο που βρήκα με τη λέξη compat και το κατέβασα. Αλλά δεν καταλαβαίνω τίποτα. Τι είναι αυτό ρε παιδιά; Πέντε γραμμές κώδικα... και τι;
# Python 2 / Python 3 compatibility helpers.
import sys
# In Python 2.6, sys.version_info is not a namedtuple, so we can't use
# sys.version_info.major.
is_py3 = (sys.version_info[0] == 3)
is_py2 = not is_py3
Maras έγραψε:
Αναμένουμε τον κώδικα για την φωνητική εντολή!
Μόνο άμα υποσχεθείς ότι δεν θα με κράξετε (γιατί είμαι ευαίσθητος και πληγώνομαι)/ Πάω να το βάλω.