
error
文章平均质量分 60
achjiang
这个作者很懒,什么都没留下…
展开
-
error: uwsgi no python application found check your startup logs for errors
问题描述重启项目后,系统显示Internal Server Error错误查看uwsgi日志*** Starting uWSGI 2.0.18 (64bit) on [Tue Jul 7 14:35:04 2020] ***compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-39) on 06 November 2019 09:20:33os: Linux-3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16原创 2020-07-07 15:38:34 · 1576 阅读 · 0 评论 -
IOError: [Errno 40] Too many levels of symbolic links: ‘/root/sentry/bin/python2‘
问题描述在使用virtualenv创建虚拟环境时,workon查看没有相关的虚拟环境,但是再次创建后就报如下错误:[root@VM_0_6_centos ~]# virtualenv --p /usr/bin/python2 sentryRunning virtualenv with interpreter /usr/bin/python2Already using interpreter /usr/bin/python2 No LICENSE.txt / LICENSE found in so原创 2020-07-05 22:37:41 · 2053 阅读 · 0 评论 -
ERROR: Could not build wheels for xmlsec which use PEP 517 and cannot be installed directly
问题描述在安装sentry包时,系统出现如下报错信息:Building wheels for collected packages: xmlsec Building wheel for xmlsec (PEP 517) ... error ERROR: Command errored out with exit status 1: command: /root/.virtualenvs/sentryenv/bin/python /root/.virtualenvs/sentryenv/li原创 2020-07-05 22:03:32 · 11450 阅读 · 3 评论 -
error:from django.utils import six, timezone ImportError: cannot import name ‘six‘
错误描述:File "D:\workSpace_env\envs\django_01\lib\site-packages\rest_framework\serializers.py", line 26, in <module> from django.utils import six, timezoneImportError: cannot import name 'six'解决办法:six模块位置有变化,需要升级rest_framework模块。pip install --原创 2020-07-03 08:55:44 · 1437 阅读 · 0 评论 -
nginx 重启报错:nginx: [error] open() "/run/nginx.pid" failed (2: No such file or directory)
niginx重启报错,返回如下错误信息:nginx: [error] open() "/run/nginx.pid" failed (2: No such file or directory)这里主要原因是之前生成的文件,在nginx停止后被删除,这里不要使用nginx -s reload命令重启,直接启动命令执行nginx就可以,启动命令如下:service nginx start...原创 2020-05-02 16:10:44 · 555 阅读 · 2 评论 -
项目部署错误:FileNotFoundError: [Errno 2] No such file or directory: 'manage.py'
1.问题描述在服务器上部署Django项目时,在配置好虚拟环境、数据库等操作,在项目目录下执行运行服务器命令时: python3 manage.py runserver 0.0.0.0:8000报错:FileNotFoundError: [Errno 2] No such file or directory: 'manage.py'2.问题分析查询了网上的多中说法...原创 2018-09-11 09:14:08 · 3177 阅读 · 0 评论 -
阿里云Linux系统配置python3-虚拟环境-mysql --踩坑实践(Ubuntu系统转centOS7)
1. mysql安装平时使用虚拟机时,基本没有太多涉及到这样的问题。就是安装前先apt-git命令升级下sudo apt-get updatesudo apt-get install mysql-server2. 安装虚拟环境安装虚拟环境报如下错误:root@iZ2zef57ni8z6z1jo0l6flZ:/home# virtualenv django_newsR...原创 2018-09-08 16:54:02 · 3694 阅读 · 0 评论 -
error:安装pip执行`yum -y install epel-release`报错`SyntaxError: invalid syntax`
在Centos7中安装pip时,安装执行命令如下:yum -y install epel-release yum -y install python-pip pip --version 查看pip版本在执行第一步命令时,报错:[root@VM_0_6_centos bin]# yum -y install epel-relea...原创 2019-11-05 17:39:51 · 973 阅读 · 0 评论 -
Error--flask中循环导包问题
在flask程序中进行启动服务时,遇见错误:ImportError: cannot import name api遇到类似问题,在明确导入路径和导入文件正确的情况下,报ImportError错误,肯定就是循环导包问题。可以对该部分的api进行调用分析,查找循环导包问题所在语句。解决办法:对于类似情况,基于使用时再导入的原则就可以避免类似问题的出现!...原创 2019-04-14 20:57:59 · 691 阅读 · 0 评论 -
error: stat() argument 1 must be encoded string without null bytes, not str
在读取文件时,报错:image_data = image_file.read()print("image_data:", image_data)# 调用七牛云图片,返回文件名try: file_name = storage(image_data) print("file_name:", file_name)except Exception as e: current_app.lo...原创 2019-04-21 01:19:37 · 1654 阅读 · 0 评论 -
问题记录: Microsoft Visual C++ 14.0 is required. --rcssmin、rjsmin、django-compressor
在安装rcssmin、rjsmin、django-compressor等模块时,一直报如下错误:error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/在查询多种资料后,发...原创 2018-11-12 10:11:18 · 1013 阅读 · 1 评论