PYNQ: PYTHON PRODUCTIVITY

PYNQ build error

I am trying to build the latest PYNQ and I’ve got an error:

[LabBuildApp] Building in /usr/local/share/jupyter/lab
[LabBuildApp] Yarn configuration loaded.
[LabBuildApp] Node v8.10.0

[LabBuildApp] Building jupyterlab assets (build:prod)
[LabBuildApp] > node /usr/local/lib/python3.6/dist-packages/jupyterlab/staging/yarn.js install --non-interactive
[LabBuildApp] yarn install v1.15.2
[1/5] Validating package.json…
[2/5] Resolving packages…
[3/5] Fetching packages…
info There appears to be trouble with your network connection. Retrying…
error get-stream@6.0.1: The engine “node” is incompatible with this module. Expected version “>=10”. Got “8.10.0”
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

[LabBuildApp] npm dependencies failed to install
[LabBuildApp] Traceback (most recent call last):

[LabBuildApp] File “/usr/local/lib/python3.6/dist-packages/jupyterlab/debuglog.py”, line 47, in debug_logging
yield

[LabBuildApp] File “/usr/local/lib/python3.6/dist-packages/jupyterlab/labapp.py”, line 98, in start
command=command, app_options=app_options)

[LabBuildApp] File “/usr/local/lib/python3.6/dist-packages/jupyterlab/commands.py”, line 459, in build
command=command, clean_staging=clean_staging)

[LabBuildApp] File “/usr/local/lib/python3.6/dist-packages/jupyterlab/commands.py”, line 660, in build
raise RuntimeError(msg)

[LabBuildApp] RuntimeError: npm dependencies failed to install

[LabBuildApp] Exiting application: JupyterLab

My settings:

  • Xilinx PetaLinux 2020.1 Vitis 2020.1
  • Ubuntu 18.04.4 LTS
  • PYNQ branch: master

I’m getting the same error, although I don’t get this one line:

Using Ubuntu 16.04.5 LTS (other tools are the same as @skorolcz ). Haven’t found a workaround just yet.

What board are you building for? Are you using the prebuilt Ubuntu image?

Yes, I’ve used prebuild image and after all, I’ve built the proper image. This error is the same when I am trying to install any Jupyter Lab extension. So, or I have this error during image building or in the working system.

Some internal dependency of JupyterLab has been updated to require a newer version of node than is present in the image. If you’re happy making changes to your live image rather than using the sdbuild flow you can follow the instructions below to update your node version and get JupyterLab builds up and running again.

curl -fsSL https://deb.nodesource.com/setup_12.x > setup_node.sh

edit setup_node.sh and add the following at line 222 with the similar ones

check_alt "pynqlinux"     "WFH" "Ubuntu" "bionic"

Then run

sudo bash setup_node.sh
sudo apt-get install -y nodejs

Peter

@PeterOgden

I am trying to create a Pynq image for a custom board. Having a heck of a time getting the system to build with no errors, I’ve done it once…had build errors ever since when trying to make a new image.

My biggest issue is that my SD card is on SD1. Is there a simpler way to create a custom image than running the entire SD build flow for my SoC configuration?