Closed vezza closed 9 years ago
Reproduced using cc0fa1801b077c139939bc963cff17fd65ebfca1 on Debian Jessie
$ ./modes_rx
Traceback (most recent call last):
File "./modes_rx", line 27, in <module>
import air_modes
ImportError: No module named air_modes
That line 27 says import air_modes
. It occurs both when launching ./modes_rx from the apps directory or ./apps/modes_rx from the main directory.
Two users here have encountered this error message, one of them on an Apple Macintosh.
Please find where the installer put the Python module air_modes -- probably something like /usr/local/lib/python2.7/dist-packages/air_modes/init.py. Then add that path (in this case /usr/local/lib/python2.7/dist-packages) to env variable PYTHONPATH:
$ export PYTHONPATH=/usr/local/lib/python2.7/dist-packages
--n
On Wed, Jul 9, 2014 at 3:16 PM, Jean-Marc Liotier notifications@github.com wrote:
Two users here http://gonzogonzogonzo.blogspot.fr/2013/11/installing-gr-air-modes-on-mac.html have encountered this error message, one of them on an Apple Macintosh.
— Reply to this email directly or view it on GitHub https://github.com/bistromath/gr-air-modes/issues/59#issuecomment-48542277 .
I did not follow the build instructions properly... After doing it right I can now run apps/modes_rw - sorry for wasting your time !
You may be interesting in noting that, in order to have a successful install on a recently installed Debian Jessie workstation, I had to perform the following package installations:
apt-get install pyqt4-dev-tools liblog4cpp5-dev swig pip install pyZMQ
None of these (or the name of the software contained in those packages) were part of the requirements in the README file.
Thanks for your message... It helped me realize my error !
I had this issue as well. The original build output included a warning that MACOSX_RPATH was not set for the air_modes target with the result that the air_modes package wasn't being installed anywhere on my system:
CMake Warning (dev):
Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake
--help-policy CMP0042" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
MACOSX_RPATH is not specified for the following targets:
air_modes
This warning is for project developers. Use -Wno-dev to suppress it.
Adding the following block to CMakeLists.txt solved the problem:
if(APPLE)
set(CMAKE_MACOSX_RPATH OFF)
endif()
when I try to start mode_rx I get this error:
Traceback (most recent call last): File "/usr/local/bin/modes_gui", line 30, in
import air_modes
ImportError: No module named air_modes