# Building wheel for pynq (setup.py) ... error

**URL:** <https://discuss.pynq.io/t/building-wheel-for-pynq-setup-py-error/6116>\
**Category:** Support\
**Created:** [September 26, 2023, 12:31pm UTC](https://discuss.pynq.io/t/building-wheel-for-pynq-setup-py-error/6116 "2023-09-26T12:31:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chenxu](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/chenxu/32/5175_2.png) [@chenxu](https://discuss.pynq.io/u/chenxu)\
**Post date:** [September 26, 2023, 12:31pm UTC](https://discuss.pynq.io/t/building-wheel-for-pynq-setup-py-error/6116/1 "2023-09-26T12:31:23Z")

</div>

I use PYNQ-2.7 & ZCU104 & vivado2020.2 & petalinux 2020.2, when build SD Card image with command " make BOARDS=ZCU104 PREBUILT=./prebuilt/focal.aarch64.2.7.0\_2021\_11\_17.tar.gz ",  
The following error messages appears :

 ![image](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/4/49efaa3c5259f69b601a3266796d7e2ebbff173c.png)

+ BOARD=ZCU104  
+ cd /home/xilinx  
+ mkdir -p jupyter\_notebooks  
+ cd pynq\_git  
+ BOARD=ZCU104  
+ PYNQ\_JUPYTER\_NOTEBOOKS=/home/xilinx/jupyter\_notebooks  
+ python3 -m pip install dist/pynq-2.7.0.tar.gz --upgrade --no-deps --no-use-pep517  
Processing ./dist/pynq-2.7.0.tar.gz  
DEPRECATION: Source distribution is being reinstalled despite an installed package having the same name and version as the installed package. pip 21.3 will remove support for this functionality. A possible replacement is use --force-reinstall. You can find discussion regarding this at [Should a local file always be re-installed on 'pip install' (with or without '--upgrade')? · Issue #8711 · pypa/pip · GitHub](https://github.com/pypa/pip/issues/8711).  
Building wheels for collected packages: pynq  
Building wheel for pynq (setup.py) … error  
ERROR: Command errored out with exit status 1:  
command: /usr/local/share/pynq-venv/bin/python3 -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-req-build-kc0fe7w2/setup.py’“'”‘; **file** =’“'”‘/tmp/pip-req-build-kc0fe7w2/setup.py’“'”‘;f = getattr(tokenize, ‘"’“‘open’”’“‘, open)( **file** ) if os.path.exists( **file** ) else io.StringIO(’”‘“‘from setuptools import setup; setup()’”’“‘);code = f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, **file** , ‘"’“‘exec’”’"‘))’ bdist\_wheel -d /tmp/pip-wheel-3gnbgzoo  
cwd: /tmp/pip-req-build-kc0fe7w2/  
Complete output (1831 lines):  
running bdist\_wheel  
running build  
running build\_py  
creating build  
creating build/lib  
creating build/lib/tests  
copying tests/mock\_ip.py → build/lib/tests  
copying tests/test\_devicetree.py → build/lib/tests  
copying tests/test\_overlay.py → build/lib/tests  
copying tests/mock\_devices.py → build/lib/tests  
copying tests/test\_mmio.py → build/lib/tests  
copying tests/test\_interrupt.py → build/lib/tests  
copying tests/test\_gpio.py → build/lib/tests  
copying tests/test\_buffer.py → build/lib/tests  
copying tests/test\_xrt.py → build/lib/tests  
copying tests/ **init**.py → build/lib/tests  
copying tests/test\_axigpio.py → build/lib/tests  
copying tests/test\_uio.py → build/lib/tests  
copying tests/helpers.py → build/lib/tests  
copying tests/test\_registers.py → build/lib/tests  
copying tests/test\_clocks.py → build/lib/tests  
copying tests/test\_bitstream.py → build/lib/tests  
creating build/lib/pynq  
copying pynq/interrupt.py → build/lib/pynq  
copying pynq/utils.py → build/lib/pynq  
copying pynq/overlay.py → build/lib/pynq  
copying pynq/mmio.py → build/lib/pynq  
copying pynq/gpio.py → build/lib/pynq  
copying pynq/ps.py → build/lib/pynq  
copying pynq/pl.py → build/lib/pynq  
copying pynq/bitstream.py → build/lib/pynq  
copying pynq/buffer.py → build/lib/pynq  
copying pynq/ **init**.py → build/lib/pynq  
copying pynq/pmbus.py → build/lib/pynq  
copying pynq/registers.py → build/lib/pynq  
copying pynq/devicetree.py → build/lib/pynq  
copying pynq/uio.py → build/lib/pynq

What cause this error, How to solve the compiling error?

---

<div class="post-metadata">

**Author:** ![kkk](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@kkk](https://discuss.pynq.io/u/kkk)\
**Post date:** [June 6, 2025, 9:43am UTC](https://discuss.pynq.io/t/building-wheel-for-pynq-setup-py-error/6116/2 "2025-06-06T09:43:54Z")

</div>

Do you have fixed this issue, I have the same question?
