Notebook: AttributeError: module 'time' has no attribute 'clock'

Created on 4 Aug 2020  路  4Comments  路  Source: jupyter/notebook

Hi,

starting JN today I see the error message "AttributeError: module 'time' has no attribute 'clock'". I learned that this module is deprecated in new Python and tried to upgrade JN but it didn't work. Can you help? Thank you in advance.

Most helpful comment

It looks like your IPython package is out of date as time.clock() was deprecated a couple of years ago and its use removed from IPython. Try upgrading your IPython: pip install --upgrade ipython and ensure you're running a version >= 7.1.0 (with 7.17.0 being most current).

All 4 comments

Could you please provide some context in which this message is displayed? Is this after starting a kernel (i.e., opening a notebook) or during startup of the server itself? Please provide the console's output as well as the output of jupyter --version. Thanks.

jupyter bug
This is the pic of my console after starting a kernel. I tried to install resources through pip but it didn't resolve the issue.

The output of jupyter --version is:
jupyter core : 4.6.3
jupyter-notebook : 6.1.1
qtconsole : not installed

I'm ready to provide further informations.

It looks like your IPython package is out of date as time.clock() was deprecated a couple of years ago and its use removed from IPython. Try upgrading your IPython: pip install --upgrade ipython and ensure you're running a version >= 7.1.0 (with 7.17.0 being most current).

Thank you, it worked!

Was this page helpful?
0 / 5 - 0 ratings