我为rthon构建了一个面向数据的rodeo:
$ sudo pip install rodeo -U
The directory '/home/jeanpat/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/jeanpat/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already up-to-date: rodeo in /usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: mistune in /usr/local/lib/python2.7/dist-packages (from rodeo)
Requirement already up-to-date: ipython>=3.0.0 in /usr/local/lib/python2.7/dist-packages (from rodeo)
Requirement already up-to-date: docopt in /usr/local/lib/python2.7/dist-packages (from rodeo)
Requirement already up-to-date: pyzmq>=13 in /usr/local/lib/python2.7/dist-packages (from rodeo)
Requirement already up-to-date: Flask>=0.10.1 in /usr/local/lib/python2.7/dist-packages (from rodeo)
Requirement already up-to-date: Werkzeug>=0.7 in /usr/local/lib/python2.7/dist-packages (from Flask>=0.10.1->rodeo)
Requirement already up-to-date: Jinja2>=2.4 in /usr/local/lib/python2.7/dist-packages (from Flask>=0.10.1->rodeo)
Requirement already up-to-date: itsdangerous>=0.21 in /usr/local/lib/python2.7/dist-packages (from Flask>=0.10.1->rodeo)
Requirement already up-to-date: markupsafe in /usr/local/lib/python2.7/dist-packages (from Jinja2>=2.4->Flask>=0.10.1->rodeo)
然后当从终端运行rodeo时,事情就出错了:
~$ rodeo .
_______ ___ ______ ________ ___
|_ __ \ .' `.|_ _ `.|_ __ | .' `.
| |__) | / .-. \ | | `. \ | |_ \_|/ .-. \
| __ / | | | | | | | | | _| _ | | | |
_| | \ \_\ `-' /_| |_.' /_| |__/ |\ `-' /
|____| |___|`.___.'|______.'|________| `.___.'
''''''''''''''''''''''''''''''''''''''''''''''''''
URL: http://localhost:5000/
DIRECTORY: /home/jeanpat
''''''''''''''''''''''''''''''''''''''''''''''''''
(process:13719): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
[ERROR]: Exception on / [GET]
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/local/lib/python2.7/dist-packages/rodeo/rodeo.py", line 71, in home
file_tree=file_tree, version=__version__)
File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 128, in render_template
context, ctx.app)
File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 110, in _render
rv = template.render(context)
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 969, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/rodeo/templates/index.html", line 34, in top-level template code
{% include 'bottom-right.html' %}
File "/usr/local/lib/python2.7/dist-packages/rodeo/templates/bottom-right.html", line 17, in top-level template code
<a id="file-{{ f.dirname }}" data-parnet-slug="{{ f.parentslug }}" data-dirname="{{ f.dirslug }}" href="#" class="list-group-item {{ f.parentslug }} showdir">
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3: ordinal not in range(128)
Firefox说内部服务器错误
答案 0 :(得分:0)
这真的属于评论,但我没有代表,对不起......
但我经历了完全相同的失败。如果通过pip在osx上安装Rodeo并且它工作了一段时间(除了raw_input()会悄然崩溃整个事情),然后a)通过尝试更改默认文件位置独立地破坏ipython笔记本,2)卸载并重新安装ipython但是3)不知何故,牛仔竞技在这一切中都被打破了。而且我在bottom-right.html方面也有类似的错误,虽然它选择了一个看似随意的不同线来声称它无法理解ascii in。(我记得,它声称被混淆的角色是'' ' - 认真。)
然后第二天随机回来。我怀疑杀死并重新启动终端有帮助。所以你可以尝试一下,就像一个开始。
答案 1 :(得分:0)
从指向/ home的终端运行时,rodeo无法运行:
jeanpat@jeanpat-WA50SHQ:~$ cd ~
jeanpat@jeanpat-WA50SHQ:~$ rodeo .
UnicodeDecodeError:'ascii'编解码器无法将字节0xc3解码到位 3:序数不在范围内(128)
解决方案是创建一个新目录并从中启动rodeo:
mkdir RodeoDir
cd RodeoDir/
RodeoDir$ rodeo .
_______ ___ ______ ________ ___
|_ __ \ .' `.|_ _ `.|_ __ | .' `.
| |__) | / .-. \ | | `. \ | |_ \_|/ .-. \
| __ / | | | | | | | | | _| _ | | | |
_| | \ \_\ `-' /_| |_.' /_| |__/ |\ `-' /
|____| |___|`.___.'|______.'|________| `.___.'
''''''''''''''''''''''''''''''''''''''''''''''''''
URL: http://localhost:5000/
DIRECTORY: /home/jeanpat/App/RodeoDir
''''''''''''''''''''''''''''''''''''''''''''''''''
(process:7102): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed