Installation freqshow (rtlsdr) does not work (3.5" TFT)

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
ernsts
 
Posts: 1
Joined: Thu Jan 17, 2013 2:29 pm

Installation freqshow (rtlsdr) does not work (3.5" TFT)

Post by ernsts »

Hallo, i want to install the Software FreqShow on my raspberry pi,B+, the Display is working fine

But there are some Errors:

After starting freqshow: ImportError: No module named rtlsdr

And some lines before: (Installed /home/pi/rtl-sdr/build/build/pyrtlsdr/pypandoc-1.1.3-py2.7.egg) RuntimeError: Missing format!

Had someone any solution?


Here the copy from putty from the Installation process:

login as: pi
[email protected]'s password:
Linux raspberrypi 3.18.13+ #784 PREEMPT Sat May 9 15:49:42 BST 2015 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Jun 2 18:37:43 2015 from sabmyracoci3ab9
pi@raspberrypi ~ $ sudo apt-get update
Hit http://raspberrypi.collabora.com wheezy Release.gpg
Get:1 http://archive.raspberrypi.org wheezy Release.gpg [473 B]
Get:2 http://mirrordirector.raspbian.org wheezy Release.gpg [473 B]
Hit http://raspberrypi.collabora.com wheezy Release
Get:3 http://mirrordirector.raspbian.org wheezy Release [14.4 kB]
Get:4 http://archive.raspberrypi.org wheezy Release [17.6 kB]
Hit http://raspberrypi.collabora.com wheezy/rpi armhf Packages
Get:5 http://mirrordirector.raspbian.org wheezy/main armhf Packages [6,933 kB]
Get:6 http://archive.raspberrypi.org wheezy/main armhf Packages [145 kB]
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en_GB
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en
Ign http://archive.raspberrypi.org wheezy/main Translation-en_GB
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Get:7 http://mirrordirector.raspbian.org wheezy/contrib armhf Packages [23.6 kB]
Get:8 http://mirrordirector.raspbian.org wheezy/non-free armhf Packages [49.3 kB ]
Get:9 http://mirrordirector.raspbian.org wheezy/rpi armhf Packages [592 B]
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en
Fetched 7,184 kB in 1min 28s (80.9 kB/s)
Reading package lists... Done
pi@raspberrypi ~ $ sudo apt-get install cmake build-essential python-pip libusb- 1.0-0-dev python-numpy git
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
python-numpy is already the newest version.
python-numpy set to manually installed.
python-pip is already the newest version.
Suggested packages:
git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn
git-email git-gui gitk gitweb
The following NEW packages will be installed:
cmake cmake-data emacsen-common libusb-1.0-0-dev libxmlrpc-core-c3
The following packages will be upgraded:
git
1 upgraded, 5 newly installed, 0 to remove and 115 not upgraded.
Need to get 11.8 MB of archives.
After this operation, 14.3 MB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libxmlrpc-core-c3 armhf 1.16.33-3.2 [146 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ wheezy/main emacsen-common al l 2.0.5 [20.9 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ wheezy/main cmake-data all 2. 8.9-1 [1,359 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian/ wheezy/main cmake armhf 2.8.9 -1 [4,240 kB]
Get:5 http://mirrordirector.raspbian.org/raspbian/ wheezy/main git armhf 1:1.7.1 0.4-1+wheezy3+rpi1 [5,849 kB]
Get:6 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libusb-1.0-0-dev armhf 2:1.0.11-1 [184 kB]
Fetched 11.8 MB in 18s (645 kB/s)
Selecting previously unselected package libxmlrpc-core-c3.
(Reading database ... 83208 files and directories currently installed.)
Unpacking libxmlrpc-core-c3 (from .../libxmlrpc-core-c3_1.16.33-3.2_armhf.deb) . ..
Selecting previously unselected package emacsen-common.
Unpacking emacsen-common (from .../emacsen-common_2.0.5_all.deb) ...
Selecting previously unselected package cmake-data.
Unpacking cmake-data (from .../cmake-data_2.8.9-1_all.deb) ...
Selecting previously unselected package cmake.
Unpacking cmake (from .../cmake_2.8.9-1_armhf.deb) ...
Preparing to replace git 1:1.7.10.4-1+wheezy1+rpi2 (using .../git_1%3a1.7.10.4-1 +wheezy3+rpi1_armhf.deb) ...
Unpacking replacement git ...
Selecting previously unselected package libusb-1.0-0-dev.
Unpacking libusb-1.0-0-dev (from .../libusb-1.0-0-dev_2%3a1.0.11-1_armhf.deb) .. .
Processing triggers for man-db ...
Setting up libxmlrpc-core-c3 (1.16.33-3.2) ...
Setting up emacsen-common (2.0.5) ...
Setting up cmake-data (2.8.9-1) ...
Install cmake-data for emacs
Setting up cmake (2.8.9-1) ...
Setting up git (1:1.7.10.4-1+wheezy3+rpi1) ...
Setting up libusb-1.0-0-dev (2:1.0.11-1) ...
pi@raspberrypi ~ $ cd ~
pi@raspberrypi ~ $ git clone git://git.osmocom.org/rtl-sdr.git
Cloning into 'rtl-sdr'...
remote: Counting objects: 1617, done.
remote: Compressing objects: 100% (711/711), done.
remote: Total 1617 (delta 1182), reused 1213 (delta 898)
Receiving objects: 100% (1617/1617), 345.89 KiB | 411 KiB/s, done.
Resolving deltas: 100% (1182/1182), done.
pi@raspberrypi ~ $ cd rtl-sdr
pi@raspberrypi ~/rtl-sdr $ mkdir build
pi@raspberrypi ~/rtl-sdr $ cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRI VER=ON
CMake Error: The source directory "/home/pi" does not appear to contain CMakeLis ts.txt.
Specify --help for usage, or press the help button on the CMake GUI.
pi@raspberrypi ~/rtl-sdr $ cd build
pi@raspberrypi ~/rtl-sdr/build $
pi@raspberrypi ~/rtl-sdr/build $ 6.cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KE RNEL_DRIVER=ON
-bash: 6.cmake: command not found
pi@raspberrypi ~/rtl-sdr/build $
pi@raspberrypi ~/rtl-sdr/build $ 6.cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KE RNEL_DRIVER=ON
-bash: 6.cmake: command not found
pi@raspberrypi ~/rtl-sdr/build $ cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERN EL_DRIVER=ON
-- The C compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Build type not specified: defaulting to release.
-- Extracting version information from git describe...
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- checking for module 'libusb-1.0'
-- found libusb-1.0, version 1.0.11
-- Looking for libusb_handle_events_timeout_completed
-- Looking for libusb_handle_events_timeout_completed - found
-- Looking for libusb_error_name
-- Looking for libusb_error_name - found
-- Found libusb-1.0: /usr/include/libusb-1.0, /usr/lib/arm-linux-gnueabihf/libus b-1.0.so
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Building with kernel driver detaching enabled
-- Building for version: v0.5.3-12-ge3c0 / 0.5git
-- Using install prefix: /usr/local
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/rtl-sdr/build
pi@raspberrypi ~/rtl-sdr/build $ make
Scanning dependencies of target convenience_static
[ 5%] Building C object src/CMakeFiles/convenience_static.dir/convenience/conve nience.c.o
Linking C static library libconvenience_static.a
[ 5%] Built target convenience_static
Scanning dependencies of target rtlsdr_shared
[ 10%] Building C object src/CMakeFiles/rtlsdr_shared.dir/librtlsdr.c.o
[ 15%] Building C object src/CMakeFiles/rtlsdr_shared.dir/tuner_e4k.c.o
[ 20%] Building C object src/CMakeFiles/rtlsdr_shared.dir/tuner_fc0012.c.o
[ 25%] Building C object src/CMakeFiles/rtlsdr_shared.dir/tuner_fc0013.c.o
[ 30%] Building C object src/CMakeFiles/rtlsdr_shared.dir/tuner_fc2580.c.o
[ 35%] Building C object src/CMakeFiles/rtlsdr_shared.dir/tuner_r82xx.c.o
Linking C shared library librtlsdr.so
[ 35%] Built target rtlsdr_shared
Scanning dependencies of target rtl_adsb
[ 40%] Building C object src/CMakeFiles/rtl_adsb.dir/rtl_adsb.c.o
Linking C executable rtl_adsb
[ 40%] Built target rtl_adsb
Scanning dependencies of target rtl_eeprom
[ 45%] Building C object src/CMakeFiles/rtl_eeprom.dir/rtl_eeprom.c.o
Linking C executable rtl_eeprom
[ 45%] Built target rtl_eeprom
Scanning dependencies of target rtl_fm
[ 50%] Building C object src/CMakeFiles/rtl_fm.dir/rtl_fm.c.o
Linking C executable rtl_fm
[ 50%] Built target rtl_fm
Scanning dependencies of target rtl_power
[ 55%] Building C object src/CMakeFiles/rtl_power.dir/rtl_power.c.o
Linking C executable rtl_power
[ 55%] Built target rtl_power
Scanning dependencies of target rtl_sdr
[ 60%] Building C object src/CMakeFiles/rtl_sdr.dir/rtl_sdr.c.o
Linking C executable rtl_sdr
[ 60%] Built target rtl_sdr
Scanning dependencies of target rtl_tcp
[ 65%] Building C object src/CMakeFiles/rtl_tcp.dir/rtl_tcp.c.o
Linking C executable rtl_tcp
[ 65%] Built target rtl_tcp
Scanning dependencies of target rtl_test
[ 70%] Building C object src/CMakeFiles/rtl_test.dir/rtl_test.c.o
Linking C executable rtl_test
[ 70%] Built target rtl_test
Scanning dependencies of target rtlsdr_static
[ 75%] Building C object src/CMakeFiles/rtlsdr_static.dir/librtlsdr.c.o
[ 80%] Building C object src/CMakeFiles/rtlsdr_static.dir/tuner_e4k.c.o
[ 85%] Building C object src/CMakeFiles/rtlsdr_static.dir/tuner_fc0012.c.o
[ 90%] Building C object src/CMakeFiles/rtlsdr_static.dir/tuner_fc0013.c.o
[ 95%] Building C object src/CMakeFiles/rtlsdr_static.dir/tuner_fc2580.c.o
[100%] Building C object src/CMakeFiles/rtlsdr_static.dir/tuner_r82xx.c.o
Linking C static library librtlsdr.a
[100%] Built target rtlsdr_static
pi@raspberrypi ~/rtl-sdr/build $ sudo make install
[ 5%] Built target convenience_static
[ 35%] Built target rtlsdr_shared
[ 40%] Built target rtl_adsb
[ 45%] Built target rtl_eeprom
[ 50%] Built target rtl_fm
[ 55%] Built target rtl_power
[ 60%] Built target rtl_sdr
[ 65%] Built target rtl_tcp
[ 70%] Built target rtl_test
[100%] Built target rtlsdr_static
Install the project...
-- Install configuration: "Release"
-- Installing: /etc/udev/rules.d/rtl-sdr.rules
-- Installing: /usr/local/lib/pkgconfig/librtlsdr.pc
-- Installing: /usr/local/include/rtl-sdr.h
-- Installing: /usr/local/include/rtl-sdr_export.h
-- Installing: /usr/local/lib/librtlsdr.so.0.5git
-- Installing: /usr/local/lib/librtlsdr.so.0
-- Installing: /usr/local/lib/librtlsdr.so
-- Installing: /usr/local/lib/librtlsdr.a
-- Installing: /usr/local/bin/rtl_sdr
-- Removed runtime path from "/usr/local/bin/rtl_sdr"
-- Installing: /usr/local/bin/rtl_tcp
-- Removed runtime path from "/usr/local/bin/rtl_tcp"
-- Installing: /usr/local/bin/rtl_test
-- Removed runtime path from "/usr/local/bin/rtl_test"
-- Installing: /usr/local/bin/rtl_fm
-- Removed runtime path from "/usr/local/bin/rtl_fm"
-- Installing: /usr/local/bin/rtl_eeprom
-- Removed runtime path from "/usr/local/bin/rtl_eeprom"
-- Installing: /usr/local/bin/rtl_adsb
-- Removed runtime path from "/usr/local/bin/rtl_adsb"
-- Installing: /usr/local/bin/rtl_power
-- Removed runtime path from "/usr/local/bin/rtl_power"
pi@raspberrypi ~/rtl-sdr/build $ sudo ldconfig
pi@raspberrypi ~/rtl-sdr/build $ sudo pip install pyrtlsdr
Downloading/unpacking pyrtlsdr
Downloading pyrtlsdr-0.2.3.tar.gz
Running setup.py egg_info for package pyrtlsdr

Installed /home/pi/rtl-sdr/build/build/pyrtlsdr/setuptools_markdown-0.2-py2. 7.egg
Searching for pypandoc
Reading http://pypi.python.org/simple/pypandoc/
Best match: pypandoc 1.1.3
Downloading https://pypi.python.org/packages/41/68/ ... 063ac5c702 32bf72d7675fa7539a86fa7fa08257bda05/pypandoc-1.1.3.zip#md5=771f376bf9c936a90159c d94235998c2
Processing pypandoc-1.1.3.zip
Running pypandoc-1.1.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-FI yxqb/pypandoc-1.1.3/egg-dist-tmp-hyyeGq
Maybe try:

sudo apt-get install pandoc
See http://johnmacfarlane.net/pandoc/installing.html
for installation options
---------------------------------------------------------------

zip_safe flag not set; analyzing archive contents...
pypandoc.__init__: module references __file__


!!! pandoc not found, long_description is bad, don't upload this to PyPI !!!


Patching wheel building...

Installed /home/pi/rtl-sdr/build/build/pyrtlsdr/pypandoc-1.1.3-py2.7.egg
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/pi/rtl-sdr/build/build/pyrtlsdr/setup.py", line 55, in <module >
packages=['rtlsdr'])
File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 225, in _ _init__
_Distribution.__init__(self,attrs)
File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 258, in f inalize_options
ep.load()(self, ep.name, value)
File "/home/pi/rtl-sdr/build/build/pyrtlsdr/setuptools_markdown-0.2-py2.7. egg/setuptools_markdown.py", line 22, in long_description_markdown_filename
output = pypandoc.convert(markdown_filename, 'rst')
File "/home/pi/rtl-sdr/build/build/pyrtlsdr/pypandoc-1.1.3-py2.7.egg/pypan doc/__init__.py", line 50, in convert
outputfile=outputfile, filters=filters)
File "/home/pi/rtl-sdr/build/build/pyrtlsdr/pypandoc-1.1.3-py2.7.egg/pypan doc/__init__.py", line 68, in _convert
raise RuntimeError('Missing format!')
RuntimeError: Missing format!
Complete output from command python setup.py egg_info:


Installed /home/pi/rtl-sdr/build/build/pyrtlsdr/setuptools_markdown-0.2-py2.7.eg g

Searching for pypandoc

Reading http://pypi.python.org/simple/pypandoc/

Best match: pypandoc 1.1.3

Downloading https://pypi.python.org/packages/41/68/ ... c5c70232bf 72d7675fa7539a86fa7fa08257bda05/pypandoc-1.1.3.zip#md5=771f376bf9c936a90159cd942 35998c2

Processing pypandoc-1.1.3.zip

Running pypandoc-1.1.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-FIyxqb /pypandoc-1.1.3/egg-dist-tmp-hyyeGq

Maybe try:



sudo apt-get install pandoc

See http://johnmacfarlane.net/pandoc/installing.html

for installation options

---------------------------------------------------------------



zip_safe flag not set; analyzing archive contents...

pypandoc.__init__: module references __file__





!!! pandoc not found, long_description is bad, don't upload this to PyPI !!!





Patching wheel building...



Installed /home/pi/rtl-sdr/build/build/pyrtlsdr/pypandoc-1.1.3-py2.7.egg

Traceback (most recent call last):

File "<string>", line 14, in <module>

File "/home/pi/rtl-sdr/build/build/pyrtlsdr/setup.py", line 55, in <module>

packages=['rtlsdr'])

File "/usr/lib/python2.7/distutils/core.py", line 112, in setup

_setup_distribution = dist = klass(attrs)

File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 225, in __ini t__

_Distribution.__init__(self,attrs)

File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__

self.finalize_options()

File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 258, in final ize_options

ep.load()(self, ep.name, value)

File "/home/pi/rtl-sdr/build/build/pyrtlsdr/setuptools_markdown-0.2-py2.7.egg/ setuptools_markdown.py", line 22, in long_description_markdown_filename

output = pypandoc.convert(markdown_filename, 'rst')

File "/home/pi/rtl-sdr/build/build/pyrtlsdr/pypandoc-1.1.3-py2.7.egg/pypandoc/ __init__.py", line 50, in convert

outputfile=outputfile, filters=filters)

File "/home/pi/rtl-sdr/build/build/pyrtlsdr/pypandoc-1.1.3-py2.7.egg/pypandoc/ __init__.py", line 68, in _convert

raise RuntimeError('Missing format!')

RuntimeError: Missing format!

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/pi/rtl-sdr/bu ild/build/pyrtlsdr
Storing complete log in /root/.pip/pip.log
pi@raspberrypi ~/rtl-sdr/build $ cd ~
pi@raspberrypi ~ $ git clone https://github.com/adafruit/FreqShow.git
Cloning into 'FreqShow'...
remote: Counting objects: 28, done.
remote: Total 28 (delta 0), reused 0 (delta 0), pack-reused 28
Unpacking objects: 100% (28/28), done.
pi@raspberrypi ~ $ cd FreqShow
pi@raspberrypi ~/FreqShow $ sudo python freqshow.py
Traceback (most recent call last):
File "freqshow.py", line 30, in <module>
import controller
File "/home/pi/FreqShow/controller.py", line 27, in <module>
from views import *
File "/home/pi/FreqShow/views.py", line 32, in <module>
import freqshow
File "/home/pi/FreqShow/freqshow.py", line 31, in <module>
import model
File "/home/pi/FreqShow/model.py", line 26, in <module>
from rtlsdr import *
ImportError: No module named rtlsdr
pi@raspberrypi ~/FreqShow $ ^C


Greetings

Ernst

User avatar
tdicola
 
Posts: 1074
Joined: Thu Oct 17, 2013 9:11 pm

Re: Installation freqshow (rtlsdr) does not work (3.5" TFT)

Post by tdicola »

Thank for checking out the freq show project! Huh that's an odd error, it looks like maybe something changed in pyrtlsdr and it's having trouble installing. Try what the error suggests by installing pandoc with the command:

Code: Select all

sudo apt-get update
sudo apt-get install pandoc
Then try installing pyrtlsdr again (you don't need to do the compile and library install luckily, it looked like that worked great from your output):

Code: Select all

sudo pip install pyrtlsdr
Let's see if that gets it working for you, thanks!

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”