<div dir="ltr">Did you by any chance try using the Anaconda Python distribution?<div><br></div><div>I'm sorry you had such a hard time getting this installed.</div><div><br></div><div>It's a little hard for me to diagnose the problem as you have changed the context quite a bit. But if you were using the pip installation instructions and having trouble with the build, it's probably because I should have specified starting a new virtual env with a particular Python version to begin with.</div><div><br>Does that sound right to you? If so I'll make a ticket.</div><div><br></div><div>Again, thanks so much for your interest in this project. I'll support your work however I'm able.</div><div><br></div><div>best regards,</div><div>Seb</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 1, 2016 at 7:30 AM, Niels ten Oever <span dir="ltr"><<a href="mailto:lists@digitaldissidents.org" target="_blank">lists@digitaldissidents.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
After a lot of trying and going back and forth, reinstalling everything<br>
I needed with pip2, I found out that what the actual problem was: for<br>
4.0 and above one needs to install the notebook app seperately by doing:<br>
<br>
$ pip install jupyter.<br>
<br>
Seem to BigBang working now in a virtual machine, so if someone is going<br>
through same issues as me am happy to share an image.<br>
<br>
Cheers,<br>
<br>
Niels<br>
<div class="HOEnZb"><div class="h5"><br>
On 04/29/2016 08:28 PM, Niels ten Oever wrote:<br>
> Hi all,<br>
><br>
> I was getting several syntax errors in the notebooks and I assumed this<br>
> was because ipython was installed for Python 3.4. So I uninstalled<br>
> ipython both with apt-get and pip and installed ipython with pip2. Now<br>
> my python and ipython seem to be in sync:<br>
><br>
> $ python<br>
> Python 2.7.9 (default, Mar  1 2015, 12:57:24)<br>
> [GCC 4.9.2] on linux2<br>
> Type "help", "copyright", "credits" or "license" for more information.<br>
>>>> exit()<br>
><br>
><br>
> $ ipython<br>
> Python 2.7.9 (default, Mar  1 2015, 12:57:24)<br>
> Type "copyright", "credits" or "license" for more information.<br>
><br>
> IPython 4.2.0 -- An enhanced Interactive Python.<br>
> ?  Â  Â  Â  Â -> Introduction and overview of IPython's features.<br>
> %quickref -> Quick reference.<br>
> help  Â  Â  -> Python's own help system.<br>
> object?  Â -> Details about 'object', use 'object??' for extra details.<br>
><br>
> In [1]: exit()<br>
><br>
> but now I'm unable to start the notebooks:<br>
><br>
> $ ipython notebook examples/<br>
> [TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is<br>
> deprecated and will be removed in future versions.<br>
> [TerminalIPythonApp] WARNING | You likely want to use `jupyter notebook`<br>
> in the future<br>
> Traceback (most recent call last):<br>
>  Â File "/usr/local/bin/ipython", line 11, in <module><br>
>  Â  Â sys.exit(start_ipython())<br>
>  Â File "/usr/local/lib/python2.7/dist-packages/IPython/__init__.py",<br>
> line 119, in start_ipython<br>
>  Â  Â return launch_new_instance(argv=argv, **kwargs)<br>
>  Â File<br>
> "/usr/local/lib/python2.7/dist-packages/traitlets/config/application.py", line<br>
> 595, in launch_instance<br>
>  Â  Â app.initialize(argv)<br>
>  Â File "<decorator-gen-111>", line 2, in initialize<br>
>  Â File<br>
> "/usr/local/lib/python2.7/dist-packages/traitlets/config/application.py", line<br>
> 74, in catch_config_error<br>
>  Â  Â return method(app, *args, **kwargs)<br>
>  Â File<br>
> "/usr/local/lib/python2.7/dist-packages/IPython/terminal/ipapp.py", line<br>
> 296, in initialize<br>
>  Â  Â super(TerminalIPythonApp, self).initialize(argv)<br>
>  Â File "<decorator-gen-7>", line 2, in initialize<br>
>  Â File<br>
> "/usr/local/lib/python2.7/dist-packages/traitlets/config/application.py", line<br>
> 74, in catch_config_error<br>
>  Â  Â return method(app, *args, **kwargs)<br>
>  Â File<br>
> "/usr/local/lib/python2.7/dist-packages/IPython/core/application.py",<br>
> line 397, in initialize<br>
>  Â  Â self.parse_command_line(argv)<br>
>  Â File<br>
> "/usr/local/lib/python2.7/dist-packages/IPython/terminal/ipapp.py", line<br>
> 291, in parse_command_line<br>
>  Â  Â return super(TerminalIPythonApp, self).parse_command_line(argv)<br>
>  Â File "<decorator-gen-4>", line 2, in parse_command_line<br>
>  Â File<br>
> "/usr/local/lib/python2.7/dist-packages/traitlets/config/application.py", line<br>
> 74, in catch_config_error<br>
>  Â  Â return method(app, *args, **kwargs)<br>
>  Â File<br>
> "/usr/local/lib/python2.7/dist-packages/traitlets/config/application.py", line<br>
> 488, in parse_command_line<br>
>  Â  Â return self.initialize_subcommand(subc, subargv)<br>
>  Â File<br>
> "/usr/local/lib/python2.7/dist-packages/IPython/core/application.py",<br>
> line 207, in initialize_subcommand<br>
>  Â  Â return super(BaseIPythonApplication,<br>
> self).initialize_subcommand(subc, argv)<br>
>  Â File "<decorator-gen-3>", line 2, in initialize_subcommand<br>
>  Â File<br>
> "/usr/local/lib/python2.7/dist-packages/traitlets/config/application.py", line<br>
> 74, in catch_config_error<br>
>  Â  Â return method(app, *args, **kwargs)<br>
>  Â File<br>
> "/usr/local/lib/python2.7/dist-packages/traitlets/config/application.py", line<br>
> 419, in initialize_subcommand<br>
>  Â  Â subapp = import_item(subapp)<br>
>  Â File<br>
> "/usr/local/lib/python2.7/dist-packages/ipython_genutils/importstring.py",<br>
> line 31, in import_item<br>
>  Â  Â module = __import__(package, fromlist=[obj])<br>
> ImportError: No module named notebook.notebookapp<br>
><br>
> Any suggestions?<br>
><br>
> Best,<br>
><br>
> Niels<br>
><br>
><br>
> On 04/29/2016 07:41 PM, Niels ten Oever wrote:<br>
>> Found it (after some searching), it seems the module 'cycler' is no<br>
>> longer standard included in matploblib, can be simply installer with:<br>
>><br>
>> $ pip install cycler<br>
>><br>
>> The quest continuous.<br>
>><br>
>> Cheers,<br>
>><br>
>> Niels<br>
>><br>
>> On 04/29/2016 04:19 PM, Niels ten Oever wrote:<br>
>>> 3.<br>
>>><br>
>>> I do not get the notebooks properly running, I have tried several but I<br>
>>> think this comes back (again) to Python versions because what I get when<br>
>>> I simply run the first line (%matplotlib inline) in 'Analyze Senders'is:<br>
>>><br>
>>> [code]<br>
>>><br>
>>> ImportError  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â Traceback (most recent call last)<br>
>>> <ipython-input-1-e27d371d6baa> in <module>()<br>
>>> ----> 1 get_ipython().magic('matplotlib inline')<br>
>>><br>
>>> /usr/local/lib/python3.4/dist-packages/IPython/core/interactiveshell.py<br>
>>> in magic(self, arg_s)<br>
>>>  Â  2161  Â  Â  Â  Â magic_name, _, magic_arg_s = arg_s.partition(' ')<br>
>>>  Â  2162  Â  Â  Â  Â magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)<br>
>>> -> 2163  Â  Â  Â  Â return self.run_line_magic(magic_name, magic_arg_s)<br>
>>>  Â  2164<br>
>>>  Â  2165<br>
>>> #-------------------------------------------------------------------------<br>
>>><br>
>>> /usr/local/lib/python3.4/dist-packages/IPython/core/interactiveshell.py<br>
>>> in run_line_magic(self, magic_name, line)<br>
>>>  Â  2082  Â  Â  Â  Â  Â  Â  Â  Â kwargs['local_ns'] =<br>
>>> sys._getframe(stack_depth).f_locals<br>
>>>  Â  2083  Â  Â  Â  Â  Â  Â with self.builtin_trap:<br>
>>> -> 2084  Â  Â  Â  Â  Â  Â  Â  Â result = fn(*args,**kwargs)<br>
>>>  Â  2085  Â  Â  Â  Â  Â  Â return result<br>
>>>  Â  2086<br>
>>><br>
>>> <decorator-gen-106> in matplotlib(self, line)<br>
>>><br>
>>> /usr/local/lib/python3.4/dist-packages/IPython/core/magic.py in<br>
>>> <lambda>(f, *a, **k)<br>
>>>  Â  Â 191  Â  Â # but it's overkill for just that one bit of state.<br>
>>>  Â  Â 192  Â  Â def magic_deco(arg):<br>
>>> --> 193  Â  Â  Â  Â call = lambda f, *a, **k: f(*a, **k)<br>
>>>  Â  Â 194<br>
>>>  Â  Â 195  Â  Â  Â  Â if callable(arg):<br>
>>><br>
>>> /usr/local/lib/python3.4/dist-packages/IPython/core/magics/pylab.py in<br>
>>> matplotlib(self, line)<br>
>>>  Â  Â  98  Â  Â  Â  Â  Â  Â print("Available matplotlib backends: %s" %<br>
>>> backends_list)<br>
>>>  Â  Â  99  Â  Â  Â  Â else:<br>
>>> --> 100  Â  Â  Â  Â  Â  Â gui, backend = self.shell.enable_matplotlib(args.gui)<br>
>>>  Â  Â 101  Â  Â  Â  Â  Â  Â self._show_matplotlib_backend(args.gui, backend)<br>
>>>  Â  Â 102<br>
>>><br>
>>> /usr/local/lib/python3.4/dist-packages/IPython/core/interactiveshell.py<br>
>>> in enable_matplotlib(self, gui)<br>
>>>  Â  2937  Â  Â  Â  Â """<br>
>>>  Â  2938  Â  Â  Â  Â from IPython.core import pylabtools as pt<br>
>>> -> 2939  Â  Â  Â  Â gui, backend = pt.find_gui_and_backend(gui,<br>
>>> self.pylab_gui_select)<br>
>>>  Â  2940<br>
>>>  Â  2941  Â  Â  Â  Â if gui != 'inline':<br>
>>><br>
>>> /usr/local/lib/python3.4/dist-packages/IPython/core/pylabtools.py in<br>
>>> find_gui_and_backend(gui, gui_select)<br>
>>>  Â  Â 256  Â  Â """<br>
>>>  Â  Â 257<br>
>>> --> 258  Â  Â import matplotlib<br>
>>>  Â  Â 259<br>
>>>  Â  Â 260  Â  Â if gui and gui != 'auto':<br>
>>><br>
>>> /usr/local/lib/python3.4/dist-packages/matplotlib-1.5.1-py3.4-linux-x86_64.egg/matplotlib/__init__.py<br>
>>> in <module>()<br>
>>>  Â  Â 122 from matplotlib.cbook import is_string_like, mplDeprecation,<br>
>>> dedent, get_label<br>
>>>  Â  Â 123 from matplotlib.compat import subprocess<br>
>>> --> 124 from matplotlib.rcsetup import (defaultParams,<br>
>>>  Â  Â 125  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â validate_backend,<br>
>>>  Â  Â 126  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â cycler)<br>
>>><br>
>>> /usr/local/lib/python3.4/dist-packages/matplotlib-1.5.1-py3.4-linux-x86_64.egg/matplotlib/rcsetup.py<br>
>>> in <module>()<br>
>>>  Â  Â  32<br>
>>>  Â  Â  33 # Don't let the original cycler collide with our validating cycler<br>
>>> ---> 34 from cycler import Cycler, cycler as ccycler<br>
>>>  Â  Â  35<br>
>>>  Â  Â  36 #interactive_bk = ['gtk', 'gtkagg', 'gtkcairo', 'qt4agg',<br>
>>><br>
>>> ImportError: No module named 'cycler'<br>
>>><br>
>>> Import the BigBang modules as needed. These should be in your Python<br>
>>> environment if you've installed BigBang correctly.<br>
>>><br>
>>> [/code]<br>
>>><br>
>>> I got similar output with other notebooks. I think this is because<br>
>>> python 3.4 is being called.<br>
>>><br>
>>> I tried:<br>
>>> $ alias python=/usr/local/bin/python2.7<br>
>>> and<br>
>>> $ ipython notebook examples/<br>
>>><br>
>>> But that does not seem to work. Any suggestions on how I can make<br>
>>> ipython (or the notebooks) use python2 ?<br>
>><br>
><br>
<br>
--<br>
Niels ten Oever<br>
Head of Digital<br>
<br>
Article 19<br>
<a href="http://www.article19.org" rel="noreferrer" target="_blank">www.article19.org</a><br>
<br>
PGP fingerprint  Â  8D9F C567 BEE4 A431 56C4<br>
  Â  Â  Â  Â  Â  Â  Â  Â  Â 678B 08B5 A0F2 636D 68E9<br>
_______________________________________________<br>
BigBang-user mailing list<br>
<a href="mailto:BigBang-user@lists.sudoroom.org">BigBang-user@lists.sudoroom.org</a><br>
<a href="https://sudoroom.org/lists/listinfo/bigbang-user" rel="noreferrer" target="_blank">https://sudoroom.org/lists/listinfo/bigbang-user</a><br>
</div></div></blockquote></div><br></div>