Loading [MathJax]/jax/output/CommonHTML/config.js
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >open-falcon ---安装Dashboard时候报错"SSLError: The read operation timed out"

open-falcon ---安装Dashboard时候报错"SSLError: The read operation timed out"

作者头像
洗尽了浮华
发布于 2018-01-23 07:21:54
发布于 2018-01-23 07:21:54
1.1K00
代码可运行
举报
文章被收录于专栏:散尽浮华散尽浮华
运行总次数:0
代码可运行

在部署open-falcon环境过程中,安装Dashboard时候报错"SSLError: The read operation timed out"。如下:

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
[root@open dashboard]# ./env/bin/pip install -r pip_requirements.txt
Downloading/unpacking Flask==0.10.1 (from -r pip_requirements.txt (line 1))
  Downloading Flask-0.10.1.tar.gz (544kB): 544kB downloaded
  Running setup.py egg_info for package Flask
    warning: no files found matching '*' under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'docs'
    warning: no previously-included files matching '*.pyo' found under directory 'docs'
    warning: no previously-included files matching '*.pyc' found under directory 'tests'
    warning: no previously-included files matching '*.pyo' found under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'examples'
    warning: no previously-included files matching '*.pyo' found under directory 'examples'
    no previously-included directories found matching 'docs/_build'
    no previously-included directories found matching 'docs/_themes/.git'
Downloading/unpacking Jinja2==2.7.2 (from -r pip_requirements.txt (line 2))
  Downloading Jinja2-2.7.2.tar.gz (378kB): 184kB downloaded
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/data/work/open-falcon/dashboard/env/lib/python2.6/site-packages/pip/basecommand.py", line 134, in main
    status = self.run(options, args)
  File "/data/work/open-falcon/dashboard/env/lib/python2.6/site-packages/pip/commands/install.py", line 236, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/data/work/open-falcon/dashboard/env/lib/python2.6/site-packages/pip/req.py", line 1092, in prepare_files
    self.unpack_url(url, location, self.is_download)
  File "/data/work/open-falcon/dashboard/env/lib/python2.6/site-packages/pip/req.py", line 1238, in unpack_url
    retval = unpack_http_url(link, location, self.download_cache, self.download_dir)
  File "/data/work/open-falcon/dashboard/env/lib/python2.6/site-packages/pip/download.py", line 622, in unpack_http_url
    download_hash = _download_url(resp, link, temp_location)
  File "/data/work/open-falcon/dashboard/env/lib/python2.6/site-packages/pip/download.py", line 495, in _download_url
    chunk = resp.read(4096)
  File "/usr/lib64/python2.6/socket.py", line 383, in read
    data = self._sock.recv(left)
  File "/usr/lib64/python2.6/httplib.py", line 587, in read
    s = self.fp.read(amt)
  File "/usr/lib64/python2.6/socket.py", line 383, in read
    data = self._sock.recv(left)
  File "/usr/lib64/python2.6/ssl.py", line 215, in recv
    return self.read(buflen)
  File "/usr/lib64/python2.6/ssl.py", line 136, in read
    return self._sslobj.read(len)
SSLError: The read operation timed out

解决办法:在命令后面追加"-i http://pypi.doubanio.com/simple"

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
[root@open dashboard]# ./env/bin/pip install -r pip_requirements.txt -i http://pypi.doubanio.com/simple
Downloading/unpacking Flask==0.10.1 (from -r pip_requirements.txt (line 1))
  Downloading Flask-0.10.1.tar.gz (544kB): 544kB downloaded
  Running setup.py egg_info for package Flask
    warning: no files found matching '*' under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'docs'
    warning: no previously-included files matching '*.pyo' found under directory 'docs'
    warning: no previously-included files matching '*.pyc' found under directory 'tests'
    warning: no previously-included files matching '*.pyo' found under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'examples'
    warning: no previously-included files matching '*.pyo' found under directory 'examples'
    no previously-included directories found matching 'docs/_build'
    no previously-included directories found matching 'docs/_themes/.git'
Downloading/unpacking Jinja2==2.7.2 (from -r pip_requirements.txt (line 2))
  Downloading Jinja2-2.7.2.tar.gz (378kB): 378kB downloaded
  Running setup.py egg_info for package Jinja2
    warning: no files found matching '*' under directory 'custom_fixers'
    warning: no previously-included files matching '*' found under directory 'docs/_build'
    warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
    warning: no previously-included files matching '*.pyc' found under directory 'docs'
    warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
    warning: no previously-included files matching '*.pyo' found under directory 'docs'
