Description of problem: Cannot start rtlsdr-scanner app Version-Release number of selected component (if applicable): rtlsdr-scanner-1.0.22298.18049-2.fc24.noarch How reproducible: Always. Steps to Reproduce: # rtlsdr_scan Traceback (most recent call last): File "/usr/bin/rtlsdr_scan", line 52, in <module> from cli import Cli File "/usr/lib/python2.7/site-packages/rtlsdr-scanner/cli.py", line 37, in <module> from events import Event ImportError: cannot import name Event
Hmm, strange, but I am unable to reproduce. I tried on two different machines. The events.py is installed by the rtlsdr-scanner package and the Event class is there and I can also run the scanner without problem. Maybe your rtlsdr-scanner installation is damaged, try: $ rpm -qV rtlsdr-scanner or maybe, there is an events.py from different package that loads instead (but this would be even more strange), please provide output of the: $ python -v /usr/bin/rtlsdr_scan
That was it, there's another package called events: # python -v /usr/bin/rtlsdr_scan 2>&1 | grep events import events # directory /usr/lib/python2.7/site-packages/events # /usr/lib/python2.7/site-packages/events/__init__.pyc matches /usr/lib/python2.7/site-packages/events/__init__.py import events # precompiled from /usr/lib/python2.7/site-packages/events/__init__.pyc # /usr/lib/python2.7/site-packages/events/events.pyc matches /usr/lib/python2.7/site-packages/events/events.py import events.events # precompiled from /usr/lib/python2.7/site-packages/events/events.pyc from events import Event # cleanup[1] events # cleanup[1] events.events # sudo pip uninstall events Uninstalling Events-0.2.1: [...] # rtlsdr_events <gui launches> Is there a way to allow the Events package to be installed from pip alongside rtlsdr-scanner and its internal events module?
(In reply to Robert Bost from comment #2) > That was it, there's another package called events: > > # python -v /usr/bin/rtlsdr_scan 2>&1 | grep events > import events # directory /usr/lib/python2.7/site-packages/events > # /usr/lib/python2.7/site-packages/events/__init__.pyc matches > /usr/lib/python2.7/site-packages/events/__init__.py > import events # precompiled from > /usr/lib/python2.7/site-packages/events/__init__.pyc > # /usr/lib/python2.7/site-packages/events/events.pyc matches > /usr/lib/python2.7/site-packages/events/events.py > import events.events # precompiled from > /usr/lib/python2.7/site-packages/events/events.pyc > from events import Event > # cleanup[1] events > # cleanup[1] events.events > > # sudo pip uninstall events > Uninstalling Events-0.2.1: > [...] > > # rtlsdr_events > <gui launches> > > Is there a way to allow the Events package to be installed from pip > alongside rtlsdr-scanner and its internal events module? Thanks for info. Mixing distribution RPM with 3rd party package manager (PIP) is IMHO unsupported. Events is not provided by any Fedora RPM, so there is nothing to fix: $ dnf provides '/usr/lib/python2.7/site-packages/events/*' I think the main problem is that the 'events' you use imports events.py in its __init__.py. Why it does it? But this is really not Fedora bug. The rtlsdr-scanenr package use correct import which should correctly utilize loading paths, i.e. there is nothing to fix.
(In reply to Jaroslav Škarvada from comment #3) > I think the main problem is that the 'events' you use imports events.py in > its __init__.py. Why it does it? But this is really not Fedora bug. The > rtlsdr-scanenr package use correct import which should correctly utilize > loading paths, i.e. there is nothing to fix. Incorrect, hmm, interesting that it doesn't work with the default paths, I will check it.
https://docs.python.org/3/whatsnew/2.5.html#pep-328-absolute-and-relative-imports
So the default behaviour changed in Python 2.7 to absolute imports. While there is currently no conflict at the moment with distribution packages it maybe worth to fix it, reopening.
Upstream pull request not only fixing this bug, but also trying to do proper modularization of the code: https://github.com/EarToEarOak/RTLSDR-Scanner/pull/28
rtlsdr-scanner-1.0.22497.10311-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-f5f29a57d5
rtlsdr-scanner-1.0.22497.10311-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-ce05cb672d
rtlsdr-scanner-1.0.22497.10311-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
rtlsdr-scanner-1.0.22497.10311-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.