Smudged
Posts: 3
Joined: Wed Nov 16, 2016 10:19 am

ImportError: No module named clienthelpers

Sat Aug 18, 2018 4:24 pm

Hi

A few weeks ago I upgraded my Pis to Stretch. All went well and they have been running successfully since ... except I tried to run xgps on one system which before the upgrade worked fine. Now I get the following error message:

Traceback (most recent call last):
File "/usr/bin/xgps", line 30, in <module>
import gps.clienthelpers
ImportError: No module named clienthelpers

Lines 29 & 30 of /usr/bin/xgps read:

import gps
import gps.clienthelpers

cgps -s works as per the pre-upgrade scenario.

I note that dpkg -l | grep gps

shows python-gps 3.16-4 is installed and yet xgps is expecting to run under python2 (#!/usr/bin/env python2)

Does that mean xgps is no longer available to me or can I install an older python-gps2?

TIA

Smudged
Posts: 3
Joined: Wed Nov 16, 2016 10:19 am

Re: ImportError: No module named clienthelpers

Wed Aug 22, 2018 9:23 am

OK I fixed this problem by building gpsd & gpsd-clients from 3.16 sources. 3.17 has a run-time problem:

TypeError: Couldn't find foreign struct converter for 'cairo.Context'

That's now the 2nd time that gpsd and/or clients has not worked from the repo package. Why bother to distribute a duff package?

Mental note: ALWAYS build gpsd & clients from sources. Mutter, mutter, mutter...

Smudged
Posts: 3
Joined: Wed Nov 16, 2016 10:19 am

Re: ImportError: No module named clienthelpers

Wed Aug 22, 2018 10:18 am

Hi

I realise that my rant doesn't belong in the Python section.

I'd be happy if a mod moved the whole thread to a more appropriate place.

Thanks

Return to “Python”

Who is online

Users browsing this forum: No registered users and 14 guests