question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trouble building (in local mode) on a Raspberry Pi 4

See original GitHub issue

Finally got this working on a Pi Zero W by changing the GPU memory settings.

Moving to a Raspberry Pi 4, with local deployment, and after balena push x.x.x.x

some services failed to build:
	balena-cam: manifest for balenalib/raspberrypi4-64-debian:stretch-20190612 not found

Changed first line of Dockerfile.template to

FROM balenalib/%%BALENA_MACHINE_NAME%%-debian:stretch

Now got the error

[Build]   [balena-cam] E: Unable to locate package libjasper-dev

Commented out the line for that in the same dockerfile.template, but I’m sure it wouldn’t be there if it wasn’t needed, so I’m sure that’ll cause problems down the line.

Now getting the error:

[Build]   [balena-cam] Collecting aiohttp
[Build]   [balena-cam]   Downloading https://www.piwheels.org/simple/aiohttp/aiohttp-3.6.2-py3-none-any.whl (441kB)
[Build]   [balena-cam] Collecting aiohttp_basicauth==0.1.3
[Build]   [balena-cam]   Downloading https://www.piwheels.org/simple/aiohttp-basicauth/aiohttp_basicauth-0.1.3-py3-none-any.whl
[Build]   [balena-cam] ERROR: Could not find a version that satisfies the requirement aiortc==0.9.11 (from versions: none)
[Build]   
[Build]   [balena-cam] ERROR: No matching distribution found for aiortc==0.9.11
[Build]   
[Build]   [balena-cam] Removing intermediate container 0ba8bf495a40
Some services failed to build:
	balena-cam: The command '/bin/sh -c pip3 install aiohttp aiohttp_basicauth==0.1.3 aiortc==0.9.11 numpy==1.15.4 opencv-python==3.4.4.19 --index-url https://www.piwheels.org/simple' returned a non-zero code: 1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:19 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
mbalamatcommented, Mar 2, 2020

@robot-army @schottsfired @ChadTaljaardt I am closing this. There was peer dependency issue, which I fixed, you can use the master branch (v0.1.0). If you encounter any issues feel free to re-open it, or better open another issue.

1reaction
robot-armycommented, Dec 21, 2019

OK, I just reverted my other changes and tried that, and it’s still coming with the error below.

