ImportError: cannot import name 'secure_write' when launching JupyterLab

I have just installed JupyterLab in my macbook but when i try to launch i get the following error

Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.6/bin/jupyter-lab”, line 7, in
from jupyterlab.labapp import main
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/jupyterlab/”, line 15, in
from jupyter_server.serverapp import flags
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/jupyter_server/”, line 40, in
from jupyter_core.paths import secure_write
ImportError: cannot import name ‘secure_write’

here is the JupyterLab version i have installed

jupyter --version

I will appreciate your help

Do suggestions in ImportError: cannot import name secure_write · Issue #179 · jupyter/jupyter_core · GitHub help?

jupyter --version should return multiple lines can you paste all of them?