PYNQ: PYTHON PRODUCTIVITY

Pynq PL server error

I have made two v2.4 pynq SD cards for using the python embedded features. When I tried to check if the PL is activated or not after boot using systemctl, I got the following message.

SD Card 1:

SD Card 2:

What could be the reason that the status of activity is being showed as failed in both the cases?

Thanks in advance.

1 Like

You can use the command sudo journalctl -u pl_server.service to get the log of the process that might have more information.

1 Like

Oh my bad.

I will write out what output gets printed out by running this command and edit this post, @PeterOgden .

-- Reboot --
Nov 08 12:34:09 pynq systemd[1]: Starting PYNQ PL Server...
Nov 08 12:34:10 pynq systemd[1]: Started PYNQ PL Server.
Nov 08 12:34:14 pynq pl_server.sh[1617]: Traceback (most recent call last):
Nov 08 12:34:14 pynq pl_server.sh[1617]:   File "/usr/local/bin/start_pl_server.
Nov 08 12:34:14 pynq pl_server.sh[1617]:     load_entry_point('pynq==2.4', 'cons
Nov 08 12:34:14 pynq pl_server.sh[1617]:   File "/usr/lib/python3/dist-packages/
Nov 08 12:34:14 pynq pl_server.sh[1617]:     return get_distribution(dist).load_
Nov 08 12:34:14 pynq pl_server.sh[1617]:   File "/usr/lib/python3/dist-packages/
Nov 08 12:34:14 pynq pl_server.sh[1617]:     return ep.load()
Nov 08 12:34:14 pynq pl_server.sh[1617]:   File "/usr/lib/python3/dist-packages/
Nov 08 12:34:14 pynq pl_server.sh[1617]:     return self.resolve()
Nov 08 12:34:14 pynq pl_server.sh[1617]:   File "/usr/lib/python3/dist-packages/
Nov 08 12:34:14 pynq pl_server.sh[1617]:     module = __import__(self.module_nam
Nov 08 12:34:14 pynq pl_server.sh[1617]:   File "/usr/local/lib/python3.6/dist-p
Nov 08 12:34:14 pynq pl_server.sh[1617]:     from .gpio import GPIO
Nov 08 12:34:14 pynq pl_server.sh[1617]:   File "/usr/local/lib/python3.6/dist-p
Nov 08 12:34:14 pynq pl_server.sh[1617]:     from .ps import CPU_ARCH, ZU_ARCH,
Nov 08 12:34:14 pynq pl_server.sh[1617]:   File "/usr/local/lib/python3.6/dist-p
Nov 08 12:34:14 pynq pl_server.sh[1617]:     import numpy as np
Nov 08 12:34:14 pynq pl_server.sh[1617]: ModuleNotFoundError: No module named 'n
Nov 08 12:34:14 pynq systemd[1]: pl_server.service: Main process exited, code=ex
Nov 08 12:34:14 pynq systemd[1]: pl_server.service: Failed with result 'exit-cod

Its the same trace that is being printed since the last few boots. I know the underlying issue, it is that numpy, python 3.7 and Ubuntu 18.04 have some interlinked dependency issue. (Somewhat similar error)

My question is: is this the problem that is causing the PL server not to start or am I missing something obvious?