Downloading/unpacking Werkzeug==0.9.4 (from -r pip_requirements.txt (line 3))
  Downloading Werkzeug-0.9.4.tar.gz (1.1MB): 1.1MB downloaded
  Running setup.py egg_info for package Werkzeug
    warning: no files found matching '*' under directory 'werkzeug/debug/templates'
    warning: no files found matching '*' under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'docs'
    warning: no previously-included files matching '*.pyo' found under directory 'docs'
    warning: no previously-included files matching '*.pyc' found under directory 'tests'
    warning: no previously-included files matching '*.pyo' found under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'examples'
    warning: no previously-included files matching '*.pyo' found under directory 'examples'
    no previously-included directories found matching 'docs/_build'
Downloading/unpacking gunicorn==18.0 (from -r pip_requirements.txt (line 4))
  Downloading gunicorn-18.0.tar.gz (366kB): 366kB downloaded
  Running setup.py egg_info for package gunicorn
    warning: no previously-included files matching '*.pyc' found under directory 'docs'
    warning: no previously-included files matching '*.pyo' found under directory 'docs'
    warning: no previously-included files matching '*.pyc' found under directory 'tests'
    warning: no previously-included files matching '*.pyo' found under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'examples'
    warning: no previously-included files matching '*.pyo' found under directory 'examples'
Downloading/unpacking python-dateutil==2.2 (from -r pip_requirements.txt (line 5))
  Downloading python-dateutil-2.2.tar.gz (259kB): 259kB downloaded
  Running setup.py egg_info for package python-dateutil
Downloading/unpacking requests==2.3.0 (from -r pip_requirements.txt (line 6))
  Downloading requests-2.3.0.tar.gz (429kB): 429kB downloaded
  Running setup.py egg_info for package requests
Downloading/unpacking mysql-python (from -r pip_requirements.txt (line 7))
  Downloading MySQL-python-1.2.5.zip (108kB): 108kB downloaded
  Running setup.py egg_info for package mysql-python
Downloading/unpacking itsdangerous>=0.21 (from Flask==0.10.1->-r pip_requirements.txt (line 1))
  Downloading itsdangerous-0.24.tar.gz (46kB): 46kB downloaded
  Running setup.py egg_info for package itsdangerous
    warning: no previously-included files matching '*' found under directory 'docs/_build'
Downloading/unpacking markupsafe (from Jinja2==2.7.2->-r pip_requirements.txt (line 2))
  Downloading MarkupSafe-1.0.tar.gz
  Running setup.py egg_info for package markupsafe
Downloading/unpacking six (from python-dateutil==2.2->-r pip_requirements.txt (line 5))
  Downloading six-1.10.0.tar.gz
  Running setup.py egg_info for package six
    no previously-included directories found matching 'documentation/_build'
