Unable to use JupyterLab properly

Dear all,

My RFSoC-PYNQ version is 2.7.
Me and @marioruiz have just resolved the issue with inability to connect to the board:

And now I am facing different issues:

  1. When I use a command “pynq get_noteboooks” through either PuTTy or JupyterLab terminal it gives the output: WARNING: No notebooks available, nothing can be delivered.

  2. I tried to go through the 2nd notebook from the folder getting_started on RFSoC-PYNQ, which is called “2_python_environment.ipynb”, and figured out, that the function pynq.allocate() does not work for me either

  3. Also, on this webpage - Loading an Overlay — Python productivity for Zynq (Pynq) - it is said that I can use the following code in python on the pynq:

    from pynq.overlays.base import BaseOverlay
    base_overlay = BaseOverlay(“base.bit”)

    But I get an error: ModuleNotFoundError: No module named ‘pynq.overlays.base’

I think these problems are all somehow connected. Could you please help me to solve the problem?

Hi @CrusadOr,

Can you please let us know what instructions are you following?

Also, can you please confirm which PYNQ SD card image you are using? In one post you said 3.0.1, but here you are saying 2.7.

Mario

1 Like

Dear @marioruiz,

Now I decided to try to stick to 2.7, that is correct.

These are the steps I followed:

  1. I want to go through the book available at https://www.rfsocbook.com/, in which some of the Notebooks require RFSoC-PYNQ on the board.

  2. On the 33rd page of RDF file (book) there is a link to GitHub - strath-sdr/RFSoC-Book: Companion Jupyter Notebooks for the RFSoC-Book. which says in the section "RFSoC Setup" that I need a version 2.7 or higher to use these notebooks.

  3. I used the attached in the first line of this section link to Releases · Xilinx/PYNQ · GitHub where I found [ZCU111 v2.7.0 SDCard image] in “Austin release” section.

  4. After I launched the board with PYNQ, I managed to connect to JupyterNotebooks and found “Welcome to Pynq.ipynb” notebook
    image

  5. There I found a link to PYNQ documentation: PYNQ Introduction — Python productivity for Zynq (Pynq)

  6. Where in the section “PYNQ command line interface” (PYNQ Command Line Interface — Python productivity for Zynq (Pynq)) was a command:

    pynq get-notebooks
    

    Which gives an output “No notebooks available

Same with overlay module - I found it in the “Loading an Overlay” section of this documentation.

As I understand this are basic functions of PYNQ that are not working for some reason and I do not know how to get the notebooks for the book.

Hi @CrusadOr,

Did you follow the steps in the repo to install the designs?

Mario

1 Like

I think I missed this part. Thank you!

I will text back tomorrow as soon as I figure out whether this works!

Dear @marioruiz , I followed the Notebook installation section until this step:
Execute a command in the board JupyterLab Terminal:
pip install https://github.com/strath-sdr/RFSoC-Book/archive/v1.1.0.tar.gz
Here I get the following message:

> Collecting https://github.com/strath-sdr/RFSoC-Book/archive/v1.1.0.tar.gz
>   WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffff9f85f520>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /strath-sdr/RFSoC-Book/archive/v1.1.0.tar.gz
> ...
>   WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffff9f85fc40>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /strath-sdr/RFSoC-Book/archive/v1.1.0.tar.gz
> ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /strath-sdr/RFSoC-Book/archive/v1.1.0.tar.gz (Caused by NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffff9f85fdf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
> 
> WARNING: You are using pip version 21.2.1; however, version 21.3.1 is available.
> You should consider upgrading via the '/usr/local/share/pynq-venv/bin/python3 -m pip install --upgrade pip' command.

I also tried another link: (because this is the actual location of the archive I found using my PC)

pip install https://github.com/strath-sdr/RFSoC-Book/archive/refs/tags/v1.1.0.tar.gz

But this does not work either from the board JupyterLab Terminal.
It is possible to install the notebooks form cmd on PC.

Seems like the board cannot connect to github?

Hi @CrusadOr,

Is the board able to access the Internet? It may be possible to install without access to internet, but it will take a bit of effort.

Mario

1 Like

I do not know whether it is able to access internet or not. Seems like it is not from all the above.

Dear @marioruiz ,

How should it be connected to the internet if this is needed? The Ethernet cable is plugged directly into the PC, and I am not sure about software part of RFSoC-PYNQ image

Also I figured that in cmd a command “ping 192.168.2.99” works with 0% loss, but in serial terminal with session with PYNQ on the board the command “ping 192.168.2.2” (which is IP of my PC for the board) the waiting time is infinite and after interruption it gives 100% loss, which might be an error, but I am not sure

You will have to connect the board to a router or bridge the Internet from your machine to the board. You can also try with an USB dongle and connect to WiFi, you may not want to do this while capturing the spectrum.

Mario

1 Like

Dear @marioruiz , thank you for your suggestion.

And it seems like it was right: after I connected the board to my router instead of the PC with Ethernet cable, it was able to ping google.com and, consequently, it managed to connect to github and almost started downloading the notebooks.

But there is still an issue. When I run the command from the guide:

pip install https://github.com/strath-sdr/RFSoC-Book/archive/v1.1.0.tar.gz

I get the following output:

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host=‘github.com’, port=443): Read timed out. (read timeout=15)”)’: /strath-sdr/RFSoC-Book/archive/refs/tags/v1.1.0.tar.gz

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host=‘github.com’, port=443): Read timed out. (read timeout=15)”)’: /strath-sdr/RFSoC-Book/archive/refs/tags/v1.1.0.tar.gz
ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host=‘github.com’, port=443): Max retries exceeded with url: /strath-sdr/RFSoC-Book/archive/refs/tags/v1.1.0.tar.gz (Caused by ReadTimeoutError(“HTTPSConnectionPool(host=‘github.com’, port=443): Read timed out. (read timeout=15)”))

Now it seems like the problem is that the notebooks do not download fast enough, but I am not sure. Even with extended timeout time I get the same warning:
pip install --default-timeout=100 https://github.com/strath-sdr/RFSoC-Book/archive/v1.1.0.tar.gz

I would be glad if you helped me with this last, as how I hope, step.
Thank you again!

Are you able to ping github.com? You could try to download the assets and install them manually.

1 Like

I cannot even download the corresponding archive, even though I am able to detect github and connect to it:

Hi @CrusadOr,

Is it possible that a firewall is blocking the download?

1 Like

That is possible, because this is not a private network
Still it is possible to download the archive from PC, so I think this is not the case and the problem is on the board side

I think in any case by now this problem is already out of the scope of forum discussion and this question particularly, so I will close the topic and try to solve the problem with the admin of the network. I wish you all the best and thank you for your answers, you helped me a lot!

1 Like