BirdNET-Pi icon indicating copy to clipboard operation
BirdNET-Pi copied to clipboard

The installation exited unsuccessfully.... using 64 bit Bullseye, not Bookworm

Open breimann opened this issue 2 years ago • 14 comments

Describe the bug I can't install birdnetpi successfully on my new RPi 4 1GB

To Reproduce Steps to reproduce the behavior:

  1. fresh image of "Raspberry Pi OS (Legacy, 64bit) Lite" on 64GB sd card
  2. put into Rpi 4 1gb
  3. boot up
  4. Putty into via ssh and run the install command: curl -s https://raw.githubusercontent.com/mcguirepr89/BirdNET-Pi/main/newinstaller.sh | bash
  5. I get "The installation excited unsuccessfully" at error:
  • python3 -m venv birdnet The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command.

    apt-get install python3-venv

You may need to use sudo with that command. After installing the python3-venv package, recreate your virtual environment.

Failing command: ['/home/birder/BirdNET-Pi/birdnet/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

  1. So I manually install python3-venv using "sudo apt-get install python3-venv"
  2. Then use "cd && uninstall.sh && rm -drfv BirdNET* && curl -s https://raw.githubusercontent.com/mcguirepr89/BirdNET-Pi/main/newinstaller.sh | bash" to uninstall and reinstall
  3. And then i get "The installation exited unsuccessfully" once again, but with: ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/47/6a/453160888fab7c6a432a6e25f8afe6256d0d9f2cbd25971021da6491d899/pip-23.3.1-py3-none-any.whl (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1123)')))

The installation exited unsuccessfully. 11. HELP!!!! I JUST WANT TO IDENTIFY OUR BEAUTIFUL BIRDS!!!

Expected behavior A working installation of birdnetpi!

Your build Rpi 4 1GB (brand new), using a 64GB micro sd card

Code or log snippets

login as: birder [email protected]'s password: Linux birdnetpi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch6 4

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.

Wi-Fi is currently blocked by rfkill. Use raspi-config to set the country before use.

birder@birdnetpi:~ $ cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" birder@birdnetpi:~ $ uname -a Linux birdnetpi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch6 4 GNU/Linux birder@birdnetpi:~ $ cat /etc/debian_version 12.7 birder@birdnetpi:~ $ python --version Python 3.9.2 birder@birdnetpi:~ $ curl -s https://raw.githubusercontent.com/mcguirepr89/BirdNET-Pi/main/newinstaller.sh | bash Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB] Get:2 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB] Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB] Get:4 http://archive.raspberrypi.org/debian bullseye InRelease [23.6 kB] Reading package lists... Done E: Release file for http://security.debian.org/debian-security/dists/bullseye-security/InRelease is not valid yet (invalid for another 171d 18h 17min 0s). Updates for this repository will not be applied. E: Release file for http://deb.debian.org/debian/dists/bullseye/InRelease is not valid yet (invalid for another 157d 7h 51min 19s). Updates for this repository will not be applied. E: Release file for http://deb.debian.org/debian/dists/bullseye-updates/InRelease is not valid yet (invalid for another 171d 22h 55min 32s). Updates for this repository will not be applied. E: Release file for http://archive.raspberrypi.org/debian/dists/bullseye/InRelease is not valid yet (invalid for another 170d 5h 14min 47s). Updates for this repository will not be applied. Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: git-man liberror-perl libjq1 libonig5 Suggested packages: git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn The following NEW packages will be installed: git git-man jq liberror-perl libjq1 libonig5 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Need to get 7,643 kB of archives. After this operation, 38.8 MB of additional disk space will be used. Get:1 http://deb.debian.org/debian bullseye/main arm64 liberror-perl all 0.17029-1 [31.0 kB] Get:2 http://deb.debian.org/debian bullseye/main arm64 git-man all 1:2.30.2-1+deb11u2 [1,828 kB] Get:3 http://deb.debian.org/debian bullseye/main arm64 git arm64 1:2.30.2-1+deb11u2 [5,423 kB] Get:4 http://deb.debian.org/debian bullseye/main arm64 libonig5 arm64 6.9.6-1.1 [176 kB] Get:5 http://deb.debian.org/debian bullseye/main arm64 libjq1 arm64 1.6-2.1 [121 kB] Get:6 http://deb.debian.org/debian bullseye/main arm64 jq arm64 1.6-2.1 [64.5 kB] Fetched 7,643 kB in 3s (2,298 kB/s) Selecting previously unselected package liberror-perl. (Reading database ... 37710 files and directories currently installed.) Preparing to unpack .../0-liberror-perl_0.17029-1_all.deb ... Unpacking liberror-perl (0.17029-1) ... Selecting previously unselected package git-man. Preparing to unpack .../1-git-man_1%3a2.30.2-1+deb11u2_all.deb ... Unpacking git-man (1:2.30.2-1+deb11u2) ... Selecting previously unselected package git. Preparing to unpack .../2-git_1%3a2.30.2-1+deb11u2_arm64.deb ... Unpacking git (1:2.30.2-1+deb11u2) ... Selecting previously unselected package libonig5:arm64. Preparing to unpack .../3-libonig5_6.9.6-1.1_arm64.deb ... Unpacking libonig5:arm64 (6.9.6-1.1) ... Selecting previously unselected package libjq1:arm64. Preparing to unpack .../4-libjq1_1.6-2.1_arm64.deb ... Unpacking libjq1:arm64 (1.6-2.1) ... Selecting previously unselected package jq. Preparing to unpack .../5-jq_1.6-2.1_arm64.deb ... Unpacking jq (1.6-2.1) ... Setting up liberror-perl (0.17029-1) ... Setting up git-man (1:2.30.2-1+deb11u2) ... Setting up libonig5:arm64 (6.9.6-1.1) ... Setting up libjq1:arm64 (1.6-2.1) ... Setting up git (1:2.30.2-1+deb11u2) ... Setting up jq (1.6-2.1) ... Processing triggers for man-db (2.9.4-2) ... Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u5) ... Cloning into '/home/birder/BirdNET-Pi'... remote: Enumerating objects: 132, done. remote: Counting objects: 100% (132/132), done. remote: Compressing objects: 100% (123/123), done. remote: Total 132 (delta 9), reused 61 (delta 5), pack-reused 0 Receiving objects: 100% (132/132), 146.11 MiB | 2.71 MiB/s, done. Resolving deltas: 100% (9/9), done. Updating files: 100% (121/121), done.

  • exec +++ date +%F ++ tee -i installation-2023-05-03.txt
  • set -e
  • my_dir=/home/birder/BirdNET-Pi
  • export my_dir=/home/birder/BirdNET-Pi
  • my_dir=/home/birder/BirdNET-Pi
  • cd /home/birder/BirdNET-Pi/scripts ++ uname -m
  • '[' aarch64 '!=' aarch64 ']'
  • ./install_config.sh
  • set -e
  • trap 'exit 1' SIGINT SIGHUP
  • echo 'Beginning ./install_config.sh' Beginning ./install_config.sh
  • birdnet_conf=/home/birder/BirdNET-Pi/birdnet.conf ++ curl -s4 http://ip-api.com/json
  • json='{"status":"success","country":"Australia","countryCode":"AU","region":"SA","regionName":"South Australia","city":"Adelaide","zip":"5000","lat":-34.9281,"lon":138.5999,"timezone":"Australia/Adelaide","isp":"SingTel Optus Pty Ltd","org":"Optus Internet Pty Ltd","as":"AS4804 Microplex PTY LTD","query":"122.108.42.10"}' ++ echo '{"status":"success","country":"Australia","countryCode":"AU","region":"SA","regionName":"South Australia","city":"Adelaide","zip":"5000","lat":-34.9281,"lon":138.5999,"timezone":"Australia/Adelaide","isp":"SingTel Optus Pty Ltd","org":"Optus Internet Pty Ltd","as":"AS4804 Microplex PTY LTD","query":"122.108.42.10"}' ++ jq -r .status
  • '[' success = success ']' ++ echo '{"status":"success","country":"Australia","countryCode":"AU","region":"SA","regionName":"South Australia","city":"Adelaide","zip":"5000","lat":-34.9281,"lon":138.5999,"timezone":"Australia/Adelaide","isp":"SingTel Optus Pty Ltd","org":"Optus Internet Pty Ltd","as":"AS4804 Microplex PTY LTD","query":"122.108.42.10"}' ++ jq .lat
  • LATITUDE=-34.9281 ++ echo '{"status":"success","country":"Australia","countryCode":"AU","region":"SA","regionName":"South Australia","city":"Adelaide","zip":"5000","lat":-34.9281,"lon":138.5999,"timezone":"Australia/Adelaide","isp":"SingTel Optus Pty Ltd","org":"Optus Internet Pty Ltd","as":"AS4804 Microplex PTY LTD","query":"122.108.42.10"}' ++ jq .lon
  • LONGITUDE=138.5999
  • '[' -f /home/birder/BirdNET-Pi/birdnet.conf ']'
  • install_config
  • cat
  • chmod g+w /home/birder/BirdNET-Pi/birdnet.conf
  • '[' -d /etc/birdnet ']'
  • sudo mkdir /etc/birdnet
  • sudo ln -sf /home/birder/BirdNET-Pi/birdnet.conf /etc/birdnet/birdnet.conf
  • grep -ve '^#' -e '^$' /etc/birdnet/birdnet.conf
  • sudo -E HOME=/home/birder USER=birder ./install_services.sh
  • trap 'rm -f ${tmpfile}' EXIT
  • trap 'exit 1' SIGINT SIGHUP ++ mktemp
  • tmpfile=/tmp/tmp.RCHyrIO2ma
  • config_file=/home/birder/BirdNET-Pi/birdnet.conf
  • export USER=birder
  • USER=birder
  • export HOME=/home/birder
  • HOME=/home/birder
  • export PYTHON_VIRTUAL_ENV=/home/birder/BirdNET-Pi/birdnet/bin/python3
  • PYTHON_VIRTUAL_ENV=/home/birder/BirdNET-Pi/birdnet/bin/python3
  • '[' -f /home/birder/BirdNET-Pi/birdnet.conf ']'
  • source /home/birder/BirdNET-Pi/birdnet.conf ++ SITE_NAME=birdnetpi ++ LATITUDE=-34.9281 ++ LONGITUDE=138.5999 ++ MODEL=BirdNET_6K_GLOBAL_MODEL ++ SF_THRESH=0.03 ++ BIRDWEATHER_ID= ++ CADDY_PWD= ++ ICE_PWD=birdnetpi ++ BIRDNETPI_URL= ++ RTSP_STREAM= ++ APPRISE_NOTIFICATION_TITLE='New BirdNET-Pi Detection' ++ APPRISE_NOTIFICATION_BODY='A () was just detected with a confidence of ' ++ APPRISE_NOTIFY_EACH_DETECTION=0 ++ APPRISE_NOTIFY_NEW_SPECIES=0 ++ APPRISE_WEEKLY_REPORT=1 ++ APPRISE_NOTIFY_NEW_SPECIES_EACH_DAY=0 ++ APPRISE_MINIMUM_SECONDS_BETWEEN_NOTIFICATIONS_PER_SPECIES=0 ++ APPRISE_ONLY_NOTIFY_SPECIES_NAMES= ++ APPRISE_ONLY_NOTIFY_SPECIES_NAMES_2= ++ FLICKR_API_KEY= ++ FLICKR_FILTER_EMAIL= ++ RECS_DIR=/home/birder/BirdSongs ++ REC_CARD=default ++ PROCESSED=/home/birder/BirdSongs/Processed ++ EXTRACTED=/home/birder/BirdSongs/Extracted ++ OVERLAP=0.0 ++ CONFIDENCE=0.7 ++ SENSITIVITY=1.25 ++ FREQSHIFT_TOOL=sox ++ FREQSHIFT_HI=6000 ++ FREQSHIFT_LO=3000 ++ FREQSHIFT_RECONNECT_DELAY=4000 ++ FREQSHIFT_PITCH=-1500 ++ CHANNELS=2 ++ FULL_DISK=purge ++ PRIVACY_THRESHOLD=0 ++ RECORDING_LENGTH=15 ++ EXTRACTION_LENGTH= ++ AUDIOFMT=mp3 ++ DATABASE_LANG=en ++ HEARTBEAT_URL= ++ SILENCE_UPDATE_INDICATOR=0 ++ RAW_SPECTROGRAM=0 ++ CUSTOM_IMAGE= ++ CUSTOM_IMAGE_TITLE= ++ LAST_RUN= ++ THIS_RUN= ++ IDFILE=/home/birder/BirdNET-Pi/IdentifiedSoFar.txt
  • install_services
  • set_hostname ++ hostname
  • '[' birdnetpi == raspberrypi ']'
  • update_etc_hosts ++ hostname
  • sed -ie 's/$(hostname).local/birdnetpi.local /g' /etc/hosts
  • set_login
  • '[' -d /etc/lightdm ']'
  • systemctl set-default multi-user.target
  • ln -fs /lib/systemd/system/[email protected] /etc/systemd/system/getty.target.wants/[email protected]
  • cat
  • install_depends
  • apt install -y debian-keyring debian-archive-keyring apt-transport-https

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists... Building dependency tree... Reading state information... debian-archive-keyring is already the newest version (2021.1.1+deb11u1). The following NEW packages will be installed: apt-transport-https debian-keyring 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 31.3 MB of archives. After this operation, 32.7 MB of additional disk space will be used. Get:1 http://deb.debian.org/debian bullseye/main arm64 apt-transport-https all 2.2.4 [160 kB] Get:2 http://deb.debian.org/debian bullseye/main arm64 debian-keyring all 2021.07.26 [31.1 MB] Fetched 31.3 MB in 12s (2,716 kB/s) Selecting previously unselected package apt-transport-https. (Reading database ... 38726 files and directories currently installed.) Preparing to unpack .../apt-transport-https_2.2.4_all.deb ... Unpacking apt-transport-https (2.2.4) ... Selecting previously unselected package debian-keyring. Preparing to unpack .../debian-keyring_2021.07.26_all.deb ... Unpacking debian-keyring (2021.07.26) ... Setting up apt-transport-https (2.2.4) ... Setting up debian-keyring (2021.07.26) ...

  • curl -1sLf https://dl.cloudsmith.io/public/caddy/stable/gpg.key
  • sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
  • curl -1sLf https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt
  • sudo tee /etc/apt/sources.list.d/caddy-stable.list

Source: Caddy

Site: https://github.com/caddyserver/caddy

Repository: Caddy / stable

Description: Fast, multi-platform web server with automatic HTTPS

deb [signed-by=/usr/share/keyrings/caddy-stable-archive-keyring.gpg] https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version main

deb-src [signed-by=/usr/share/keyrings/caddy-stable-archive-keyring.gpg] https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version main

  • apt -qqq update

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

E: Release file for http://deb.debian.org/debian/dists/bullseye/InRelease is not valid yet (invalid for another 157d 7h 49min 34s). Updates for this repository will not be applied. E: Release file for http://security.debian.org/debian-security/dists/bullseye-security/InRelease is not valid yet (invalid for another 171d 18h 15min 14s). Updates for this repository will not be applied. E: Release file for http://deb.debian.org/debian/dists/bullseye-updates/InRelease is not valid yet (invalid for another 171d 22h 53min 47s). Updates for this repository will not be applied. E: Release file for https://dl.cloudsmith.io/public/caddy/stable/deb/debian/dists/any-version/InRelease is not valid yet (invalid for another 161d 18h 59min 59s). Updates for this repository will not be applied. E: Release file for http://archive.raspberrypi.org/debian/dists/bullseye/InRelease is not valid yet (invalid for another 170d 5h 13min 1s). Updates for this repository will not be applied.

  • echo 'icecast2 icecast2/icecast-setup boolean false'
  • debconf-set-selections
  • apt install -qqy caddy ftpd sqlite3 php-sqlite3 alsa-utils pulseaudio avahi-utils sox libsox-fmt-mp3 php php-fpm php-curl php-xml php-zip icecast2 swig ffmpeg wget unzip curl cmake make bc libjpeg-dev zlib1g-dev python3-dev python3-pip python3-venv lsof net-tools

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

E: Unable to locate package caddy

  • install_scripts

  • ln -sf /home/birder/BirdNET-Pi/scripts/adminer-de.php /home/birder/BirdNET-Pi/scripts/adminer-fr.php /home/birder/BirdNET-Pi/scripts/adminer.php /home/birder/BirdNET-Pi/scripts/advanced.php /home/birder/BirdNET-Pi/scripts/analyze.py /home/birder/BirdNET-Pi/scripts/birdnet_analysis.sh /home/birder/BirdNET-Pi/scripts/birdnet_log.sh /home/birder/BirdNET-Pi/scripts/birdnetpi_request.php /home/birder/BirdNET-Pi/scripts/birdnet_recording.sh /home/birder/BirdNET-Pi/scripts/birdweather_request.php /home/birder/BirdNET-Pi/scripts/cleanup.sh /home/birder/BirdNET-Pi/scripts/clear_all_data.sh /home/birder/BirdNET-Pi/scripts/config.php /home/birder/BirdNET-Pi/scripts/createdb.sh /home/birder/BirdNET-Pi/scripts/custom_recording.sh /home/birder/BirdNET-Pi/scripts/daily_plot.py /home/birder/BirdNET-Pi/scripts/disk_check.sh /home/birder/BirdNET-Pi/scripts/disk_usage.sh /home/birder/BirdNET-Pi/scripts/dump_logs.sh /home/birder/BirdNET-Pi/scripts/email_template /home/birder/BirdNET-Pi/scripts/email_template2 /home/birder/BirdNET-Pi/scripts/exclude_list.php /home/birder/BirdNET-Pi/scripts/extract_new_birdsounds.sh /home/birder/BirdNET-Pi/scripts/extra_info.sh /home/birder/BirdNET-Pi/scripts/filemanager /home/birder/BirdNET-Pi/scripts/gotty /home/birder/BirdNET-Pi/scripts/history.php /home/birder/BirdNET-Pi/scripts/include_list.php /home/birder/BirdNET-Pi/scripts/init.py /home/birder/BirdNET-Pi/scripts/install_birdnet.sh /home/birder/BirdNET-Pi/scripts/install_config.sh /home/birder/BirdNET-Pi/scripts/install_language_label_nm.sh /home/birder/BirdNET-Pi/scripts/install_language_label.sh /home/birder/BirdNET-Pi/scripts/install_noip2.sh /home/birder/BirdNET-Pi/scripts/install_services.sh /home/birder/BirdNET-Pi/scripts/install_zram_service.sh /home/birder/BirdNET-Pi/scripts/livestream.sh /home/birder/BirdNET-Pi/scripts/most_recent.sh /home/birder/BirdNET-Pi/scripts/overview.php /home/birder/BirdNET-Pi/scripts/play.php /home/birder/BirdNET-Pi/scripts/plotly_streamlit.py /home/birder/BirdNET-Pi/scripts/print_diagnostic_info.sh /home/birder/BirdNET-Pi/scripts/restart_services.sh /home/birder/BirdNET-Pi/scripts/server.py /home/birder/BirdNET-Pi/scripts/service_controls.php /home/birder/BirdNET-Pi/scripts/species_notifier.sh /home/birder/BirdNET-Pi/scripts/species.py /home/birder/BirdNET-Pi/scripts/spectrogram.php /home/birder/BirdNET-Pi/scripts/spectrogram.sh /home/birder/BirdNET-Pi/scripts/stats.php /home/birder/BirdNET-Pi/scripts/stop_core_services.sh /home/birder/BirdNET-Pi/scripts/system_controls.php /home/birder/BirdNET-Pi/scripts/todays_detections.php /home/birder/BirdNET-Pi/scripts/uninstall.sh /home/birder/BirdNET-Pi/scripts/update_birdnet.sh /home/birder/BirdNET-Pi/scripts/update_birdnet_snippets.sh /home/birder/BirdNET-Pi/scripts/update_caddyfile.sh /home/birder/BirdNET-Pi/scripts/update_species.sh /home/birder/BirdNET-Pi/scripts/utils /home/birder/BirdNET-Pi/scripts/weekly_report.php /home/birder/BirdNET-Pi/scripts/weekly_report.sh /home/birder/BirdNET-Pi/scripts/write_config.sh /usr/local/bin/

  • install_Caddyfile

  • '[' -d /etc/caddy ']'

  • mkdir /etc/caddy

  • '[' -f /etc/caddy/Caddyfile ']'

  • '[' -z ']'

  • cat

  • systemctl enable caddy Failed to enable unit: Unit file caddy.service does not exist.

  • usermod -aG birder caddy usermod: user 'caddy' does not exist

  • usermod -aG video caddy usermod: user 'caddy' does not exist

  • install_avahi_aliases

  • cat

  • ln -sf /home/birder/BirdNET-Pi/templates/[email protected] /usr/lib/systemd/system ++ hostname

  • systemctl enable [email protected] Created symlink /etc/systemd/system/multi-user.target.wants/[email protected] → /home/birder/BirdNET-Pi/templates/[email protected]. Created symlink /etc/systemd/system/[email protected] → /home/birder/BirdNET-Pi/templates/[email protected].

  • install_birdnet_analysis

  • cat

  • ln -sf /home/birder/BirdNET-Pi/templates/birdnet_analysis.service /usr/lib/systemd/system

  • systemctl enable birdnet_analysis.service Created symlink /etc/systemd/system/multi-user.target.wants/birdnet_analysis.service → /home/birder/BirdNET-Pi/templates/birdnet_analysis.service. Created symlink /etc/systemd/system/birdnet_analysis.service → /home/birder/BirdNET-Pi/templates/birdnet_analysis.service.

  • install_birdnet_server

  • cat

  • ln -sf /home/birder/BirdNET-Pi/templates/birdnet_server.service /usr/lib/systemd/system

  • systemctl enable birdnet_server.service Created symlink /etc/systemd/system/multi-user.target.wants/birdnet_server.service → /home/birder/BirdNET-Pi/templates/birdnet_server.service. Created symlink /etc/systemd/system/birdnet_server.service → /home/birder/BirdNET-Pi/templates/birdnet_server.service.

  • install_birdnet_stats_service

  • cat

  • ln -sf /home/birder/BirdNET-Pi/templates/birdnet_stats.service /usr/lib/systemd/system

  • systemctl enable birdnet_stats.service Created symlink /etc/systemd/system/multi-user.target.wants/birdnet_stats.service → /home/birder/BirdNET-Pi/templates/birdnet_stats.service. Created symlink /etc/systemd/system/birdnet_stats.service → /home/birder/BirdNET-Pi/templates/birdnet_stats.service.

  • install_recording_service

  • echo 'Installing birdnet_recording.service' Installing birdnet_recording.service

  • cat

  • ln -sf /home/birder/BirdNET-Pi/templates/birdnet_recording.service /usr/lib/systemd/system

  • systemctl enable birdnet_recording.service Created symlink /etc/systemd/system/multi-user.target.wants/birdnet_recording.service → /home/birder/BirdNET-Pi/templates/birdnet_recording.service. Created symlink /etc/systemd/system/birdnet_recording.service → /home/birder/BirdNET-Pi/templates/birdnet_recording.service.

  • install_custom_recording_service

  • echo 'Installing custom_recording.service' Installing custom_recording.service

  • cat

  • ln -sf /home/birder/BirdNET-Pi/templates/custom_recording.service /usr/lib/systemd/system

  • install_extraction_service

  • cat

  • ln -sf /home/birder/BirdNET-Pi/templates/extraction.service /usr/lib/systemd/system

  • systemctl enable extraction.service Created symlink /etc/systemd/system/multi-user.target.wants/extraction.service → /home/birder/BirdNET-Pi/templates/extraction.service. Created symlink /etc/systemd/system/extraction.service → /home/birder/BirdNET-Pi/templates/extraction.service.

  • install_spectrogram_service

  • cat

  • ln -sf /home/birder/BirdNET-Pi/templates/spectrogram_viewer.service /usr/lib/systemd/system

  • systemctl enable spectrogram_viewer.service Created symlink /etc/systemd/system/multi-user.target.wants/spectrogram_viewer.service → /home/birder/BirdNET-Pi/templates/spectrogram_viewer.service. Created symlink /etc/systemd/system/spectrogram_viewer.service → /home/birder/BirdNET-Pi/templates/spectrogram_viewer.service.

  • install_chart_viewer_service

  • echo 'Installing the chart_viewer.service' Installing the chart_viewer.service

  • cat

  • ln -sf /home/birder/BirdNET-Pi/templates/chart_viewer.service /usr/lib/systemd/system

  • systemctl enable chart_viewer.service Created symlink /etc/systemd/system/multi-user.target.wants/chart_viewer.service → /home/birder/BirdNET-Pi/templates/chart_viewer.service. Created symlink /etc/systemd/system/chart_viewer.service → /home/birder/BirdNET-Pi/templates/chart_viewer.service.

  • install_gotty_logs

  • sudo -u birder ln -sf /home/birder/BirdNET-Pi/templates/gotty /home/birder/.gotty

  • sudo -u birder ln -sf /home/birder/BirdNET-Pi/templates/bashrc /home/birder/.bashrc

  • cat

  • ln -sf /home/birder/BirdNET-Pi/templates/birdnet_log.service /usr/lib/systemd/system

  • systemctl enable birdnet_log.service Created symlink /etc/systemd/system/multi-user.target.wants/birdnet_log.service → /home/birder/BirdNET-Pi/templates/birdnet_log.service. Created symlink /etc/systemd/system/birdnet_log.service → /home/birder/BirdNET-Pi/templates/birdnet_log.service.

  • cat

  • ln -sf /home/birder/BirdNET-Pi/templates/web_terminal.service /usr/lib/systemd/system

  • systemctl enable web_terminal.service Created symlink /etc/systemd/system/multi-user.target.wants/web_terminal.service → /home/birder/BirdNET-Pi/templates/web_terminal.service. Created symlink /etc/systemd/system/web_terminal.service → /home/birder/BirdNET-Pi/templates/web_terminal.service.

  • install_phpsysinfo

  • sudo -u birder git clone https://github.com/phpsysinfo/phpsysinfo.git /home/birder/phpsysinfo Cloning into '/home/birder/phpsysinfo'...

  • install_livestream_service

  • cat

  • ln -sf /home/birder/BirdNET-Pi/templates/livestream.service /usr/lib/systemd/system

  • systemctl enable livestream.service Created symlink /etc/systemd/system/multi-user.target.wants/livestream.service → /home/birder/BirdNET-Pi/templates/livestream.service. Created symlink /etc/systemd/system/livestream.service → /home/birder/BirdNET-Pi/templates/livestream.service.

  • install_cleanup_cron

  • sed 's/$USER/birder/g' /home/birder/BirdNET-Pi/templates/cleanup.cron

  • install_weekly_cron

  • sed 's/$USER/birder/g' /home/birder/BirdNET-Pi/templates/weekly_report.cron

  • increase_caddy_timeout

  • mkdir /etc/systemd/system/caddy.service.d

  • cat

  • systemctl daemon-reload

  • create_necessary_dirs

  • echo 'Creating necessary directories' Creating necessary directories

  • '[' -d /home/birder/BirdSongs/Extracted ']'

  • sudo -u birder mkdir -p /home/birder/BirdSongs/Extracted

  • '[' -d /home/birder/BirdSongs/Extracted/By_Date ']'

  • sudo -u birder mkdir -p /home/birder/BirdSongs/Extracted/By_Date

  • '[' -d /home/birder/BirdSongs/Extracted/Charts ']'

  • sudo -u birder mkdir -p /home/birder/BirdSongs/Extracted/Charts

  • '[' -d /home/birder/BirdSongs/Processed ']'

  • sudo -u birder mkdir -p /home/birder/BirdSongs/Processed

  • sudo -u birder ln -fs /home/birder/BirdNET-Pi/exclude_species_list.txt /home/birder/BirdNET-Pi/scripts

  • sudo -u birder ln -fs /home/birder/BirdNET-Pi/include_species_list.txt /home/birder/BirdNET-Pi/scripts

  • sudo -u birder ln -fs /home/birder/BirdNET-Pi/homepage/images /home/birder/BirdNET-Pi/homepage/index.php /home/birder/BirdNET-Pi/homepage/static /home/birder/BirdNET-Pi/homepage/style.css /home/birder/BirdNET-Pi/homepage/views.php /home/birder/BirdSongs/Extracted

  • sudo -u birder ln -fs /home/birder/BirdNET-Pi/model/labels.txt /home/birder/BirdNET-Pi/scripts

  • sudo -u birder ln -fs /home/birder/BirdNET-Pi/scripts /home/birder/BirdSongs/Extracted

  • sudo -u birder ln -fs /home/birder/BirdNET-Pi/scripts/play.php /home/birder/BirdSongs/Extracted

  • sudo -u birder ln -fs /home/birder/BirdNET-Pi/scripts/spectrogram.php /home/birder/BirdSongs/Extracted

  • sudo -u birder ln -fs /home/birder/BirdNET-Pi/scripts/overview.php /home/birder/BirdSongs/Extracted

  • sudo -u birder ln -fs /home/birder/BirdNET-Pi/scripts/stats.php /home/birder/BirdSongs/Extracted

  • sudo -u birder ln -fs /home/birder/BirdNET-Pi/scripts/todays_detections.php /home/birder/BirdSongs/Extracted

  • sudo -u birder ln -fs /home/birder/BirdNET-Pi/scripts/history.php /home/birder/BirdSongs/Extracted

  • sudo -u birder ln -fs /home/birder/BirdNET-Pi/scripts/weekly_report.php /home/birder/BirdSongs/Extracted

  • sudo -u birder ln -fs /home/birder/BirdNET-Pi/homepage/images/favicon.ico /home/birder/BirdSongs/Extracted

  • sudo -u birder ln -fs /home/birder/phpsysinfo /home/birder/BirdSongs/Extracted

  • sudo -u birder ln -fs /home/birder/BirdNET-Pi/templates/phpsysinfo.ini /home/birder/phpsysinfo/

  • sudo -u birder ln -fs /home/birder/BirdNET-Pi/templates/green_bootstrap.css /home/birder/phpsysinfo/templates/

  • sudo -u birder ln -fs /home/birder/BirdNET-Pi/templates/index_bootstrap.html /home/birder/phpsysinfo/templates/html

  • chmod -R g+rw /home/birder/BirdNET-Pi

  • chmod -R g+rw /home/birder/BirdSongs

  • generate_BirdDB

  • echo 'Generating BirdDB.txt' Generating BirdDB.txt

  • '[' -f /home/birder/BirdNET-Pi/BirdDB.txt ']'

  • sudo -u birder touch /home/birder/BirdNET-Pi/BirdDB.txt

  • echo 'Date;Time;Sci_Name;Com_Name;Confidence;Lat;Lon;Cutoff;Week;Sens;Overlap'

  • sudo -u birder tee -a /home/birder/BirdNET-Pi/BirdDB.txt Date;Time;Sci_Name;Com_Name;Confidence;Lat;Lon;Cutoff;Week;Sens;Overlap

  • chown birder:birder /home/birder/BirdNET-Pi/BirdDB.txt

  • chmod g+rw /home/birder/BirdNET-Pi/BirdDB.txt

  • configure_caddy_php

  • echo 'Configuring PHP for Caddy' Configuring PHP for Caddy

  • sed -i s/www-data/caddy/g '/etc/php//fpm/pool.d/www.conf' sed: can't read /etc/php//fpm/pool.d/www.conf: No such file or directory

  • systemctl restart 'php7*-fpm.service'

  • echo 'Adding Caddy sudoers rule' Adding Caddy sudoers rule

  • cat

  • chmod 0440 /etc/sudoers.d/010_caddy-nopasswd

  • config_icecast

  • '[' -f /etc/icecast2/icecast.xml ']'

  • sed -i 's/>admin</>birdnet</g' /etc/icecast2/icecast.xml sed: can't read /etc/icecast2/icecast.xml: No such file or directory

  • passwords=("source-" "relay-" "admin-" "master-" "")

  • for i in "${passwords[@]}"

  • sed -i 's/.*</source-password>/birdnetpi</source-password>/g' /etc/icecast2/icecast.xml sed: can't read /etc/icecast2/icecast.xml: No such file or directory

  • for i in "${passwords[@]}"

  • sed -i 's/.*</relay-password>/birdnetpi</relay-password>/g' /etc/icecast2/icecast.xml sed: can't read /etc/icecast2/icecast.xml: No such file or directory

  • for i in "${passwords[@]}"

  • sed -i 's/.*</admin-password>/birdnetpi</admin-password>/g' /etc/icecast2/icecast.xml sed: can't read /etc/icecast2/icecast.xml: No such file or directory

  • for i in "${passwords[@]}"

  • sed -i 's/.*</master-password>/birdnetpi</master-password>/g' /etc/icecast2/icecast.xml sed: can't read /etc/icecast2/icecast.xml: No such file or directory

  • for i in "${passwords[@]}"

  • sed -i 's/.*</password>/birdnetpi</password>/g' /etc/icecast2/icecast.xml sed: can't read /etc/icecast2/icecast.xml: No such file or directory

  • sed -i 's|<!-- .|127.0.0.1|;s|<!-- .|/stream|' sed: no input files

  • systemctl enable icecast2.service Failed to enable unit: Unit file icecast2.service does not exist.

  • USER=birder

  • HOME=/home/birder

  • /home/birder/BirdNET-Pi/scripts/createdb.sh /home/birder/BirdNET-Pi/scripts/createdb.sh: line 3: sqlite3: command not found chown: cannot access '/home/birder/BirdNET-Pi/scripts/birds.db': No such file or directory chmod: cannot access '/home/birder/BirdNET-Pi/scripts/birds.db': No such file or directory

  • chown_things

  • chown -R birder:birder /home/birder/BirdNET-Pi /home/birder/BirdSongs

  • rm -f /tmp/tmp.RCHyrIO2ma

  • source /etc/birdnet/birdnet.conf ++ SITE_NAME=birdnetpi ++ LATITUDE=-34.9281 ++ LONGITUDE=138.5999 ++ MODEL=BirdNET_6K_GLOBAL_MODEL ++ SF_THRESH=0.03 ++ BIRDWEATHER_ID= ++ CADDY_PWD= ++ ICE_PWD=birdnetpi ++ BIRDNETPI_URL= ++ RTSP_STREAM= ++ APPRISE_NOTIFICATION_TITLE='New BirdNET-Pi Detection' ++ APPRISE_NOTIFICATION_BODY='A () was just detected with a confidence of ' ++ APPRISE_NOTIFY_EACH_DETECTION=0 ++ APPRISE_NOTIFY_NEW_SPECIES=0 ++ APPRISE_WEEKLY_REPORT=1 ++ APPRISE_NOTIFY_NEW_SPECIES_EACH_DAY=0 ++ APPRISE_MINIMUM_SECONDS_BETWEEN_NOTIFICATIONS_PER_SPECIES=0 ++ APPRISE_ONLY_NOTIFY_SPECIES_NAMES= ++ APPRISE_ONLY_NOTIFY_SPECIES_NAMES_2= ++ FLICKR_API_KEY= ++ FLICKR_FILTER_EMAIL= ++ RECS_DIR=/home/birder/BirdSongs ++ REC_CARD=default ++ PROCESSED=/home/birder/BirdSongs/Processed ++ EXTRACTED=/home/birder/BirdSongs/Extracted ++ OVERLAP=0.0 ++ CONFIDENCE=0.7 ++ SENSITIVITY=1.25 ++ FREQSHIFT_TOOL=sox ++ FREQSHIFT_HI=6000 ++ FREQSHIFT_LO=3000 ++ FREQSHIFT_RECONNECT_DELAY=4000 ++ FREQSHIFT_PITCH=-1500 ++ CHANNELS=2 ++ FULL_DISK=purge ++ PRIVACY_THRESHOLD=0 ++ RECORDING_LENGTH=15 ++ EXTRACTION_LENGTH= ++ AUDIOFMT=mp3 ++ DATABASE_LANG=en ++ HEARTBEAT_URL= ++ SILENCE_UPDATE_INDICATOR=0 ++ RAW_SPECTROGRAM=0 ++ CUSTOM_IMAGE= ++ CUSTOM_IMAGE_TITLE= ++ LAST_RUN= ++ THIS_RUN= ++ IDFILE=/home/birder/BirdNET-Pi/IdentifiedSoFar.txt

  • '[' -d /home/birder/BirdSongs ']'

  • install_birdnet

  • cd /home/birder/BirdNET-Pi

  • echo 'Establishing a python virtual environment' Establishing a python virtual environment

  • python3 -m venv birdnet The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command.

    apt-get install python3-venv

You may need to use sudo with that command. After installing the python3-venv package, recreate your virtual environment.

Failing command: ['/home/birder/BirdNET-Pi/birdnet/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

The installation exited unsuccessfully.

birder@birdnetpi:~ $ sudo apt-get install python3-venv Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: python-pip-whl python3-distutils python3-lib2to3 python3.9-venv The following NEW packages will be installed: python-pip-whl python3-distutils python3-lib2to3 python3-venv python3.9-venv 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. Need to get 2,229 kB of archives. After this operation, 3,469 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://deb.debian.org/debian bullseye/main arm64 python3-lib2to3 all 3.9.2-1 [77.8 kB] Get:2 http://deb.debian.org/debian bullseye/main arm64 python3-distutils all 3.9.2-1 [143 kB] Get:3 http://deb.debian.org/debian bullseye/main arm64 python3.9-venv arm64 3.9.2-1 [5,396 B] Get:4 http://deb.debian.org/debian bullseye/main arm64 python3-venv arm64 3.9.2-3 [1,188 B] Get:5 http://archive.raspberrypi.org/debian bullseye/main arm64 python-pip-whl all 20.3.4-4+rpt1+deb11u1 [2,002 kB] Fetched 2,229 kB in 3s (642 kB/s) Selecting previously unselected package python-pip-whl. (Reading database ... 38740 files and directories currently installed.) Preparing to unpack .../python-pip-whl_20.3.4-4+rpt1+deb11u1_all.deb ... Unpacking python-pip-whl (20.3.4-4+rpt1+deb11u1) ... Selecting previously unselected package python3-lib2to3. Preparing to unpack .../python3-lib2to3_3.9.2-1_all.deb ... Unpacking python3-lib2to3 (3.9.2-1) ... Selecting previously unselected package python3-distutils. Preparing to unpack .../python3-distutils_3.9.2-1_all.deb ... Unpacking python3-distutils (3.9.2-1) ... Selecting previously unselected package python3.9-venv. Preparing to unpack .../python3.9-venv_3.9.2-1_arm64.deb ... Unpacking python3.9-venv (3.9.2-1) ... Selecting previously unselected package python3-venv. Preparing to unpack .../python3-venv_3.9.2-3_arm64.deb ... Unpacking python3-venv (3.9.2-3) ... Setting up python-pip-whl (20.3.4-4+rpt1+deb11u1) ... Setting up python3-lib2to3 (3.9.2-1) ... Setting up python3-distutils (3.9.2-1) ... Setting up python3.9-venv (3.9.2-1) ... Setting up python3-venv (3.9.2-3) ... birder@birdnetpi:~ $ cd && uninstall.sh && rm -drfv BirdNET* && curl -s https://raw.githubusercontent.com/mcguirepr89/BirdNET-Pi/main/newinstaller.sh | bash

  • services=($(awk '/service/ && /systemctl/ && !/php/ {print $3}' ${my_dir}/install_services.sh | sort) custom_recording.service [email protected]) ++ awk '/service/ && /systemctl/ && !/php/ {print $3}' /home/birder/BirdNET-Pi/scripts/install_services.sh ++ sort
  • remove_services
  • for i in "${services[@]}"
  • '[' -L '/etc/systemd/system/multi-user.target.wants/avahi-alias@"$(hostname)".local.service' ']'
  • '[' -L '/lib/systemd/system/avahi-alias@"$(hostname)".local.service' ']'
  • '[' -f '/etc/systemd/system/avahi-alias@"$(hostname)".local.service' ']'
  • '[' -d '/etc/systemd/system/avahi-alias@"$(hostname)".local.service' ']'
  • for i in "${services[@]}"
  • '[' -L /etc/systemd/system/multi-user.target.wants/birdnet_analysis.service ']'
  • sudo systemctl disable --now birdnet_analysis.service Removed /etc/systemd/system/multi-user.target.wants/birdnet_analysis.service. Removed /etc/systemd/system/birdnet_analysis.service.
  • '[' -L /lib/systemd/system/birdnet_analysis.service ']'
  • sudo rm -f /lib/systemd/system/birdnet_analysis.service
  • '[' -f /etc/systemd/system/birdnet_analysis.service ']'
  • '[' -d /etc/systemd/system/birdnet_analysis.service ']'
  • for i in "${services[@]}"
  • '[' -L /etc/systemd/system/multi-user.target.wants/birdnet_log.service ']'
  • sudo systemctl disable --now birdnet_log.service Removed /etc/systemd/system/multi-user.target.wants/birdnet_log.service. Removed /etc/systemd/system/birdnet_log.service.
  • '[' -L /lib/systemd/system/birdnet_log.service ']'
  • sudo rm -f /lib/systemd/system/birdnet_log.service
  • '[' -f /etc/systemd/system/birdnet_log.service ']'
  • '[' -d /etc/systemd/system/birdnet_log.service ']'
  • for i in "${services[@]}"
  • '[' -L /etc/systemd/system/multi-user.target.wants/birdnet_recording.service ']'
  • sudo systemctl disable --now birdnet_recording.service Removed /etc/systemd/system/birdnet_recording.service. Removed /etc/systemd/system/multi-user.target.wants/birdnet_recording.service.
  • '[' -L /lib/systemd/system/birdnet_recording.service ']'
  • sudo rm -f /lib/systemd/system/birdnet_recording.service
  • '[' -f /etc/systemd/system/birdnet_recording.service ']'
  • '[' -d /etc/systemd/system/birdnet_recording.service ']'
  • for i in "${services[@]}"
  • '[' -L /etc/systemd/system/multi-user.target.wants/birdnet_server.service ']'
  • sudo systemctl disable --now birdnet_server.service Removed /etc/systemd/system/multi-user.target.wants/birdnet_server.service. Removed /etc/systemd/system/birdnet_server.service.
  • '[' -L /lib/systemd/system/birdnet_server.service ']'
  • sudo rm -f /lib/systemd/system/birdnet_server.service
  • '[' -f /etc/systemd/system/birdnet_server.service ']'
  • '[' -d /etc/systemd/system/birdnet_server.service ']'
  • for i in "${services[@]}"
  • '[' -L /etc/systemd/system/multi-user.target.wants/birdnet_stats.service ']'
  • sudo systemctl disable --now birdnet_stats.service Removed /etc/systemd/system/multi-user.target.wants/birdnet_stats.service. Removed /etc/systemd/system/birdnet_stats.service.
  • '[' -L /lib/systemd/system/birdnet_stats.service ']'
  • sudo rm -f /lib/systemd/system/birdnet_stats.service
  • '[' -f /etc/systemd/system/birdnet_stats.service ']'
  • '[' -d /etc/systemd/system/birdnet_stats.service ']'
  • for i in "${services[@]}"
  • '[' -L /etc/systemd/system/multi-user.target.wants/chart_viewer.service ']'
  • sudo systemctl disable --now chart_viewer.service Removed /etc/systemd/system/multi-user.target.wants/chart_viewer.service. Removed /etc/systemd/system/chart_viewer.service.
  • '[' -L /lib/systemd/system/chart_viewer.service ']'
  • sudo rm -f /lib/systemd/system/chart_viewer.service
  • '[' -f /etc/systemd/system/chart_viewer.service ']'
  • '[' -d /etc/systemd/system/chart_viewer.service ']'
  • for i in "${services[@]}"
  • '[' -L /etc/systemd/system/multi-user.target.wants/extraction.service ']'
  • sudo systemctl disable --now extraction.service Removed /etc/systemd/system/multi-user.target.wants/extraction.service. Removed /etc/systemd/system/extraction.service.
  • '[' -L /lib/systemd/system/extraction.service ']'
  • sudo rm -f /lib/systemd/system/extraction.service
  • '[' -f /etc/systemd/system/extraction.service ']'
  • '[' -d /etc/systemd/system/extraction.service ']'
  • for i in "${services[@]}"
  • '[' -L /etc/systemd/system/multi-user.target.wants/icecast2.service ']'
  • '[' -L /lib/systemd/system/icecast2.service ']'
  • '[' -f /etc/systemd/system/icecast2.service ']'
  • '[' -d /etc/systemd/system/icecast2.service ']'
  • for i in "${services[@]}"
  • '[' -L /etc/systemd/system/multi-user.target.wants/livestream.service ']'
  • sudo systemctl disable --now livestream.service Removed /etc/systemd/system/multi-user.target.wants/livestream.service. Removed /etc/systemd/system/livestream.service.
  • '[' -L /lib/systemd/system/livestream.service ']'
  • sudo rm -f /lib/systemd/system/livestream.service
  • '[' -f /etc/systemd/system/livestream.service ']'
  • '[' -d /etc/systemd/system/livestream.service ']'
  • for i in "${services[@]}"
  • '[' -L /etc/systemd/system/multi-user.target.wants/spectrogram_viewer.service ']'
  • sudo systemctl disable --now spectrogram_viewer.service Removed /etc/systemd/system/multi-user.target.wants/spectrogram_viewer.service. Removed /etc/systemd/system/spectrogram_viewer.service.
  • '[' -L /lib/systemd/system/spectrogram_viewer.service ']'
  • sudo rm -f /lib/systemd/system/spectrogram_viewer.service
  • '[' -f /etc/systemd/system/spectrogram_viewer.service ']'
  • '[' -d /etc/systemd/system/spectrogram_viewer.service ']'
  • for i in "${services[@]}"
  • '[' -L /etc/systemd/system/multi-user.target.wants/web_terminal.service ']'
  • sudo systemctl disable --now web_terminal.service Removed /etc/systemd/system/multi-user.target.wants/web_terminal.service. Removed /etc/systemd/system/web_terminal.service.
  • '[' -L /lib/systemd/system/web_terminal.service ']'
  • sudo rm -f /lib/systemd/system/web_terminal.service
  • '[' -f /etc/systemd/system/web_terminal.service ']'
  • '[' -d /etc/systemd/system/web_terminal.service ']'
  • for i in "${services[@]}"
  • '[' -L /etc/systemd/system/multi-user.target.wants/custom_recording.service ']'
  • '[' -L /lib/systemd/system/custom_recording.service ']'
  • sudo rm -f /lib/systemd/system/custom_recording.service
  • '[' -f /etc/systemd/system/custom_recording.service ']'
  • '[' -d /etc/systemd/system/custom_recording.service ']'
  • for i in "${services[@]}"
  • '[' -L /etc/systemd/system/multi-user.target.wants/[email protected] ']'
  • '[' -L /lib/systemd/system/[email protected] ']'
  • sudo rm -f /lib/systemd/system/[email protected]
  • '[' -f /etc/systemd/system/[email protected] ']'
  • '[' -d /etc/systemd/system/[email protected] ']'
  • set +x .....
  • pip3 install -U -r /home/birder/BirdNET-Pi/requirements.txt Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Processing ./tflite_runtime-2.6.0-cp39-none-linux_aarch64.whl Requirement already satisfied: pip in ./birdnet/lib/python3.9/site-packages (from -r /home/birder/BirdNET-Pi/requirements.txt (line 1)) (20.3.4) WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1123)'))': /simple/pip/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1123)'))': /simple/pip/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1123)'))': /simple/pip/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1123)'))': /simple/pip/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1123)'))': /simple/pip/ Could not fetch URL https://www.piwheels.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='www.piwheels.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1123)'))) - skipping Collecting pip WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1123)'))': /packages/47/6a/453160888fab7c6a432a6e25f8afe6256d0d9f2cbd25971021da6491d899/pip-23.3.1-py3-none-any.whl WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1123)'))': /packages/47/6a/453160888fab7c6a432a6e25f8afe6256d0d9f2cbd25971021da6491d899/pip-23.3.1-py3-none-any.whl WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1123)'))': /packages/47/6a/453160888fab7c6a432a6e25f8afe6256d0d9f2cbd25971021da6491d899/pip-23.3.1-py3-none-any.whl WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1123)'))': /packages/47/6a/453160888fab7c6a432a6e25f8afe6256d0d9f2cbd25971021da6491d899/pip-23.3.1-py3-none-any.whl WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1123)'))': /packages/47/6a/453160888fab7c6a432a6e25f8afe6256d0d9f2cbd25971021da6491d899/pip-23.3.1-py3-none-any.whl ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/47/6a/453160888fab7c6a432a6e25f8afe6256d0d9f2cbd25971021da6491d899/pip-23.3.1-py3-none-any.whl (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1123)')))