Installing collected packages: Flask, Jinja2, Werkzeug, gunicorn, python-dateutil, requests, mysql-python, itsdangerous, markupsafe, six
  Running setup.py install for Flask
    warning: no files found matching '*' under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'docs'
    warning: no previously-included files matching '*.pyo' found under directory 'docs'
    warning: no previously-included files matching '*.pyc' found under directory 'tests'
    warning: no previously-included files matching '*.pyo' found under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'examples'
    warning: no previously-included files matching '*.pyo' found under directory 'examples'
    no previously-included directories found matching 'docs/_build'
    no previously-included directories found matching 'docs/_themes/.git'
  Running setup.py install for Jinja2
    warning: no files found matching '*' under directory 'custom_fixers'
    warning: no previously-included files matching '*' found under directory 'docs/_build'
    warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
    warning: no previously-included files matching '*.pyc' found under directory 'docs'
    warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
    warning: no previously-included files matching '*.pyo' found under directory 'docs'
  Running setup.py install for Werkzeug
    warning: no files found matching '*' under directory 'werkzeug/debug/templates'
    warning: no files found matching '*' under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'docs'
    warning: no previously-included files matching '*.pyo' found under directory 'docs'
    warning: no previously-included files matching '*.pyc' found under directory 'tests'
    warning: no previously-included files matching '*.pyo' found under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'examples'
    warning: no previously-included files matching '*.pyo' found under directory 'examples'
    no previously-included directories found matching 'docs/_build'
  Running setup.py install for gunicorn
    warning: no previously-included files matching '*.pyc' found under directory 'docs'
    warning: no previously-included files matching '*.pyo' found under directory 'docs'
    warning: no previously-included files matching '*.pyc' found under directory 'tests'
    warning: no previously-included files matching '*.pyo' found under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'examples'
    warning: no previously-included files matching '*.pyo' found under directory 'examples'
    Installing gunicorn_paster script to /data/work/open-falcon/dashboard/env/bin
    Installing gunicorn script to /data/work/open-falcon/dashboard/env/bin
    Installing gunicorn_django script to /data/work/open-falcon/dashboard/env/bin
  Running setup.py install for python-dateutil
  Running setup.py install for requests
  Running setup.py install for mysql-python
    building '_mysql' extension
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/include/mysql -I/usr/include/python2.6 -c _mysql.c -o build/temp.linux-x86_64-2.6/_mysql.o -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -DUNIV_LINUX -DUNIV_LINUX
    In file included from /usr/include/mysql/my_config.h:14,
                     from _mysql.c:44:
    /usr/include/mysql/my_config_x86_64.h:1082:1: warning: "HAVE_WCSCOLL" redefined
    In file included from /usr/include/python2.6/pyconfig.h:6,
                     from /usr/include/python2.6/Python.h:8,
                     from _mysql.c:29:
    /usr/include/python2.6/pyconfig-64.h:808:1: warning: this is the location of the previous definition
    gcc -pthread -shared build/temp.linux-x86_64-2.6/_mysql.o -L/usr/lib64/mysql -L/usr/lib64 -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -lssl -lcrypto -lpython2.6 -o build/lib.linux-x86_64-2.6/_mysql.so
  Running setup.py install for itsdangerous
    warning: no previously-included files matching '*' found under directory 'docs/_build'
  Running setup.py install for markupsafe
    building 'markupsafe._speedups' extension
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.6 -c markupsafe/_speedups.c -o build/temp.linux-x86_64-2.6/markupsafe/_speedups.o
    gcc -pthread -shared build/temp.linux-x86_64-2.6/markupsafe/_speedups.o -L/usr/lib64 -lpython2.6 -o build/lib.linux-x86_64-2.6/markupsafe/_speedups.so
  Running setup.py install for six
    no previously-included directories found matching 'documentation/_build'
