myriadrf / pyLMS7002Soapy

Python bindings for LMS7002M with SoapySDR backend
Apache License 2.0
66 stars 21 forks source link

name 'pyLMS7002Soapy' is not defined #4

Closed miloshev closed 5 years ago

miloshev commented 5 years ago

When i try to run python3 measureVNA_900 i get: :~/pyLMS7002Soapy/examples$ python3 measureVNA_900M.py test Searching for LimeSDR... Traceback (most recent call last): File "measureVNA_900M.py", line 143, in limeSDR = pyLMS7002Soapy(0) NameError: name 'pyLMS7002Soapy' is not defined

My Limesdr mini works with Soapy and GNU radio without issues and pyLMS7002Soapy library imports without errors. Any ideas?

9600 commented 5 years ago

The module cannot be found, probably because it's written for Python 2 and so you would need to use this.

miloshev commented 5 years ago

I have built it in python3 Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] on linux Type "help", "copyright", "credits" or "license" for more information.

from pyLMS7002Soapy import * sdr = pyLMS7002Soapy(0) Traceback (most recent call last): File "", line 1, in NameError: name 'pyLMS7002Soapy' is not defined

9600 commented 5 years ago

OK, but we don't support Python 3.

miloshev commented 5 years ago

Ah, Ok. But in python 2.7 i get message that SoapySDR module is missing. Can you please tell me how to install it, as i have ran through 10 different install instructions with no success.

9600 commented 5 years ago

If you are running Ubuntu (and possibly Debian etc) you can just:

$ sudo apt-get install python-soapysdr

Or build from source. See the SoapySDR documentation.

https://github.com/pothosware/SoapySDR/wiki

miloshev commented 5 years ago

Thanks, I have reinstalled all packages an now it works

9600 commented 5 years ago

Good to hear!