Trouble opening nengo-gui

When i try to use the nengo command to open the nengoGui it prints this code and does not open nengoGui:

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\Scripts\", line 33, in <module>
sys.exit(load_entry_point('nengo-gui', 'console_scripts', 'nengo')())
File "C:\ProgramData\Anaconda3\Scripts\", line 25, in 
return next(matches).load()
File "C:\ProgramData\Anaconda3\lib\importlib\", line 77, in load
module = import_module('module'))
File "C:\ProgramData\Anaconda3\lib\importlib\", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "c:\users\hallm\downloads\nengo-gui-master\nengo-gui- 
master\nengo_gui\", line 1, in <module>
from .gui import GUI, InteractiveGUI
File "c:\users\hallm\downloads\nengo-gui-master\nengo-gui-master\nengo_gui\", line 
20, in <module>
from nengo_gui.guibackend import GuiServer
File "c:\users\hallm\downloads\nengo-gui-master\nengo-gui- 
master\nengo_gui\", line 26, in <module>
File "c:\users\hallm\downloads\nengo-gui-master\nengo-gui-master\nengo_gui\", 
line 12, in <module>
import nengo
File "C:\ProgramData\Anaconda3\lib\site-packages\nengo\", line 39, in 
     from .base import Process
     File "C:\ProgramData\Anaconda3\lib\site-packages\nengo\", line 7, in <module>
     from nengo.config import SupportDefaultsMixin
     File "C:\ProgramData\Anaconda3\lib\site-packages\nengo\", line 18, in 
    from nengo.params import Default, is_param, iter_params
    File "C:\ProgramData\Anaconda3\lib\site-packages\nengo\", line 7, in 
    from nengo.rc import rc
    File "C:\ProgramData\Anaconda3\lib\site-packages\nengo\", line 67, in <module>
    import nengo.utils.paths
    File "C:\ProgramData\Anaconda3\lib\site-packages\nengo\utils\", line 14, in 
   from . import simulator
   File "C:\ProgramData\Anaconda3\lib\site-packages\nengo\utils\", line 5, in 
  from .stdlib import groupby
  File "C:\ProgramData\Anaconda3\lib\site-packages\nengo\utils\", line 256, in 
  class Timer:
  File "C:\ProgramData\Anaconda3\lib\site-packages\nengo\utils\", line 283, in 
  TIMER = time.clock if sys.platform == "win32" else time.time
  AttributeError: module 'time' has no attribute 'clock

Hi @justanotherfangirl , and welcome to the Nengo forum! :smiley:

Based on the last line in the response you provided, I think the issue could be related to the used python version ( I suspect you are using the 3.8), as it is mentioned in What’s New In Python 3.8 :

The function time.clock() has been removed, after having been deprecated since Python 3.3: use time.perf_counter() or time.process_time() instead

So it may be useful to check again the used python version, downgrade it (if it’s indeed the 3.8) and test again.

Thanks, it works perfectly now!

How did you solve it?
I am still getting the same error

Hi @pujapachchigar, and welcome to the Nengo forums. :smiley:

NengoGUI currently supports Python 3.7 and below. If you are using Python 3.8 or 3.9, you will encounter the AttributeError: module 'time' has no attribute 'clock error.

To install and use Python 3.7, I recommend using Miniconda. Once you have that installed, you can use the command:

conda create -n myenv python=3.7

to create a Python 3.7 conda environment. Once the environment is created, do:

conda activate myenv

to activate the environment, then you can install Nengo and NengoGUI by issuing the standard pip install commands. Every time you want to run Nengo, you’ll need to activate and use this Conda environment (but you only have to create it once).

1 Like

Hi @xchoo,

Yes this worked. thank you so much :slight_smile:


1 Like