Successfully installed Flask Jinja2 Werkzeug gunicorn python-dateutil requests mysql-python itsdangerous markupsafe six
Cleaning up...
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2017-08-13 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
暂无评论
推荐阅读
编辑精选文章
换一批
安装python的easy_instal
安装地址: https://pypi.python.org/pypi/setuptools#id9
py3study
2020/01/07
6540
【Python报错】有效解决pip3安装matplotlib!
问题 使用 pip3 install matplotlib 报错: Running setup.py bdist_wheel for pillow ... error Complete output from command /usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-prbp5o66/pillow/setup.py';f=getattr(tokenize, 'open', open)(__
Lokinli
2023/03/09
1.1K0
CentOS 7 配置Python语言开发环境
shaonbean
2018/01/02
8290
CentOS 7 配置Python语言开发环境
windows平台python 2.7环境编译安装zbarlight
类似于前一篇博文,http://www.cnblogs.com/zhongtang/p/7148082.html中描述的情况。
黯然销魂掌
2018/09/27
1.2K0
linux 服务器安装s3cmd
yum install python-devel python-setuptools -y easy_install pip
py3study
2020/01/08
2K0
python setuptools安装与
Python本身自带了一套工具distutils ,用于发布 Python 应用程序。但 distutils 没有提供定义其它依赖包的功能,setuptools 的真正优点并不在于实现distutils 所能实现的功能——尽管它的确增强了distutils的功能并简化了setup.py 脚本中的内容。setuptools 最大的优势是它在包管理能力方面的增强。它可以使用一种更加透明的方法来查找、下载并安装依赖包;并可以在一个包的多个版本中自由进行切换,这些版本都安装在同一个系统上;也可以声明对某个包的特定版本的需求;还可以只使用一个简单的命令就能更新到某个包的最新版本。 简单来说,Python setuptools可以看做是增强版的distutils,用来管理Python的各种包。
py3study
2020/01/10
2.8K0
pip3 install mysqlclient 报错 “/bin/sh: 1: mysql_config: not found”的解决方法
报错信息 [root@localhost hc_BgpServer]# pip3 install mysqlclient Collecting mysqlclient Downloading https://files.pythonhosted.org/packages/f4/f1/3bb6f64ca7a429729413e6556b7ba5976df06019a5245a43d36032f1061e/mysqlclient-1.4.2.post1.tar.gz (85kB) 100% |██
一朵灼灼华
2022/08/05
1.2K0
Tungsten Fabric实战:基于K8s的部署踩坑
Tungsten Fabric(原名opencontrail),提供了可以与编排器(openstack/k8s/vCenter)协同工作的controller,和部署在计算节点/node上的vRouter受其管控,替代原有的linux-bridge/ovs进行通信。
Tungsten Fabric
2020/06/08
2.2K0
Tungsten Fabric实战:基于K8s的部署踩坑
Python: 安装lz4-0.10.1痛苦经历
因为项目的需求,要 lz4.0.10.1 的,因为本机已经有一个 1.1.0 版本的,所以必须先卸掉,然后我差点没疯了(手动微笑)
Lin_R
2018/10/22
3.7K0
Flask第三篇——安装Flask
再次和大家强调一下,如果你想工资有所突破,光靠那些测试知识船长个人认为局限还是比较大的,学点开发的知识对你的帮助很大。船长会坚持写下去,一起学习的机会只有这么一次,多余的话我就不说了。 ---- 现在我们来安装Flask: Windows系统安装Flask 如果你的系统是Windows,那安装起来非常方便——pip install flask Mac系统安装Flask Mac安装Flask一般为了不影响Python本身的功能会先下载一个虚拟环境,命令如下: 第一步:macbookdeMBP
孟船长
2018/05/18
1.2K0
drf 启动报错:AssertionError: `coreapi` must be installed for schema support.
AssertionError: `coreapi` must be installed for schema support.
卓越笔记
2023/02/18
8850
CentOS 7 安装Django
版权声明:本文为木偶人shaon原创文章,转载请注明原文地址,非常感谢。 https://blog.csdn.net/wh211212/article/details/52992413
shaonbean
2019/05/26
1.4K0
centos7.6安装psycopg2
如果有下面的异常信息,则先安装postgresql-devel* yum install postgresql-devel* 再安装 pip3 install psycopg2 异常: Collecting psycopg2 Using cached psycopg2-2.8.6.tar.gz (383 kB) ERROR: Command errored out with exit status 1: command: /usr/local/python3/bin/python3.8
李玺
2021/11/22
6930
【Python】安装MySQL-pyth
[root@wode006 tools]# wget https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.5.zip
py3study
2020/01/06
5970
kali linux Python 黑客编程1 开发环境
初始化 为什么要选择Python? Python作为目前Linux系统下最流行的编程语言之一,对于安全工作者的作用可以和C++相提并论。Python提供了丰富的库供调用,丰富的第三方扩展模块。在网络应用,文本解析方面,Python编程有着其他语言无可比拟的优势。同时Python也是面向对象并且跨平台的语言,可以在linux/Unix、OSX、windows上无障碍运行。 1.1 查看PYTHON版本信息 Kali Linux默认已经安装了Python运行环境,运行下面的命令,可以查看当前Python版本。
用户1631416
2018/04/11
4.3K0
kali linux Python 黑客编程1 开发环境
python安装、数据类型和变量
2018.06.06 1.1为什么要学习python 学习方法: 边看边做不能只看不做 笔记要记录详细
py3study
2020/01/06
6590
python安装、数据类型和变量
【Python基础】08、Python模
 可以将代码量较大的程序分割成多个有组织的、彼此独立但又能互相交互的代码片段,这些自我包含的有组织的代码段就是模块
py3study
2020/01/06
1.9K0
Linux中部署自动化运维工具ansible
ansible是新出现的自动化运维工具,基于Python开发,集合了众多运维工具(puppet、chef、func、fabric)的优点,实现了批量系统配置、批量程序部署、批量运行命令等功能。
会长君
2023/04/25
1.7K0
Ubuntu安装Python模块时的报错
在安装Python的psutil模块时,报“error: command 'x86_64-linux-gnu-gcc' failed with exit status 1”的错误,系统提示缺少Python的头文件,那就是说系统没有安装python的开发包,安装之就行了。
py3study
2020/01/10
2.2K0
python文件类型
查看系统中的python版本,如系统中没有python可以到 python.org 网站下载python,支持linux、windows、macos系统。下文可以看到系统已经安装过了python2.7版本。
嘻哈记
2021/03/20
1K0
相关推荐
安装python的easy_instal
更多 >
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档