Ryans-MBP:balena-cam robotarmy$ balena push 192.168.0.43
[debug] original argv0="/usr/local/lib/balena-cli/bin/node" argv=[/usr/local/lib/balena-cli/bin/node,/usr/local/lib/balena-cli/bin/run,push,192.168.0.43] length=4
[debug] Using . as build source
[Debug]   Checking we can access device
[Debug]   Sending request to http://192.168.0.43:48484/ping
[Debug]   Checking device version: 10.2.2
[Info]    Starting build on device 192.168.0.43
[Debug]   Loading project...
[Debug]   Resolving project...
[Info]    Compose file detected
[Debug]   Creating project...
[Debug]   Tarring all non-ignored files...
[Debug]   Sending request to http://192.168.0.43:48484/v2/local/device-info
[Debug]   Found build tasks:
[Debug]       balena-cam: build [./balena-cam]
[Debug]   Resolving services with [raspberrypi4-64|aarch64]
[Debug]   Found project types:
[Debug]       balena-cam: Architecture-specific Dockerfile
[Debug]   Probing remote daemon for cache images
[Debug]   Using 15 on-device images for cache...
[Debug]   Starting builds...
[Build]   [balena-cam] Step 1/11 : FROM balenalib/raspberrypi3-debian:stretch-20190612
[Build]   [balena-cam]  ---> 9a857048cc34
[Build]   [balena-cam] Step 2/11 : RUN apt-get update &&   apt-get install -yq     python3     python3-dev     python3-pip     python3-setuptools     gstreamer-1.0     v4l-utils     libopus-dev     libvpx-dev     libsrtp2-dev     libopencv-dev     libatlas3-base     libatlas-base-dev     libjasper-dev     libilmbase12     libopenexr22     libavformat-dev     libswscale-dev     libqtgui4     libqt4-test     libavdevice-dev     libavfilter-dev     libavcodec-dev   && apt-get clean && rm -rf /var/lib/apt/lists/*
[Build]   [balena-cam]  ---> Using cache
[Build]   [balena-cam]  ---> d33dc9a32d86
[Build]   [balena-cam] Step 3/11 : RUN pip3 install --upgrade pip
[Build]   [balena-cam]  ---> Running in 7d3f5a83bbab
[Build]   [balena-cam] Collecting pip
[Build]   [balena-cam]   Downloading https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl (1.4MB)
[Build]   [balena-cam] Installing collected packages: pip
[Build]   [balena-cam]   Found existing installation: pip 9.0.1
[Build]   [balena-cam]     Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /usr
[Build]   [balena-cam] Successfully installed pip-19.3.1
[Build]   [balena-cam] Removing intermediate container 7d3f5a83bbab
[Build]   [balena-cam]  ---> 15573ce840f5
[Build]   [balena-cam] Step 4/11 : RUN pip3 install async-timeout
[Build]   [balena-cam]  ---> Running in 55252b95dfe9
[Build]   [balena-cam] Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
[Build]   [balena-cam] Collecting async-timeout
[Build]   [balena-cam]   Downloading https://files.pythonhosted.org/packages/e1/1e/5a4441be21b0726c4464f3f23c8b19628372f606755a9d2e46c187e65ec4/async_timeout-3.0.1-py3-none-any.whl
[Build]   [balena-cam] Installing collected packages: async-timeout
[Build]   [balena-cam] Successfully installed async-timeout-3.0.1
[Build]   [balena-cam] Removing intermediate container 55252b95dfe9
[Build]   [balena-cam]  ---> be51a2e2a81c
[Build]   [balena-cam] Step 5/11 : RUN pip3 install aiohttp aiohttp_basicauth==0.1.3 aiortc==0.9.11 numpy==1.15.4 opencv-python==3.4.4.19 --index-url https://www.piwheels.org/simple
[Build]   [balena-cam]  ---> Running in b38292728616
[Build]   [balena-cam] Looking in indexes: https://www.piwheels.org/simple, https://www.piwheels.org/simple
[Build]   [balena-cam] Collecting aiohttp
[Build]   [balena-cam]   Downloading https://www.piwheels.org/simple/aiohttp/aiohttp-3.6.2-py3-none-any.whl (441kB)
[Build]   [balena-cam] Collecting aiohttp_basicauth==0.1.3
[Build]   [balena-cam]   Downloading https://www.piwheels.org/simple/aiohttp-basicauth/aiohttp_basicauth-0.1.3-py3-none-any.whl
[Build]   [balena-cam] ERROR: Could not find a version that satisfies the requirement aiortc==0.9.11 (from versions: none)
[Build]   
[Build]   [balena-cam] ERROR: No matching distribution found for aiortc==0.9.11
[Build]   
[Build]   [balena-cam] Removing intermediate container b38292728616
Some services failed to build:
	balena-cam: The command '/bin/sh -c pip3 install aiohttp aiohttp_basicauth==0.1.3 aiortc==0.9.11 numpy==1.15.4 opencv-python==3.4.4.19 --index-url https://www.piwheels.org/simple' returned a non-zero code: 1
Read more comments on GitHub >

github_iconTop Results From Across the Web

Trouble building (in local mode) on a Raspberry Pi 4 #57
This command works: docker build -f Dockerfile.template -t balena-cam:latest . And this command fails with dependency resolution errors: balena ...
Read more >
Raspberry Pi Documentation - Configuration
The official documentation for Raspberry Pi computers and microcontrollers. ... Select your local time zone, starting with the region, e.g. Europe, ...
Read more >
How to Build a Raspberry Pi Server for Development - Toptal
First, you need to find the IP address of your Raspberry Pi in your local network. This can be done by connecting to...
Read more >
Get started on developing with Raspberry Pi 4 and Python
To continue learning, explore parts of the guide in more detail: Learn more about local mode, which allows you to build and sync...
Read more >
How to Build a Raspberry Pi Router - Step by Step Tutorial
Since Raspberry Pi 4's are normally booted with an sd card, the probability that the sd card gets corrupted is very high. This...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found