Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some deprecated code and IPythonViz import error #1

Open
KeremKurban opened this issue Nov 29, 2019 · 1 comment
Open

Some deprecated code and IPythonViz import error #1

KeremKurban opened this issue Nov 29, 2019 · 1 comment

Comments

@KeremKurban
Copy link

KeremKurban commented Nov 29, 2019

Been trying to run the notebook but some arguments seem to be deprecated
(i.e. nengo.PES(1e-3, **pre_synapse**=slow_tau) ) otherwise it does not work)

But could not solve the next issue:

from nengo_gui.ipython import IPythonViz
IPythonViz(model,'configs/default.py.cfg')

out:
ModuleNotFoundError: No module named 'nengo.utils.compat'

Full error:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-5-da807a1afc03> in <module>
----> 1 from nengo_gui.jupyter import IPythonViz
      2 IPythonViz(model,'configs/default.py.cfg')

~/anaconda3/lib/python3.7/site-packages/nengo_gui/__init__.py in <module>
----> 1 from .gui import GUI, InteractiveGUI
      2 from .viz import Viz   # deprecated
      3 from .version import version as __version__
      4 from .namefinder import NameFinder
      5 from .main import main, old_main

~/anaconda3/lib/python3.7/site-packages/nengo_gui/gui.py in <module>
     18 
     19 import nengo_gui
---> 20 from nengo_gui.guibackend import GuiServer
     21 
     22 

~/anaconda3/lib/python3.7/site-packages/nengo_gui/guibackend.py in <module>
     23 from nengo_gui._vendor.cookies import Cookie
     24 from nengo_gui.completion import get_completions
---> 25 import nengo_gui.exec_env
     26 import nengo_gui.page
     27 from nengo_gui import server

~/anaconda3/lib/python3.7/site-packages/nengo_gui/exec_env.py in <module>
      5 import traceback
      6 import sys
----> 7 from nengo.utils.compat import StringIO
      8 
      9 

ModuleNotFoundError: No module named 'nengo.utils.compat'
@pblouw
Copy link
Owner

pblouw commented Nov 29, 2019

Hi, thanks for letting me know! This notebook hasn't been updated in a while, and there's been a new major release of Nengo in the meantime. So, to provide a quick solution to getting it running, I've included a conda environment file here that you can use to include all necessary dependencies. Let me know if you run into any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants