[X2Go-User] pyhoca-cli seems very broken on xubuntu 20.10
Chris Green
cl at isbd.net
Mon Jan 18 13:45:20 CET 2021
On Mon, Jan 18, 2021 at 11:00:59AM +0100, Ulrich Sibiller wrote:
> It looks like a broken python installation. Can you try to reinstall python3?
>
Well my python installation works for loads of other python 3
programs, I have a pretty standard system,
It would be easier to try installing on another system, I'll try that.
I *suspect* that something that has changed in [x]ubuntu 20.10 is
what's causing the issue.
> Uli
>
> On Mon, Jan 18, 2021 at 10:47 AM Chris Green <cl at isbd.net> wrote:
> >
> > Having fixed the missing python3-invoke module pyhoca-cli now crashes
> > in all sorts of other ways on my xubuntu 20.10 system.
> >
> > These sessions run fine when called from x2goclient, I just want to script them
> > in order to run a couple of things before the x2go session.
> >
> > This is calling an xfce session, i.e. a full desktop:-
> > chris$ pyhoca-cli esprimo
> > Traceback (most recent call last):
> > File "/usr/bin/pyhoca-cli", line 439, in <module>
> > parser, args = parseargs()
> > File "/usr/bin/pyhoca-cli", line 397, in parseargs
> > ssh_host = ssh_config.lookup(a.server)
> > File "/usr/lib/python3/dist-packages/paramiko/config.py", line 223, in lookup
> > options = self._lookup(hostname=hostname)
> > File "/usr/lib/python3/dist-packages/paramiko/config.py", line 250, in _lookup
> > or self._does_match(
> > File "/usr/lib/python3/dist-packages/paramiko/config.py", line 389, in _does_match
> > passed = invoke.run(exec_cmd, hide="stdout", warn=True).ok
> > File "/usr/lib/python3/dist-packages/invoke/__init__.py", line 48, in run
> > return Context().run(command, **kwargs)
> > File "/usr/lib/python3/dist-packages/invoke/context.py", line 94, in run
> > return self._run(runner, command, **kwargs)
> > File "/usr/lib/python3/dist-packages/invoke/context.py", line 101, in _run
> > return runner.run(command, **kwargs)
> > File "/usr/lib/python3/dist-packages/invoke/runners.py", line 363, in run
> > return self._run_body(command, **kwargs)
> > File "/usr/lib/python3/dist-packages/invoke/runners.py", line 411, in _run_body
> > self.start(command, self.opts["shell"], self.env)
> > File "/usr/lib/python3/dist-packages/invoke/runners.py", line 1271, in start
> > self.process = Popen(
> > File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
> > self._execute_child(args, executable, preexec_fn, close_fds,
> > File "/usr/lib/python3.8/subprocess.py", line 1637, in _execute_child
> > self.pid = _posixsubprocess.fork_exec(
> > AttributeError: 'NoneType' object has no attribute 'fork_exec'
> >
> >
> > This is runnning a single application:-
> > chris$ pyhoca-cli Digikam
> > pyhoca-cli[19161] NOTICE: preparing requested X2Go session
> > pyhoca-cli[19161] (PyHocaCLI) NOTICE: preparing requested X2Go session
> > pyhoca-cli[19161] (x2gosessregistry-pylib) NOTICE: registering X2Go session
> Pyhoca-Client_Session...
> > pyhoca-cli[19161] (x2goclient-pylib) NOTICE: initializing X2Go session...
> > pyhoca-cli[19161] (x2gocontrolsession-pylib) NOTICE: connecting to [Digikam]:22
> > Traceback (most recent call last):
> > File "/usr/bin/pyhoca-cli", line 454, in <module>
> > thisPyHocaCLI.authenticate()
> > File "/usr/lib/python3/dist-packages/pyhoca/cli/frontend.py", line 532, in authenticate
> > self._X2GoClient__connect_session(self.x2go_session_hash, username=_username,
> password=password, passphrase=passphrase, force_password_auth=force_password_auth)
>
> > File "/usr/lib/python3/dist-packages/x2go/client.py", line 1392, in connect_session
> > _success = self.session_registry(session_uuid).connect(username=username,
> > File "/usr/lib/python3/dist-packages/x2go/session.py", line 1387, in connect
> > self.connected = self.control_session.connect(self.server,
> > File "/usr/lib/python3/dist-packages/x2go/backends/control/plain.py",
> line 1031, in connect
> > paramiko.SSHClient.connect(self, _hostname, port=port, username=username,
> pkey=None, password=passphrase,
> > File "/usr/lib/python3/dist-packages/paramiko/client.py", line 340, in connect
> > to_try = list(self._families_and_addresses(hostname, port))
> > File "/usr/lib/python3/dist-packages/paramiko/client.py", line 203, in
> _families_and_addresses
> > addrinfos = socket.getaddrinfo(
> > File "/usr/lib/python3/dist-packages/gevent/_socketcommon.py", line 212, in getaddrinfo
> > addrlist = get_hub().resolver.getaddrinfo(host, port, family, type, proto, flags)
> > File "/usr/lib/python3/dist-packages/gevent/resolver/thread.py", line 65, in getaddrinfo
> > return self.pool.apply(_socket.getaddrinfo, args, kwargs)
> > File "/usr/lib/python3/dist-packages/gevent/pool.py", line 159, in apply
> > return self.spawn(func, *args, **kwds).get()
> > File "src/gevent/event.py", line 268, in gevent._event.AsyncResult.get
> > File "src/gevent/event.py", line 296, in gevent._event.AsyncResult.get
> > File "src/gevent/event.py", line 286, in gevent._event.AsyncResult.get
> > File "src/gevent/event.py", line 266, in gevent._event.AsyncResult._raise_exception
> > File "src/gevent/event.py", line 211, in gevent._event.AsyncResult.exc_info.__get__
> > File "/usr/lib/python3/dist-packages/gevent/_tblib.py", line 371, in g
> > return f(a)
> > File "/usr/lib/python3/dist-packages/gevent/_tblib.py", line 432, in load_traceback
> > return loads(s)
> > File "/usr/lib/python3/dist-packages/gevent/_tblib.py", line 337, in unpickle_traceback
> > return ret.as_traceback()
> > File "/usr/lib/python3/dist-packages/gevent/_tblib.py", line 202, in as_traceback
> > code = CodeType(
> > TypeError: an integer is required (got type bytes)
> >
> >
> > --
> > Chris Green
> > _______________________________________________
> > x2go-user mailing list
> > x2go-user at lists.x2go.org
> > https://lists.x2go.org/listinfo/x2go-user
> _______________________________________________
> x2go-user mailing list
> x2go-user at lists.x2go.org
> https://lists.x2go.org/listinfo/x2go-user
--
Chris Green
More information about the x2go-user
mailing list