Installing PYNQ using Conda (Anaconda)

I have jupyter notebooks software installed on my Windows laptop using Anaconda (Conda) software.

I am using the following book:
Software Defined Radio with Zynq UltraScale + RFSoc book by Louise Crockett et al
and the RFSoC 4x2 board by Real Digital.

This book has two types of jupyter notebooks:

  1. Notebooks that do not require SoC board and
  2. Notebooks that need SoC board

I am able run the jupyter notebooks that don’t need SoC board.

But the notebooks that neeed SoC 4X2 board are giving following errors:

import pynq

ModuleNotFoundError Traceback (most recent call last)
in
----> 1 import pynq

ModuleNotFoundError: No module named ‘pynq’

How to fix above error?

I am using
Conda install pynq
command but getting following errors:

C:\Users\ssjus>conda install pynq
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  • pynq

Current channels:

To search for alternate channels that may provide the conda package you’re
looking for, navigate to

and use the search bar at the top of the page.

C:\Users\ssjus>

How to fix this error?

Thanks,

1 Like

You can download the latest PYNQ image for the RFSoC 4x2 board here:
http://www.pynq.io/board.html
This is a Ubuntu based bootable image that you burn to an SD card. PYNQ is included as part of the image.

Cathal

1 Like

Thank you for your reply.
I have SD card ubuntu burned on it.
The RFSoC 4x2 board is correctly booting and displaying IP address 192.168.3.1 on the LCD display of the board.

I am still getting Module Not Found Error: No module named ‘pynq’.

How to fix this error please?

Thanks,
SSJ

1 Like

The pynq Python package is meant for execution on Zynq All Programmable Systems on Chips (APSoCs). I don’t expect you’ll be able to execute any Python code that uses the pynq package on an ordinary computer.

If you want to install pynq on your computer anyways (e.g. for code analysis tools), it is not available through the anaconda package repository. This is why you get an error when running

conda install pynq  # this won't work

Instead, pynq is available through the Python Package Index. Assuming you have a conda environment you’re using, try running

conda activate environment-name
pip install pynq

from a terminal, where environment-name is the name of your conda environment. If you don’t have a conda environment (or don’t know what that means), just skip that command.

1 Like