Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install module #53

Open
phillinux94 opened this issue Nov 12, 2024 · 3 comments
Open

Install module #53

phillinux94 opened this issue Nov 12, 2024 · 3 comments
Assignees

Comments

@phillinux94
Copy link

when sudo make install :

CMake Error at python/sdrplay3/cmake_install.cmake:50 (file):
file INSTALL cannot find
"/home/philippe/Téléchargements/gr-sdrplay3/build/python/sdrplay3/init.pyc":
No such file or directory.
Call Stack (most recent call first):
cmake_install.cmake:55 (include)

@fventuri
Copy link
Owner

@phillinux94 - I just ran a new build (with the usual cmake, make) followed by sudo make install here on my PC (running Linux Fedora), and it worked without errors.

I also took a quick look at the cmake generated file build/python/sdrplay3/cmake_install.cmake, and I don't see any reference to init.pyc.

If you don't mind, can you attach here your build/python/sdrplay3/cmake_install.cmake so I can compare it with mine to try to figure out the problem?

Franco

@fventuri fventuri self-assigned this Nov 13, 2024
@phillinux94
Copy link
Author

Hello
My configuration : Ubuntu 24.04 LTS - Python 3.12.3
cmake_install.cmake.zip

@fventuri
Copy link
Owner

Thanks for your cmake_install.cmake file.
I just compared it with mine, and I see that in lines 49-54 you have:

if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT)
  file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/python3.12/dist-packages/gnuradio/sdrplay3" TYPE FILE FILES
    "/home/philippe/Téléchargements/gr-sdrplay3/build/python/sdrplay3/__init__.pyc"
    "/home/philippe/Téléchargements/gr-sdrplay3/build/python/sdrplay3/__init__.pyo"
    )
endif()

while for the same case I just have:

if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT)
  file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib64/python3.13/site-packages/gnuradio/sdrplay3" TYPE FILE FILES "/home/franco/SDR/gr-sdrplay3/python/sdrplay3/__init__.py")
endif()

In your case you have references to the files __init__.pyc and __init_.pyo, while in my case I just have __init__.py

Perhaps there are some left overs from a previous build?

I would suggest to delete (or move somewhere else) the build directory, and rerun a fresh build of this GNU Radio OOT module as described here: https://github.com/fventuri/gr-sdrplay3?tab=readme-ov-file#build-and-installation

Franco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants