mutability / mlat-client

Mode S multilateration client
GNU General Public License v3.0
82 stars 75 forks source link

Error "options" #4

Closed Chrisoo closed 9 years ago

Chrisoo commented 9 years ago

After update mlat-client v0.2.2 an error: ImportError: cannot import name options from mlat.client import options

mutability commented 9 years ago

How did you install the new version?

Chrisoo commented 9 years ago

"Installation - Raspbian" or "Installing - other Debian-like systems"

mutability commented 9 years ago

OK - so you built the package yourself and then installed it? What OS/version are you installing on?

Chrisoo commented 9 years ago

Yes, built the package also installed. OS: Linux raspberrypi 3.18.11-v7+ #781

mutability commented 9 years ago

OK. Can you try reinstalling using standard package then, as I don't see this problem with the standard package at all.

$ wget http://repo.mutability.co.uk/raspbian/pool/rpi/m/mlat-client/mlat-client_0.2.2_armhf.deb $ sudo dpkg -i mlat-client_0.2.2_armhf.deb

Chrisoo commented 9 years ago

This is the same. In file /var/log/mlat-client.log: Traceback (most recent call last): File "/usr/bin/mlat-client", line 28, in from mlat.client import options ImportError: cannot import name options

mutability commented 9 years ago

OK. You have something else interfering with your install then, maybe a stray install you did by hand.

Try this and attach the output?

$ python3 -c "import mlat.client; print(mlat.client.__file__)"
/usr/lib/python3/dist-packages/mlat/client/__init__.py
Chrisoo commented 9 years ago

/usr/lib/python3.2/mlat/client/init.py

mutability commented 9 years ago

That is an old installation that you must have done by hand at some point. Remove everything under /usr/lib/python3.2/mlat

Chrisoo commented 9 years ago

OK, now it works well :+1: Thanks