我为python构建了一个面向数据的ide:
$ 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 .
_______ ___ ______ ________ ___
|_ __ \ .' `.|_ _ `.|_ __ | .' `.
| |__) | / .-. \ | | `. \ | |_ \_|/ .-. \
| __ / | | | | | | | | | _| _ | | | |
_| | \ \_\ `-' /_| |_.' /_| |__/ |\ `-' /
|____| |___|`.___.'|______.'|________| `.___.'
''''''''''''''''''''''''''''''''''''''''''''''''''
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)火狐说内部服务器错误
发布于 2015-06-23 16:06:13
当从指向/home的终端运行时,rodeo无法运行:
jeanpat@jeanpat-WA50SHQ:~$ cd ~
jeanpat@jeanpat-WA50SHQ:~$ rodeo .UnicodeDecodeError:'ascii‘编解码器无法解码位置3的字节0xc3 :序数不在范围内(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发布于 2015-06-11 12:32:10
这真的属于评论,但我没有代表,抱歉.
但我也经历过同样的失败。如果Rodeo是通过osx上的pip安装的,并且运行了一段时间(除了raw_input()会悄悄地破坏整个系统),那么a)通过尝试更改默认文件位置来独立地破坏IPython笔记本,2)卸载并重新安装ipython,但是3)在所有这些方面,rodeo都被破坏了。我也得到了类似的错误,关于底部-right.html. with,尽管它选择了一条看起来不同的随机行,声称它无法理解ascii。(我记得,它声称被混淆的角色是“a”-真的。)
第二天它就随机回来了。我怀疑杀戮和重新启动航站楼有帮助。所以你可以试一试,作为一个开始。
https://stackoverflow.com/questions/30761242
复制相似问题