The installation exited unsuccessfully. birder@birdnetpi:~ $

breimann avatar Oct 22 '23 06:10 breimann

Same, impossible to install. It's a shame, because until now it worked very well.

ygeshors avatar Oct 22 '23 08:10 ygeshors

I have the same issue, with things taking a turn for the worse at pip3 install, would really appreciate any help here! Also on Raspberry 4B, 4 GB, brand new, brand new and freshly formatted SD card, flashed with the official Pi imager.

  • pip3 install -U -r /home/nuthatch/BirdNET-Pi/requirements.txt Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple ERROR: tflite_runtime-2.6.0-cp39-none-linux_aarch64.whl is not a supported wheel on this platform. The installation exited unsuccessfully.

DMontgomery40 avatar Oct 25 '23 05:10 DMontgomery40

With this and the similar issue posted recently it appeared to me the installation package may be broken. But I was able to create a new instance today running the command

curl -s https://raw.githubusercontent.com/mcguirepr89/BirdNET-Pi/main/newinstaller.sh | bash

on a fresh install of 2023-05-03-raspios-bullseye-arm64-lite.img

Here are the last few lines of the install script output Screenshot from 2023-10-26 12-30-42

davidm870 avatar Oct 26 '23 20:10 davidm870

I have the same issue, with things taking a turn for the worse at pip3 install, would really appreciate any help here! Also on Raspberry 4B, 4 GB, brand new, brand new and freshly formatted SD card, flashed with the official Pi imager.

  • pip3 install -U -r /home/nuthatch/BirdNET-Pi/requirements.txt Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple ERROR: tflite_runtime-2.6.0-cp39-none-linux_aarch64.whl is not a supported wheel on this platform. The installation exited unsuccessfully.

Check your python version python -V on the shell.

it expects python3.9 and you likely have python 3.11.2 installed. Bullseye 11.8 comes with 3.11.2 and so does bookworm.

Find an older image of RaspiOS to see if it works.

@breimann Edit this scripts/install_config.sh

Comment out the section that find your coordinates and add them in manually upto max 4 decimals:

# Retrieve latitude and longitude from web
#json=$(curl -s4 http://ip-api.com/json)
#if [ "$(echo "$json" | jq -r .status)" = "success" ]; then
#  LATITUDE=$(echo "$json" | jq .lat)
#  LONGITUDE=$(echo "$json" | jq .lon)
#else
#  echo -e "\033[33mCouldn't set latitude and longitude automatically, you will need to do this manually from the web #interface by navigating to Tools -> Settings -> Location.\033[0m"
#  LATITUDE=0.0000
#  LONGITUDE=0.0000
#fi

LATITUDE=0.0000
LONGITUDE=0.0000


sarvesh-lad avatar Oct 28 '23 01:10 sarvesh-lad

hi @sarvesh-lad , here's my version of python..

birder@birdnetpi:~ $ python --version Python 3.9.2

breimann avatar Oct 28 '23 09:10 breimann

hi @sarvesh-lad , here's my version of python..

birder@birdnetpi:~ $ python --version Python 3.9.2

I too am now facing the same -_- gets hung up on installing language model.

Requirement already satisfied: smmap<6,>=3.0.1 in ./birdnet/lib/python3.9/site-packages (from gitdb<5,>=4.0.1->gitpython!=3.1.19->streamlit==1.19.0->-r /home/birdnet/BirdNET-Pi/requirements.txt (line 11)) (5.0.1)
Requirement already satisfied: mdurl~=0.1 in ./birdnet/lib/python3.9/site-packages (from markdown-it-py>=2.2.0->rich>=10.11.0->streamlit==1.19.0->-r /home/birdnet/BirdNET-Pi/requirements.txt (line 11)) (0.1.2)
tflite-runtime is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.
+ cd /home/birdnet/BirdNET-Pi/scripts
+ ./install_language_label_nm.sh -l en
Archive:  /home/birdnet/BirdNET-Pi/model/labels_nm.zip
  inflating: /home/birdnet/BirdNET-Pi/model/labels_en.txt
Archive:  /home/birdnet/BirdNET-Pi/model/labels_nm.zip
  inflating: /home/birdnet/BirdNET-Pi/model/labels_en.txt
+ exit 0

sarvesh-lad avatar Oct 29 '23 15:10 sarvesh-lad

I had this same problem, ended up needing to use [2022-04-04-raspios-bullseye-arm64-lite.img.xz] https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2022-04-07/2022-04-04-raspios-bullseye-arm64-lite.img.xz)

MickW69 avatar Nov 07 '23 09:11 MickW69

@MickW69, and did that work for you?

On Tue, 7 Nov 2023, 7:48 pm MickW69, @.***> wrote:

I had this same problem, ended up needing to use [2022-04-04-raspios-bullseye-arm64-lite.img.xz] https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2022-04-07/2022-04-04-raspios-bullseye-arm64-lite.img.xz )

— Reply to this email directly, view it on GitHub https://github.com/mcguirepr89/BirdNET-Pi/issues/1056#issuecomment-1798104246, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFY7RTQJPZCFBWMW72KM2V3YDH4HBAVCNFSM6AAAAAA6KVYKXCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJYGEYDIMRUGY . You are receiving this because you were mentioned.Message ID: @.***>

breimann avatar Nov 07 '23 10:11 breimann

Yes, installed successfully, up and running.

MickW69 avatar Nov 07 '23 11:11 MickW69

I had this same problem, ended up needing to use [2022-04-04-raspios-bullseye-arm64-lite.img.xz] https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2022-04-07/2022-04-04-raspios-bullseye-arm64-lite.img.xz)

I just tried doing this using your link to the Rpi os, installed that on my sd, booted up, and ran

curl -s https://raw.githubusercontent.com/mcguirepr89/BirdNET-Pi/main/newinstaller.sh | bash

And now i get nothing happening!! At all, like the login prompt just pauses and a new fresh login prompt comes up like it's done nothing with this command

breimann avatar Nov 12 '23 07:11 breimann

About the only other thing I can mention is that each time an OS didn't work I would format and do a fresh write with the Pi imager to try the previous one. So, it took a while to go through the archive of 64bit lite options.

https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit

https://downloads.raspberrypi.com/raspios_lite_arm64/images/?_gl=1saa9x6_gaMTM2MDM0MzAxNC4xNjkzMDI3MTkz_ga_22FD70LWDS*MTcwMDA5MzMxOC4xLjEuMTcwMDA5MzQxMy4wLjAuMA..

Good luck.

MickW69 avatar Nov 16 '23 00:11 MickW69

Same issue here with current 64 bit lite OS. Birdnet install fails with

ERROR: tflite_runtime-2.6.0-cp39-none-linux_aarch64.whl is not a supported wheel on this platform. The installation exited unsuccessfully.

Installed a fresh copy of Raspberry Pi OS (Legacy, 64 bit) lite, Bullseye released 2023-12-05. With that, install worked fine.

BO-TULIST avatar Dec 15 '23 23:12 BO-TULIST

I had this same problem, ended up needing to use [2022-04-04-raspios-bullseye-arm64-lite.img.xz] https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2022-04-07/2022-04-04-raspios-bullseye-arm64-lite.img.xz)

I had (as many other users) the same issue. Hardware: brand new PI4 OS: bullseye 12.5 arm lite 64-bit (did the image with PI Imager) Python version 3.11

The error ERROR: tflite_runtime-2.6.0-cp39-none-linux_aarch64.whl is not a supported wheel on this platform. The installation exited unsuccessfully.

appears as TensorFlow needs Python 3.9 to be executed.

Then I use this image [2022-04-04-raspios-bullseye-arm64-lite.img.xz] and follow the instruction again and it worked successfully.

einate57 avatar Feb 16 '24 15:02 einate57

Hi,

When I tried to install BirdNET Pi on a Raspberry Pi model 3, running Raspian OS/Bulls Eye I ran in to the same problem. Before I started the installation I did check the requirement section in the beginning of installation instruction, but the dependency on Pyhton 3.9 is not listed there. So my suggestion is that someone involved in the maintenance of BirdNET Pi adds undocumented requirements.

aolsorken avatar Feb 16 '24 21:02 aolsorken