Last active
September 4, 2016 20:34
-
-
Save x10an14/05ccc818e41f0f9e52c77d6b74fcae0e to your computer and use it in GitHub Desktop.
Coconut IPython error testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x10an14@x10Desktop2016:~$ python --version | |
Python 3.5.2 | |
x10an14@x10Desktop2016:~$ cd Documents/coconut/ | |
x10an14@x10Desktop2016:~/Documents/coconut$ rm -rf venv/ | |
x10an14@x10Desktop2016:~/Documents/coconut$ la | |
total 32K | |
drwxrwxr-x 2 x10an14 x10an14 4,0K sep. 4 22:14 ./ | |
drwxr-xr-x 6 x10an14 x10an14 4,0K sep. 4 21:43 ../ | |
-rw-rw-r-- 1 x10an14 x10an14 41 sep. 4 21:48 hello_world.coco | |
-rw-rw-r-- 1 x10an14 x10an14 15K sep. 4 21:48 hello_world.py | |
-rw-rw-r-- 1 x10an14 x10an14 53 sep. 4 22:08 requirements.txt | |
x10an14@x10Desktop2016:~/Documents/coconut$ virtualenv --version | |
15.0.1 | |
x10an14@x10Desktop2016:~/Documents/coconut$ virtualenv venv | |
Running virtualenv with interpreter /usr/bin/python2 | |
New python executable in /home/x10an14/Documents/coconut/venv/bin/python2 | |
Also creating executable in /home/x10an14/Documents/coconut/venv/bin/python | |
Installing setuptools, pkg_resources, pip, wheel...done. | |
x10an14@x10Desktop2016:~/Documents/coconut$ venv/bin/python --version | |
Python 2.7.12 | |
x10an14@x10Desktop2016:~/Documents/coconut$ rm -rf venv | |
x10an14@x10Desktop2016:~/Documents/coconut$ virtualenv -p python3 venv | |
Already using interpreter /usr/bin/python3 | |
Using base prefix '/usr' | |
New python executable in /home/x10an14/Documents/coconut/venv/bin/python3 | |
Also creating executable in /home/x10an14/Documents/coconut/venv/bin/python | |
Installing setuptools, pkg_resources, pip, wheel...done. | |
x10an14@x10Desktop2016:~/Documents/coconut$ venv/bin/python --version | |
Python 3.5.2 | |
x10an14@x10Desktop2016:~/Documents/coconut$ venv/bin/pip install ipython coconut | |
Collecting ipython | |
Using cached ipython-5.1.0-py3-none-any.whl | |
Collecting coconut | |
Using cached coconut-1.1.1-py2.py3-none-any.whl | |
Collecting prompt-toolkit<2.0.0,>=1.0.3 (from ipython) | |
Using cached prompt_toolkit-1.0.7-py3-none-any.whl | |
Collecting decorator (from ipython) | |
Using cached decorator-4.0.10-py2.py3-none-any.whl | |
Collecting pickleshare (from ipython) | |
Using cached pickleshare-0.7.4-py2.py3-none-any.whl | |
Collecting simplegeneric>0.8 (from ipython) | |
Collecting pexpect; sys_platform != "win32" (from ipython) | |
Using cached pexpect-4.2.1-py2.py3-none-any.whl | |
Collecting pygments (from ipython) | |
Using cached Pygments-2.1.3-py2.py3-none-any.whl | |
Requirement already satisfied (use --upgrade to upgrade): setuptools>=18.5 in ./venv/lib/python3.5/site-packages (from ipython) | |
Collecting traitlets>=4.2 (from ipython) | |
Using cached traitlets-4.2.2-py2.py3-none-any.whl | |
Collecting pyparsing==2.1.5 (from coconut) | |
Using cached pyparsing-2.1.5-py2.py3-none-any.whl | |
Collecting six>=1.9.0 (from prompt-toolkit<2.0.0,>=1.0.3->ipython) | |
Using cached six-1.10.0-py2.py3-none-any.whl | |
Collecting wcwidth (from prompt-toolkit<2.0.0,>=1.0.3->ipython) | |
Using cached wcwidth-0.1.7-py2.py3-none-any.whl | |
Collecting ptyprocess>=0.5 (from pexpect; sys_platform != "win32"->ipython) | |
Using cached ptyprocess-0.5.1-py2.py3-none-any.whl | |
Collecting ipython-genutils (from traitlets>=4.2->ipython) | |
Using cached ipython_genutils-0.1.0-py2.py3-none-any.whl | |
Installing collected packages: six, wcwidth, prompt-toolkit, decorator, pickleshare, simplegeneric, ptyprocess, pexpect, pygments, ipython-genutils, traitlets, ipython, pyparsing, coconut | |
Successfully installed coconut-1.1.1 decorator-4.0.10 ipython-5.1.0 ipython-genutils-0.1.0 pexpect-4.2.1 pickleshare-0.7.4 prompt-toolkit-1.0.7 ptyprocess-0.5.1 pygments-2.1.3 pyparsing-2.1.5 simplegeneric-0.8.1 six-1.10.0 traitlets-4.2.2 wcwidth-0.1.7 | |
x10an14@x10Desktop2016:~/Documents/coconut$ venv/bin/ipython | |
Python 3.5.2 (default, Jul 5 2016, 12:43:10) | |
Type "copyright", "credits" or "license" for more information. | |
IPython 5.1.0 -- An enhanced Interactive Python. | |
? -> Introduction and overview of IPython's features. | |
%quickref -> Quick reference. | |
help -> Python's own help system. | |
object? -> Details about 'object', use 'object??' for extra details. | |
In [1]: %load_ext coconut | |
In [2]: %coconut "test" |> print | |
test | |
In [3]: | |
Do you really want to exit ([y]/n)? | |
x10an14@x10Desktop2016:~/Documents/coconut$ venv/bin/coconut --ipython notebook | |
Traceback (most recent call last): | |
File "venv/bin/coconut", line 11, in <module> | |
sys.exit(main()) | |
File "/home/x10an14/Documents/coconut/venv/lib/python3.5/site-packages/coconut/__main__.py", line 32, in main | |
cli().start() | |
File "/home/x10an14/Documents/coconut/venv/lib/python3.5/site-packages/coconut/command.py", line 286, in start | |
self.cmd(self.commandline.parse_args()) | |
File "/home/x10an14/Documents/coconut/venv/lib/python3.5/site-packages/coconut/command.py", line 367, in cmd | |
self.start_jupyter(args.jupyter) | |
File "/home/x10an14/Documents/coconut/venv/lib/python3.5/site-packages/coconut/command.py", line 598, in start_jupyter | |
install_func(check_args) | |
File "/home/x10an14/Documents/coconut/venv/lib/python3.5/site-packages/coconut/command.py", line 592, in <lambda> | |
install_func = lambda args: subprocess.check_output(args, stderr=subprocess.STDOUT) # stdout is returned and ignored | |
File "/usr/lib/python3.5/subprocess.py", line 626, in check_output | |
**kwargs).stdout | |
File "/usr/lib/python3.5/subprocess.py", line 693, in run | |
with Popen(*popenargs, **kwargs) as process: | |
File "/usr/lib/python3.5/subprocess.py", line 947, in __init__ | |
restore_signals, start_new_session) | |
File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child | |
raise child_exception_type(errno_num, err_msg) | |
FileNotFoundError: [Errno 2] No such file or directory: 'jupyter' | |
x10an14@x10Desktop2016:~/Documents/coconut$ venv/bin/coconut --ipython console | |
Traceback (most recent call last): | |
File "venv/bin/coconut", line 11, in <module> | |
sys.exit(main()) | |
File "/home/x10an14/Documents/coconut/venv/lib/python3.5/site-packages/coconut/__main__.py", line 32, in main | |
cli().start() | |
File "/home/x10an14/Documents/coconut/venv/lib/python3.5/site-packages/coconut/command.py", line 286, in start | |
self.cmd(self.commandline.parse_args()) | |
File "/home/x10an14/Documents/coconut/venv/lib/python3.5/site-packages/coconut/command.py", line 367, in cmd | |
self.start_jupyter(args.jupyter) | |
File "/home/x10an14/Documents/coconut/venv/lib/python3.5/site-packages/coconut/command.py", line 598, in start_jupyter | |
install_func(check_args) | |
File "/home/x10an14/Documents/coconut/venv/lib/python3.5/site-packages/coconut/command.py", line 592, in <lambda> | |
install_func = lambda args: subprocess.check_output(args, stderr=subprocess.STDOUT) # stdout is returned and ignored | |
File "/usr/lib/python3.5/subprocess.py", line 626, in check_output | |
**kwargs).stdout | |
File "/usr/lib/python3.5/subprocess.py", line 693, in run | |
with Popen(*popenargs, **kwargs) as process: | |
File "/usr/lib/python3.5/subprocess.py", line 947, in __init__ | |
restore_signals, start_new_session) | |
File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child | |
raise child_exception_type(errno_num, err_msg) | |
FileNotFoundError: [Errno 2] No such file or directory: 'jupyter' | |
x10an14@x10Desktop2016:~/Documents/coconut$ venv/bin/pip freeze | |
coconut==1.1.1 | |
decorator==4.0.10 | |
ipython==5.1.0 | |
ipython-genutils==0.1.0 | |
pexpect==4.2.1 | |
pickleshare==0.7.4 | |
pkg-resources==0.0.0 | |
prompt-toolkit==1.0.7 | |
ptyprocess==0.5.1 | |
Pygments==2.1.3 | |
pyparsing==2.1.5 | |
simplegeneric==0.8.1 | |
six==1.10.0 | |
traitlets==4.2.2 | |
wcwidth==0.1.7 | |
x10an14@x10Desktop2016:~/Documents/coconut$ lsb_release -a | |
No LSB modules are available. | |
Distributor ID: Ubuntu | |
Description: Ubuntu 16.04.1 LTS | |
Release: 16.04 | |
Codename: xenial | |
x10an14@x10Desktop2016:~/Documents/coconut$ uname -a | |
Linux x10Desktop2016 4.4.0-36-generic #55-Ubuntu SMP Thu Aug 11 18:01:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux | |
x10an14@x10Desktop2016:~/Documents/coconut$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment