1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-03 20:34:17 +01:00

More Python 3 fixes needed to also install the packages

Daemon still does not start. It fails as follows:

Traceback (most recent call last):
  File "/usr/share/wicd/daemon/wicd-daemon.py", line 62, in <module>
    from wicd.logfile import ManagedStdio
  File "/usr/lib/python3/dist-packages/wicd/logfile.py", line 32, in <module>
    class LogFile(file):
NameError: name 'file' is not defined
This commit is contained in:
Axel Beckert
2019-09-11 01:16:58 +02:00
parent c4ba09c196
commit 187f85f6a0
8 changed files with 11 additions and 9 deletions

View File

@@ -24,7 +24,7 @@ when appropriate.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import gobject
from gi.repository import GObject as gobject
import time
from dbus import DBusException

View File

@@ -44,7 +44,7 @@ from subprocess import Popen
from operator import itemgetter
# DBUS
import gobject
from gi.repository import GObject as gobject
import dbus
import dbus.service
if getattr(dbus, 'version', (0, 0, 0)) < (0, 80, 0):
@@ -1950,5 +1950,7 @@ if __name__ == '__main__':
print(("Root privileges are required for the daemon to run properly." +
" Exiting."))
sys.exit(1)
gobject.threads_init()
# No more needed since PyGObject 3.11, c.f.
# https://wiki.gnome.org/PyGObject/Threading
#gobject.threads_init()
main(sys.argv)

View File

@@ -39,7 +39,7 @@ import dbus
import socket, fcntl
import shutil
import wpath
from . import wpath
from . import misc
from .misc import find_path