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

Fledge build errors with RaspiOS "Debian - Bookworm" #1214

Open
jpiwek opened this issue Nov 1, 2023 · 4 comments
Open

Fledge build errors with RaspiOS "Debian - Bookworm" #1214

jpiwek opened this issue Nov 1, 2023 · 4 comments

Comments

@jpiwek
Copy link

jpiwek commented Nov 1, 2023

Hi,

I am planning to create a Fledge IIoT Raspi CM4 Gateway Demo system for Offgrid Power Supplies.
My image is RaspiOS Lite (headless) Debian - Bookworm 64-bit.

I removed python-dev packge from requirements.sh script.
However I get build errors when executing requirements.sh and make:

`
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 8 nicht aktualisiert.
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
`

`
pi@rpibw-dfe0:~/fledge $ make
Building Fledge version 2.1.0, DB schema 59
scripts/certificates "fledge" "365"
Creating a self signed SSL certificate ...
Certificates created successfully, and placed in data/etc/certs
scripts/auth_certificates ca "ca" "365"
Creating ca SSL certificate ...
ca certificate created successfully, and placed in data/etc/certs
scripts/auth_certificates user user "365"
Creating user SSL certificate ...
user certificate created successfully for user, and placed in data/etc/certs
scripts/auth_certificates user admin "365"
Creating user SSL certificate ...
user certificate created successfully for admin, and placed in data/etc/certs
cd cmake_build ; cmake /home/pi/fledge/
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

System is not RHEL/CentOS 7
CMake Deprecation Warning at C/common/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Error at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Python3 (missing: Python3_NumPy_INCLUDE_DIRS NumPy) (found
version "3.11.2")
Call Stack (most recent call first):
/usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.25/Modules/FindPython/Support.cmake:3240 (find_package_handle_standard_args)
/usr/share/cmake-3.25/Modules/FindPython3.cmake:490 (include)
C/common/CMakeLists.txt:42 (find_package)

CMake Warning (dev) in /usr/share/cmake-3.25/Modules/FindPython/Support.cmake:
Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH
and POP. Run "cmake --help-policy CMP0011" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.

The included script

/usr/share/cmake-3.25/Modules/FindPython/Support.cmake

affects policy settings. CMake is implying the NO_POLICY_SCOPE option for
compatibility, so the effects are applied to the including context.
Call Stack (most recent call first):
/usr/share/cmake-3.25/Modules/FindPython3.cmake:490 (include)
C/common/CMakeLists.txt:42 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "/home/pi/fledge/cmake_build/CMakeFiles/CMakeOutput.log".
make: *** [Makefile:262: /home/pi/fledge//cmake_build/Makefile] Fehler 1
`

@MarkRiddoch
Copy link
Contributor

Thank you for raising this. We intend to add support for Bookworm in the near future

@jpiwek
Copy link
Author

jpiwek commented Nov 18, 2023

@MarkRiddoch: Meanwhile I got at least Fledge + Fledge GUI running on RaspiOS Bookworm.
How can I get in contact with you? Would like to cover few things about a new industrial Reference Design under NDA.

@MarkRiddoch
Copy link
Contributor

@MarkRiddoch: Meanwhile I got at least Fledge + Fledge GUI running on RaspiOS Bookworm. How can I get in contact with you? Would like to cover few things about a new industrial Reference Design under NDA.

Sorry, I missed this before. Please feel free to email me [email protected].

@thingstanje
Copy link

Hi, I dont know if i can share my experience building & running fledge on debian bookworm using default OS setup.

  1. Add --break-system-packages as below fin requirements.sh
    image

  2. Change the version of aiohttp, yarl, pyjq and ccharset in python/requirements.txt as picture below

image

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

3 participants