PYNQ: PYTHON PRODUCTIVITY

ImportError: cannot import name 'secure_write' when building pynq2.4 image

When I was building the pynq 2.4 image using SDx 2018.3+petalinux 2018.3+ubuntu16.04

This error occurs, I would appreciate it so much if anyone knows why…:

Traceback (most recent call last):
File “/usr/bin/jupyter-notebook”, line 11, in
load_entry_point(‘notebook==5.2.2’, ‘console_scripts’, ‘jupyter-notebook’)()
File “/usr/lib/python3/dist-packages/pkg_resources/init.py”, line 480, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “/usr/lib/python3/dist-packages/pkg_resources/init.py”, line 2693, in load_entry_point
return ep.load()
File “/usr/lib/python3/dist-packages/pkg_resources/init.py”, line 2324, in load
return self.resolve()
File “/usr/lib/python3/dist-packages/pkg_resources/init.py”, line 2330, in resolve
module = import(self.module_name, fromlist=[‘name’], level=0)
File “/usr/lib/python3/dist-packages/notebook/notebookapp.py”, line 76, in
from .services.kernels.kernelmanager import MappingKernelManager
File “/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py”, line 18, in
from jupyter_client.session import Session
File “/usr/local/lib/python3.6/dist-packages/jupyter_client/init.py”, line 6, in
from .asynchronous import AsyncKernelClient # noqa
File “/usr/local/lib/python3.6/dist-packages/jupyter_client/asynchronous/init.py”, line 1, in
from .client import AsyncKernelClient # noqa
File “/usr/local/lib/python3.6/dist-packages/jupyter_client/asynchronous/client.py”, line 8, in
from jupyter_client.client import KernelClient
File “/usr/local/lib/python3.6/dist-packages/jupyter_client/client.py”, line 20, in
from .connect import ConnectionFileMixin
File “/usr/local/lib/python3.6/dist-packages/jupyter_client/connect.py”, line 28, in
** from jupyter_core.paths import secure_write**
ImportError: cannot import name 'secure_write’

  • unmount_special
  • for fs in ‘$fss’
  • sudo umount -l /home/yz87/PYNQ/sdbuild/build/bionic.arm/proc
  • for fs in ‘$fss’
  • sudo umount -l /home/yz87/PYNQ/sdbuild/build/bionic.arm/run
  • for fs in ‘$fss’
  • sudo umount -l /home/yz87/PYNQ/sdbuild/build/bionic.arm/dev
  • sudo umount -l /home/yz87/PYNQ/sdbuild/build/bionic.arm/ccache
  • rmdir /home/yz87/PYNQ/sdbuild/build/bionic.arm/ccache
    Makefile:299: recipe for target ‘/home/yz87/PYNQ/sdbuild/build/bionic.arm.stage2.img’ failed