# PYNQ build error

**URL:** https://discuss.pynq.io/t/pynq-build-error/2691
**Category:** Support
**Created:** [May 24, 2021, 2:40pm UTC](https://discuss.pynq.io/t/pynq-build-error/2691 "2021-05-24T14:40:20Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![skorolcz](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@skorolcz](https://discuss.pynq.io/u/skorolcz)
#### Post date: [May 24, 2021, 2:40pm UTC](https://discuss.pynq.io/t/pynq-build-error/2691/1 "2021-05-24T14:40:20Z")

</div>

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 [yarn install | Yarn](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

---

<div class="post-metadata">

### Author: ![vhdlrocks](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/vhdlrocks/32/2006_2.png) [@vhdlrocks](https://discuss.pynq.io/u/vhdlrocks)
#### Post date: [June 9, 2021, 7:37pm UTC](https://discuss.pynq.io/t/pynq-build-error/2691/2 "2021-06-09T19:37:32Z")

</div>

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

> [@skorolcz](#):
>
> info There appears to be trouble with your network connection. Retrying…

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

---

<div class="post-metadata">

### Author: ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)
#### Post date: [June 10, 2021, 7:33am UTC](https://discuss.pynq.io/t/pynq-build-error/2691/3 "2021-06-10T07:33:06Z")

</div>

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

---

<div class="post-metadata">

### Author: ![skorolcz](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@skorolcz](https://discuss.pynq.io/u/skorolcz)
#### Post date: [June 10, 2021, 8:27am UTC](https://discuss.pynq.io/t/pynq-build-error/2691/4 "2021-06-10T08:27:11Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![PeterOgden](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/peterogden/32/55_2.png) [@PeterOgden](https://discuss.pynq.io/u/PeterOgden)
#### Post date: [June 10, 2021, 12:43pm UTC](https://discuss.pynq.io/t/pynq-build-error/2691/5 "2021-06-10T12:43:22Z")

</div>

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

---

<div class="post-metadata">

### Author: ![vhdlrocks](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/vhdlrocks/32/2006_2.png) [@vhdlrocks](https://discuss.pynq.io/u/vhdlrocks)
#### Post date: [June 10, 2021, 3:19pm UTC](https://discuss.pynq.io/t/pynq-build-error/2691/6 "2021-06-10T15:19:02Z")

</div>

@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?

---

<div class="post-metadata">

### Author: ![luke-avionics](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/luke-avionics/32/2302_2.png) [@luke-avionics](https://discuss.pynq.io/u/luke-avionics)
#### Post date: [August 18, 2021, 8:31am UTC](https://discuss.pynq.io/t/pynq-build-error/2691/7 "2021-08-18T08:31:52Z")

</div>

Hi skorolcz, how do you manage to build the proper image, without this npm error?

---

<div class="post-metadata">

### Author: ![skorolcz](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@skorolcz](https://discuss.pynq.io/u/skorolcz)
#### Post date: [August 18, 2021, 10:11am UTC](https://discuss.pynq.io/t/pynq-build-error/2691/8 "2021-08-18T10:11:06Z")

</div>

I’ve used the prebuild board-agnostic image to create an SD card image  
cd /sdbuild/  
make PREBUILT= BOARDS=  
images are available at [PYNQ - Python productivity for Zynq - Board](http://www.pynq.io/board.html/)  
Then when the system is ready I’ve upgraded the node

---

<div class="post-metadata">

### Author: ![skorolcz](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@skorolcz](https://discuss.pynq.io/u/skorolcz)
#### Post date: [August 18, 2021, 10:12am UTC](https://discuss.pynq.io/t/pynq-build-error/2691/9 "2021-08-18T10:12:07Z")

</div>

[https://pynq.readthedocs.io/en/latest/pynq\_sd\_card.html#using-the-prebuilt-board-agnostic-image](https://pynq.readthedocs.io/en/latest/pynq_sd_card.html#using-the-prebuilt-board-agnostic-image)

---

<div class="post-metadata">

### Author: ![luke-avionics](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/luke-avionics/32/2302_2.png) [@luke-avionics](https://discuss.pynq.io/u/luke-avionics)
#### Post date: [August 18, 2021, 3:18pm UTC](https://discuss.pynq.io/t/pynq-build-error/2691/10 "2021-08-18T15:18:59Z")

</div>

Thank you for the help!

---

<div class="post-metadata">

### Author: ![Alexander\_El-Kady](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/alexander_el-kady/32/2341_2.png) [@Alexander\_El-Kady](https://discuss.pynq.io/u/Alexander_El-Kady)
#### Post date: [September 14, 2021, 9:46am UTC](https://discuss.pynq.io/t/pynq-build-error/2691/11 "2021-09-14T09:46:58Z")

</div>

This doesn’t work for me either. Nor build, nor pre-build (even with boards dir) works.  
Can anyone from Pynq-team elaborate with the problem?  
We would like to build an image with custom .hwh files for ultra96v2.

---

<div class="post-metadata">

### Author: ![ehalep](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@ehalep](https://discuss.pynq.io/u/ehalep)
#### Post date: [September 14, 2021, 10:45am UTC](https://discuss.pynq.io/t/pynq-build-error/2691/12 "2021-09-14T10:45:11Z")

</div>

We also have purchased an Ultra96v2 board.  
We are trying to use Pynq with our custom OpenCL kernel code implemented in VITIS. We have taken VITIS xclbin output and attempted to run in on Ultra96v2 and PYNQ. However this does not work.

To that end, we are trying to build our own image of the PYNQ SD card with the sdbuild and we have reached the same problem with the following commands from the guide:  
make clean  
make BOARDDIR=$LOCAL\_ULTRA96

We have then attempted to use the prebuilt image as suggested from the previous comments with the following command:  
make PREBUILT=(path to image) BOARDS=Ultra96 BOARDDIR=$LOCAL\_ULTRA96

However that also does not compile.

Is there a flow that can work to build the PYNQ SD iso that bypasses the jupyter issue?  
Is there a way to force the update of nodejs prior to installation of jupyter?  
Is there a way to remove jupyter from the installation in the sdbuild and to install it later after the iso has been built?

Regards,  
Evangelos.

---

<div class="post-metadata">

### Author: ![ATchelet](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/atchelet/32/2439_2.png) [@ATchelet](https://discuss.pynq.io/u/ATchelet)
#### Post date: [October 12, 2021, 11:26am UTC](https://discuss.pynq.io/t/pynq-build-error/2691/13 "2021-10-12T11:26:14Z")

</div>

I face the same issue as OP while building the SD image for the ZCU102.  
I tried what @PeterOgden suggested, but the issue still happens.

My error log from /tmp/jupyterlab-debug-jon6t5dp.log is:

> [LabBuildApp] Building jupyterlab assets (build:prod)  
> [LabBuildApp] \> node /usr/local/lib/python3.6/dist-packages/jupyterlab/staging/yarn.js install --non-interactive  
> [LabBuildApp] Unknown QEMU\_IFLA\_BR type 46  
> yarn install v1.15.2  
> Unknown QEMU\_IFLA\_BR type 46  
> [1/5] Validating package.json…  
> [2/5] Resolving packages…  
> warning plotlywidget \> plotly.js \> color-rgba \> color-space \> mumath@3.3.4: Redundant dependency in your project.  
> [3/5] Fetching packages…  
> Unknown QEMU\_IFLA\_BR type 46  
> 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 [yarn install | Yarn](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

---

<div class="post-metadata">

### Author: ![at600006](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/at600006/32/3096_2.png) [@at600006](https://discuss.pynq.io/u/at600006)
#### Post date: [May 5, 2022, 6:18pm UTC](https://discuss.pynq.io/t/pynq-build-error/2691/14 "2022-05-05T18:18:44Z")

</div>

Hi skorolcz,  
I’m facing same problem with this npm error,but I try what PeterOgden’s suggestion,the error still occured.  
I think I must be doing something wrong somewhere.  
What I want to ask is: how to making changes to live image rather than using the sdbuild flow?  
Can you show me the details of how it works so I can follow it step by step.  
I use PYNQv2.5.2 download from here [https://github.com/Xilinx/PYNQ](https://github.com/Xilinx/PYNQ),to build PYNQ.img for my Eclypse-Z7 board.

My settings:

```
* Xilinx PetaLinux 2019.1 Vivado 2019.1 SDK 2019.1
* Ubuntu 18.04.6 LTS

```
