Giter Club home page Giter Club logo

pcap-analyzer's People

Contributors

rouzip avatar trim21 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pcap-analyzer's Issues

Ubuntu18,20环境配置问题

Ubuntu18,20下数据分析时总是出问题。
有用过Ubuntu18,20的朋友吗?排查了一下感觉可能是软件包的版本问题?
请问您的环境配置,每个软件包的版本包括python的版本是多少啊?
还有scapy库可能也有些问题,不知道装没装全?
希望有实验成功的朋友来解答一下疑惑,或者作者@HatBoy朋友能帮忙解答一下。

Initial Update

The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.

gunicorn -c deploy_config.py run:app 报错

您好,
环境python3.5+Ubuntu1604
按照文档说明使用pip3 install scapy-python3命令安装scapy
其余部分按文档安装好后,执行gunicorn -c deploy_config.py run:app 报错:
Exception:
PIP package scapy-python3 used to provide scapy3k, which was a fork from scapy implementing python3 compatibility since 2016. This package was included in some of the Linux distros under name of python3-scapy. Starting from scapy version 2.4 (released in March, 2018) mainstream scapy supports python3. To reduce any confusion scapy3k was renamed to kamene.
You should use either pip package kamene for scapy3k (see http://github.com/phaethon/kamene for differences in use) or mainstream scapy (pip package scapy, http://github.com/secdev/scapy).
请教一下该如何解决

gunicorn error

[2016-12-07 15:11:43 +0000] [29478] [DEBUG] Current configuration:
secure_scheme_headers: {'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on'}
proxy_protocol: False
worker_connections: 1000
statsd_host: None
max_requests_jitter: 0
post_fork: <function post_fork at 0x7f8337caa938>
pythonpath: None
enable_stdio_inheritance: False
worker_class: sync
ssl_version: 3
suppress_ragged_eofs: True
syslog: False
syslog_facility: user
when_ready: <function when_ready at 0x7f8337caa668>
pre_fork: <function pre_fork at 0x7f8337caa7d0>
cert_reqs: 0
preload_app: False
keepalive: 2
accesslog: None
group: 0
graceful_timeout: 30
do_handshake_on_connect: False
spew: False
workers: 1
proc_name: gunicorn.pid
sendfile: None
pidfile: /var/log/gunicorn/debug.log
umask: 0
on_reload: <function on_reload at 0x7f8337caa500>
pre_exec: <function pre_exec at 0x7f8337caaed8>
worker_tmp_dir: None
post_worker_init: <function post_worker_init at 0x7f8337caaaa0>
limit_request_fields: 100
on_exit: <function on_exit at 0x7f8337cad5f0>
config: deploy_config.py
logconfig: None
check_config: False
statsd_prefix:
proxy_allow_ips: ['127.0.0.1']
pre_request: <function pre_request at 0x7f8337cad0c8>
post_request: <function post_request at 0x7f8337cad1b8>
user: 0
forwarded_allow_ips: ['127.0.0.1']
worker_int: <function worker_int at 0x7f8337caac08>
threads: 1
max_requests: 0
limit_request_line: 4094
access_log_format: %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"
certfile: None
worker_exit: <function worker_exit at 0x7f8337cad320>
chdir: /home/ddos/Downloads/Pcap-Analyzer
paste: None
default_proc_name: run:
errorlog: -
loglevel: debug
capture_output: False
syslog_addr: udp://localhost:514
syslog_prefix: None
daemon: False
ciphers: TLSv1
on_starting: <function on_starting at 0x7f8337caa398>
worker_abort: <function worker_abort at 0x7f8337caad70>
bind: ['0.0.0.0:8000']
raw_env: []
reload: False
limit_request_field_size: 8190
nworkers_changed: <function nworkers_changed at 0x7f8337cad488>
timeout: 30
ca_certs: None
django_settings: None
tmp_upload_dir: None
keyfile: None
backlog: 2048
logger_class: gunicorn.glogging.Logger
[2016-12-07 15:11:43 +0000] [29478] [INFO] Starting gunicorn 19.6.0

Error: /var/log/gunicorn doesn't exist. Can't create pidfile.

查看数据包详情报错-这是什么原因导致的?

上传文件后,进入基本信息,然后点击单条数据解析包详情
错误信息: File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyx/text.py", line 1156, in do_start
self.popen = config.Popen(cmd, stdin=config.PIPE, stdout=config.PIPE, stderr=config.STDOUT, bufsize=0)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyx/config.py", line 190, in Popen
return subprocess.Popen(cmd, *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 756, in init
restore_signals, start_new_session)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 1499, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'tex': 'tex'

该功能必须连接互联网,请连接互联网再试!

访问地图的时候提示"该功能必须连接互联网,请连接互联网再试!",但是我本地能上网呀
还有就是File "/usr/local/lib/python2.7/site-packages/werkzeug/serving.py", line 200, in execute
write(data)
File "/usr/local/lib/python2.7/site-packages/werkzeug/serving.py", line 165, in write
self.send_response(int(code), msg)
File "/usr/local/lib/python2.7/site-packages/werkzeug/serving.py", line 276, in send_response
self.wfile.write(hdr.encode('ascii'))
IOError: [Errno 104] Connection reset by peer
什么问题

上传20多兆的文件后,页面卡住点不开?

ARNING: Unless called manually, this could indicate deprecated use. Should be changed to bytes(self)
WARNING: more Unless called manually, this could indicate deprecated use. Should be changed to bytes(self)
WARNING: Unless called manually, this could indicate deprecated use. Should be changed to bytes(self)
WARNING: Unless called manually, this could indicate deprecated use. Should be changed to bytes(self)
WARNING: more Unless called manually, this could indicate deprecated use. Should be changed to bytes(self)

gunicorn启动reader.py报错SyntaxError: invalid syntax

[2020-11-24 21:25:42 +0800] [23931] [DEBUG] Current configuration:
preload_app: False
reuse_port: False
capture_output: False
statsd_host: None
secure_scheme_headers: {'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-SSL': 'on', 'X-FORWARDED-PROTO': 'https'}
syslog_prefix: None
max_requests_jitter: 0
pre_fork: <function Prefork.pre_fork at 0x7f306380b158>
proxy_allow_ips: ['127.0.0.1']
limit_request_fields: 100
strip_header_spaces: False
max_requests: 0
graceful_timeout: 30
proc_name: gunicorn.pid
paste: None
limit_request_line: 4094
post_worker_init: <function PostWorkerInit.post_worker_init at 0x7f306380b378>
daemon: False
when_ready: <function WhenReady.when_ready at 0x7f306380b048>
pre_exec: <function PreExec.pre_exec at 0x7f306380b6a8>
accesslog: None
disable_redirect_access_to_syslog: False
errorlog: -
pidfile: /var/log/gunicorn/debug.log
forwarded_allow_ips: ['127.0.0.1']
access_log_format: %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"
logconfig_dict: {}
syslog_addr: udp://localhost:514
enable_stdio_inheritance: False
config: deploy_config.py
dogstatsd_tags:
sendfile: None
logger_class: gunicorn.glogging.Logger
post_fork: <function Postfork.post_fork at 0x7f306380b268>
pre_request: <function PreRequest.pre_request at 0x7f306380b7b8>
spew: False
nworkers_changed: <function NumWorkersChanged.nworkers_changed at 0x7f306380bb70>
chdir: /root/Code/Pcap-Analyzer
worker_tmp_dir: None
user: 0
group: 0
certfile: None
child_exit: <function ChildExit.child_exit at 0x7f306380b950>
worker_exit: <function WorkerExit.worker_exit at 0x7f306380ba60>
threads: 1
limit_request_field_size: 8190
timeout: 30
syslog: False
keepalive: 2
worker_int: <function WorkerInt.worker_int at 0x7f306380b488>
reload: False
worker_abort: <function WorkerAbort.worker_abort at 0x7f306380b598>
do_handshake_on_connect: False
backlog: 2048
ssl_version: 2
ca_certs: None
worker_connections: 1000
reload_extra_files: []
check_config: False
worker_class: sync
logconfig: None
statsd_prefix:
suppress_ragged_eofs: True
raw_env: []
keyfile: None
default_proc_name: run:app
syslog_facility: user
umask: 0
initgroups: False
tmp_upload_dir: None
pythonpath: None
on_exit: <function OnExit.on_exit at 0x7f306380bc80>
raw_paste_global_conf: []
bind: ['0.0.0.0:8000']
cert_reqs: 0
on_starting: <function OnStarting.on_starting at 0x7f3063cfdd90>
on_reload: <function OnReload.on_reload at 0x7f3063cfdea0>
post_request: <function PostRequest.post_request at 0x7f306380b840>
workers: 1
loglevel: debug
proxy_protocol: False
ciphers: None
reload_engine: auto
[2020-11-24 21:25:42 +0800] [23931] [INFO] Starting gunicorn 20.0.4
[2020-11-24 21:25:42 +0800] [23931] [DEBUG] Arbiter booted
[2020-11-24 21:25:42 +0800] [23931] [INFO] Listening at: http://0.0.0.0:8000 (23931)
[2020-11-24 21:25:42 +0800] [23931] [INFO] Using worker: sync
[2020-11-24 21:25:42 +0800] [23934] [INFO] Booting worker with pid: 23934
[2020-11-24 21:25:42 +0800] [23931] [DEBUG] 1 workers
[2020-11-24 21:25:42 +0800] [23934] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 119, in init_process
self.load_wsgi()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 144, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 49, in load
return self.load_wsgiapp()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python3.5/dist-packages/gunicorn/util.py", line 358, in import_app
mod = importlib.import_module(module)
File "/usr/lib/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "", line 665, in exec_module
File "", line 222, in _call_with_frames_removed
File "/root/Code/Pcap-Analyzer/run.py", line 4, in
from app import app
File "/root/Code/Pcap-Analyzer/app/init.py", line 11, in
from app import views
File "/root/Code/Pcap-Analyzer/app/views.py", line 12, in
from .utils.ipmap_tools import getmyip, get_ipmap, get_geo
File "/root/Code/Pcap-Analyzer/app/utils/ipmap_tools.py", line 7, in
import geoip2.database
File "/usr/local/lib/python3.5/dist-packages/geoip2/database.py", line 9, in
import maxminddb
File "/usr/local/lib/python3.5/dist-packages/maxminddb/init.py", line 5, in
import maxminddb.reader
File "/usr/local/lib/python3.5/dist-packages/maxminddb/reader.py", line 36
_buffer: Union[bytes, FileBuffer, "mmap.mmap"]
^
SyntaxError: invalid syntax
[2020-11-24 21:25:42 +0800] [23934] [INFO] Worker exiting (pid: 23934)
[2020-11-24 21:25:42 +0800] [23931] [INFO] Shutting down: Master
[2020-11-24 21:25:42 +0800] [23931] [INFO] Reason: Worker failed to boot.

/var/log/gunicorn doesn't exist. Can't create pidfile.

[2019-09-22 20:11:51 +0800] [2670] [DEBUG] Current configuration:
pre_fork: <function Prefork.pre_fork at 0x7f59867499d8>
syslog: False
reuse_port: False
daemon: False
pidfile: /var/log/gunicorn/debug.log
proxy_allow_ips: ['127.0.0.1']
disable_redirect_access_to_syslog: False
secure_scheme_headers: {'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on', 'X-FORWARDED-PROTOCOL': 'ssl'}
on_reload: <function OnReload.on_reload at 0x7f59867497b8>
child_exit: <function ChildExit.child_exit at 0x7f598625b268>
loglevel: debug
limit_request_fields: 100
reload_extra_files: []
ssl_version: 2
reload_engine: auto
check_config: False
raw_env: []
worker_tmp_dir: None
user: 1000
proxy_protocol: False
logconfig: None
workers: 1
worker_class: sync
preload_app: False
post_fork: <function Postfork.post_fork at 0x7f5986749ae8>
config: deploy_config.py
certfile: None
enable_stdio_inheritance: False
initgroups: False
tmp_upload_dir: None
do_handshake_on_connect: False
ciphers: TLSv1
bind: ['0.0.0.0:8000']
statsd_prefix:
pythonpath: None
worker_connections: 1000
max_requests_jitter: 0
timeout: 30
spew: False
nworkers_changed: <function NumWorkersChanged.nworkers_changed at 0x7f598625b488>
chdir: /home/shipeng/Pcap-Analyzer-master
paste: None
worker_exit: <function WorkerExit.worker_exit at 0x7f598625b378>
on_exit: <function OnExit.on_exit at 0x7f598625b598>
accesslog: None
capture_output: False
logconfig_dict: {}
syslog_prefix: None
on_starting: <function OnStarting.on_starting at 0x7f59867496a8>
proc_name: gunicorn.pid
worker_abort: <function WorkerAbort.worker_abort at 0x7f5986749e18>
syslog_facility: user
pre_request: <function PreRequest.pre_request at 0x7f598625b0d0>
backlog: 2048
reload: False
max_requests: 0
graceful_timeout: 30
pre_exec: <function PreExec.pre_exec at 0x7f5986749f28>
access_log_format: %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"
logger_class: gunicorn.glogging.Logger
syslog_addr: udp://localhost:514
statsd_host: None
keyfile: None
forwarded_allow_ips: ['127.0.0.1']
cert_reqs: 0
default_proc_name: run:app
sendfile: None
keepalive: 2
errorlog: -
when_ready: <function WhenReady.when_ready at 0x7f59867498c8>
worker_int: <function WorkerInt.worker_int at 0x7f5986749d08>
umask: 0
ca_certs: None
suppress_ragged_eofs: True
limit_request_line: 4094
post_worker_init: <function PostWorkerInit.post_worker_init at 0x7f5986749bf8>
group: 1000
limit_request_field_size: 8190
post_request: <function PostRequest.post_request at 0x7f598625b158>
threads: 1
raw_paste_global_conf: []
[2019-09-22 20:11:51 +0800] [2670] [INFO] Starting gunicorn 19.9.0

Error: /var/log/gunicorn doesn't exist. Can't create pidfile.

basedata中无法正常的过滤

无法从forms.ProtoFilter中获取到网页中的filter_type 和value. 测试用request.form['filter_type']和request.form['value']分别获取的值!不知道会不会存在bug

# filter = ProtoFilter()
# # filter_type = filter.filter_type.data
# # print(filter_type)
# # value = filter.value.data
# filter_type=request.files('filter_type')
# value = request.files("values")
if request.method=='POST':
filter_type=request.form['filter_type']
value=request.form['value']
else:
filter_type=''
value=''
没有使用Forms中的ProtoFilter,在forms中注释掉了

网站能在本机打开,但是上传文件会提示“上传错误,错误信息:[Errno 2] No such file or directory:xxxxxx”

系统是macOS,Python3.7,依赖都已经装好。
目前是可以本机运行,但是在选择数据包的时候,无法上传。无论是我自己的数据包,还是项目本身里面提供的案例数据包。
在运行的时候,会提示:
FlaskWTFDeprecationWarning: "flask_wtf.Form" has been renamed to "FlaskForm" and will be removed in 1.0. upload = Upload()这个warning。

额外一点:

  1. 关于scapy的一些导入,from scapy.all import * 这个没用,until下的几个文件会报错,需要具体的导入,比如:
    from scapy.layers.dns import DNS
    from scapy.layers.inet import IP, TCP, UDP, ICMP
    from scapy.layers.inet6 import IPv6
    from scapy.layers.l2 import ARP

望解答回复,谢谢🙏️。

english version

Do you have a english version for the tool (instructions + interface)?

运行命令gunicorn -c deploy_config.py run:app 报错

root@kali:~/Pcap-Analyzer-master# gunicorn -c deploy_config.py run:app
[2017-02-21 10:37:46 +0000] [1843] [DEBUG] Current configuration:
secure_scheme_headers: {'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on'}
proxy_protocol: False
worker_connections: 1000
statsd_host: None
max_requests_jitter: 0
post_fork: <function post_fork at 0x7ffb27c2cb18>
pythonpath: None
enable_stdio_inheritance: False
worker_class: sync
ssl_version: 3
suppress_ragged_eofs: True
syslog: False
syslog_facility: user
when_ready: <function when_ready at 0x7ffb27c2c848>
pre_fork: <function pre_fork at 0x7ffb27c2c9b0>
cert_reqs: 0
preload_app: False
keepalive: 2
accesslog: None
group: 0
graceful_timeout: 30
do_handshake_on_connect: False
spew: False
workers: 1
proc_name: gunicorn.pid
sendfile: None
pidfile: /var/log/gunicorn/debug.log
umask: 0
on_reload: <function on_reload at 0x7ffb27c2c6e0>
pre_exec: <function pre_exec at 0x7ffb27c34140>
worker_tmp_dir: None
post_worker_init: <function post_worker_init at 0x7ffb27c2cc80>
limit_request_fields: 100
on_exit: <function on_exit at 0x7ffb27c347d0>
config: deploy_config.py
logconfig: None
check_config: False
statsd_prefix:
proxy_allow_ips: ['127.0.0.1']
pre_request: <function pre_request at 0x7ffb27c342a8>
post_request: <function post_request at 0x7ffb27c34398>
user: 0
forwarded_allow_ips: ['127.0.0.1']
worker_int: <function worker_int at 0x7ffb27c2cde8>
threads: 1
max_requests: 0
limit_request_line: 4094
access_log_format: %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"
certfile: None
worker_exit: <function worker_exit at 0x7ffb27c34500>
chdir: /root/Pcap-Analyzer-master
paste: None
default_proc_name: run:app
errorlog: -
loglevel: debug
capture_output: False
syslog_addr: udp://localhost:514
syslog_prefix: None
daemon: False
ciphers: TLSv1
on_starting: <function on_starting at 0x7ffb27c2c578>
worker_abort: <function worker_abort at 0x7ffb27c2cf50>
bind: ['0.0.0.0:8000']
raw_env: []
reload: False
limit_request_field_size: 8190
nworkers_changed: <function nworkers_changed at 0x7ffb27c34668>
timeout: 30
ca_certs: None
django_settings: None
tmp_upload_dir: None
keyfile: None
backlog: 2048
logger_class: gunicorn.glogging.Logger
[2017-02-21 10:37:46 +0000] [1843] [INFO] Starting gunicorn 19.6.0
[2017-02-21 10:37:46 +0000] [1843] [DEBUG] Arbiter booted
[2017-02-21 10:37:46 +0000] [1843] [INFO] Listening at: http://0.0.0.0:8000 (1843)
[2017-02-21 10:37:46 +0000] [1843] [INFO] Using worker: sync
[2017-02-21 10:37:46 +0000] [1848] [INFO] Booting worker with pid: 1848
[2017-02-21 10:37:47 +0000] [1843] [DEBUG] 1 workers
WARNING: No route found for IPv6 destination :: (no default route?)
[2017-02-21 10:37:49 +0000] [1848] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 557, in spawn_worker
worker.init_process()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 126, in init_process
self.load_wsgi()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 136, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
return self.load_wsgiapp()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python2.7/dist-packages/gunicorn/util.py", line 357, in import_app
import(module)
File "/root/Pcap-Analyzer-master/run.py", line 4, in
from app import app
File "/root/Pcap-Analyzer-master/app/init.py", line 11, in
from app import views
File "/root/Pcap-Analyzer-master/app/views.py", line 12, in
from utils.ipmap_tools import getmyip, get_ipmap, get_geo
File "/root/Pcap-Analyzer-master/app/utils/ipmap_tools.py", line 9, in
import geoip2.database
ImportError: No module named geoip2.database
[2017-02-21 10:37:49 +0000] [1848] [INFO] Worker exiting (pid: 1848)
[2017-02-21 10:37:49 +0000] [1843] [INFO] Shutting down: Master
[2017-02-21 10:37:49 +0000] [1843] [INFO] Reason: Worker failed to boot.

IPv6 support

This project seems to be incompatible with IPv6 address yet in pcap file.

在centos7上部署出错了

[2021-11-05 15:30:32 +0800] [10436] [ERROR] Error handling request /datashow/?id=5&_=1636097429917
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/sync.py", line 136, in handle
self.handle_request(listener, req, client, addr)
File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/sync.py", line 179, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2000, in call
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1991, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1567, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1988, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1641, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1544, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1639, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1625, in dispatch_request
return self.view_functionsrule.endpoint
File "/root/Pcap-Analyzer/app/views.py", line 106, in datashow
PCAPS[dataid].pdfdump(app.config['PDF_FOLDER'] + PDF_NAME)
File "/usr/local/lib/python3.6/site-packages/scapy/packet.py", line 526, in pdfdump
canvas = self.canvas_dump(**kargs)
File "/usr/local/lib/python3.6/site-packages/scapy/packet.py", line 542, in canvas_dump
raise ImportError("PyX and its depedencies must be installed")
ImportError: PyX and its depedencies must be installed

[root@moban Pcap-Analyzer-master]# pip3 list
Package Version


aiohttp 3.8.0
aiosignal 1.2.0
async-timeout 4.0.0
asynctest 0.13.0
attrs 21.2.0
backcall 0.2.0
certifi 2021.10.8
charset-normalizer 2.0.7
click 8.0.3
decorator 5.1.0
Flask 2.0.2
Flask-WTF 0.15.1
frozenlist 1.2.0
geoip2 4.4.0
gunicorn 20.1.0
idna 3.3
importlib-metadata 4.8.1
ipython 7.29.0
itsdangerous 2.0.1
jedi 0.18.0
Jinja2 3.0.2
MarkupSafe 2.0.1
matplotlib-inline 0.1.3
maxminddb 2.2.0
multidict 5.2.0
parso 0.8.2
pexpect 4.8.0
pickleshare 0.7.5
pip 21.3.1
prompt-toolkit 3.0.22
ptyprocess 0.7.0
Pygments 2.10.0
PyX 0.15
requests 2.26.0
scapy 2.4.5
scapy-python3 0.26
setuptools 47.1.0
traitlets 5.1.1
typing-extensions 3.10.0.2
urllib3 1.26.7
wcwidth 0.2.5
Werkzeug 2.0.2
WTForms 2.3.3
yarl 1.7.2
zipp 3.6.0

在Kali 2022上部署出错了

gunicorn -c deploy_config.py run:app > error_log
[2022-09-09 13:00:25 -0400] [6375] [DEBUG] Current configuration:
config: deploy_config.py
wsgi_app: None
bind: ['0.0.0.0:8000']
backlog: 2048
workers: 1
worker_class: sync
threads: 1
worker_connections: 1000
max_requests: 0
max_requests_jitter: 0
timeout: 30
graceful_timeout: 30
keepalive: 2
limit_request_line: 4094
limit_request_fields: 100
limit_request_field_size: 8190
reload: False
reload_engine: auto
reload_extra_files: []
spew: False
check_config: False
print_config: False
preload_app: False
sendfile: None
reuse_port: False
chdir: /opt/Pcap-Analyzer
daemon: False
raw_env: []
pidfile: /var/log/gunicorn/debug.log
worker_tmp_dir: None
user: 0
group: 0
umask: 0
initgroups: False
tmp_upload_dir: None
secure_scheme_headers: {'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on'}
forwarded_allow_ips: ['127.0.0.1']
accesslog: None
disable_redirect_access_to_syslog: False
access_log_format: %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"
errorlog: -
loglevel: debug
capture_output: False
logger_class: gunicorn.glogging.Logger
logconfig: None
logconfig_dict: {}
syslog_addr: udp://localhost:514
syslog: False
syslog_prefix: None
syslog_facility: user
enable_stdio_inheritance: False
statsd_host: None
dogstatsd_tags:
statsd_prefix:
proc_name: gunicorn.pid
default_proc_name: run:app
pythonpath: None
paste: None
on_starting: <function OnStarting.on_starting at 0x7fd990424160>
on_reload: <function OnReload.on_reload at 0x7fd990424280>
when_ready: <function WhenReady.when_ready at 0x7fd9904243a0>
pre_fork: <function Prefork.pre_fork at 0x7fd9904244c0>
post_fork: <function Postfork.post_fork at 0x7fd9904245e0>
post_worker_init: <function PostWorkerInit.post_worker_init at 0x7fd990424700>
worker_int: <function WorkerInt.worker_int at 0x7fd990424820>
worker_abort: <function WorkerAbort.worker_abort at 0x7fd990424940>
pre_exec: <function PreExec.pre_exec at 0x7fd990424a60>
pre_request: <function PreRequest.pre_request at 0x7fd990424b80>
post_request: <function PostRequest.post_request at 0x7fd990424c10>
child_exit: <function ChildExit.child_exit at 0x7fd990424d30>
worker_exit: <function WorkerExit.worker_exit at 0x7fd990424e50>
nworkers_changed: <function NumWorkersChanged.nworkers_changed at 0x7fd990424f70>
on_exit: <function OnExit.on_exit at 0x7fd990425090>
proxy_protocol: False
proxy_allow_ips: ['127.0.0.1']
keyfile: None
certfile: None
ssl_version: 2
cert_reqs: 0
ca_certs: None
suppress_ragged_eofs: True
do_handshake_on_connect: False
ciphers: None
raw_paste_global_conf: []
strip_header_spaces: False
[2022-09-09 13:00:25 -0400] [6375] [INFO] Starting gunicorn 20.1.0
[2022-09-09 13:00:25 -0400] [6375] [DEBUG] Arbiter booted
[2022-09-09 13:00:25 -0400] [6375] [INFO] Listening at: http://0.0.0.0:8000 (6375)
[2022-09-09 13:00:25 -0400] [6375] [INFO] Using worker: sync
[2022-09-09 13:00:25 -0400] [6376] [INFO] Booting worker with pid: 6376
[2022-09-09 13:00:25 -0400] [6376] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py", line 589, in spawn_worker
worker.init_process()
File "/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py", line 134, in init_process
self.load_wsgi()
File "/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py", line 146, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py", line 58, in load
return self.load_wsgiapp()
File "/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python3.10/dist-packages/gunicorn/util.py", line 359, in import_app
mod = importlib.import_module(module)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/opt/Pcap-Analyzer/run.py", line 4, in
from app import app
File "/opt/Pcap-Analyzer/app/init.py", line 4, in
from flask import Flask
File "/usr/lib/python3/dist-packages/flask/init.py", line 7, in
from .app import Flask as Flask
File "/usr/lib/python3/dist-packages/flask/app.py", line 19, in
from werkzeug.local import ContextVar
ImportError: cannot import name 'ContextVar' from 'werkzeug.local' (/usr/local/lib/python3.10/dist-packages/werkzeug/local.py)
[2022-09-09 13:00:25 -0400] [6376] [INFO] Worker exiting (pid: 6376)
[2022-09-09 13:00:25 -0400] [6375] [DEBUG] 1 workers
[2022-09-09 13:00:25 -0400] [6375] [INFO] Shutting down: Master
[2022-09-09 13:00:25 -0400] [6375] [INFO] Reason: Worker failed to boot.

`Package Version


adblockparser 0.7
AdvancedHTTPServer 2.2.0
aiocmd 0.1.2
aioconsole 0.3.1
aiodns 3.0.0
aiofiles 0.8.0
aiohttp 3.8.1
aiomultiprocess 0.8.0
aioredis 1.3.1
aiosignal 1.2.0
aiosmb 0.2.50
aiosqlite 0.17.0
aiowinreg 0.0.7
ajpy 0.0.4
alabaster 0.7.12
alembic 1.7.6.dev0
altgraph 0.17.2
aniso8601 8.0.0
anyio 3.5.0
apispec 5.1.1
apispec-webframeworks 0.5.2
appdirs 1.4.4
APScheduler 0.0.0
argcomplete 2.0.0
asciitree 0.3.3
asgiref 3.5.0
asn1crypto 1.4.0
async-timeout 4.0.1
asysocks 0.1.2
attrs 21.2.0
autobahn 22.1.1
Automat 20.2.0
Babel 2.8.0
backcall 0.2.0
backoff 1.11.1
base58 1.0.3
basemap 1.2.1
bcrypt 3.2.0
beautifulsoup4 4.11.1
bidict 0.21.3
binwalk 2.3.3
bleach 4.1.0
blinker 1.4
bluepy 1.3.0
boltons 21.0.0
bottle 0.12.19
Bottleneck 1.3.2
Brlapi 0.8.3
Brotli 1.0.9
bs4 0.0.1
cairocffi 1.3.0
catfish 4.16.3
cbor 1.0.0
censys 2.0.9
certifi 2020.6.20
Certipy 3.0.0
cffi 1.15.0
chardet 3.0.4
charset-normalizer 2.0.6
cheroot 8.6.0+ds1
CherryPy 18.6.1
cherrypy-cors 1.6
cli-helpers 2.2.1
click 8.0.3
click-plugins 1.1.1
colorama 0.4.4
colorlog 6.6.0
commonmark 0.9.1
configobj 5.0.6
configparser 5.2.0
constantly 15.1.0
crackmapexec 5.2.2
cryptography 37.0.2
cx-Oracle 8.3.0
cycler 0.11.0
Cython 0.29.28
dataclasses-json 0.5.7
dbus-python 1.2.18
debtags 2.1
decorator 4.4.2
defusedxml 0.7.1
Deprecated 1.2.13
deprecation 2.0.7
dicttoxml 1.7.4
dirsearch 0.4.2
distro 1.7.0
distro-info 1.1
Django 3.2.12
dnslib 0.9.19
dnspython 2.2.0
docopt 0.6.2
donut-shellcode 0.9.2
dropbox 11.26.0
dsinternals 1.2.4
ecdsa 0.18.0b1
email-validator 1.1.2
et-xmlfile 1.0.1
ExifRead 2.3.2
faraday-agent-parameters-types 1.0.3
faraday-client 1.1.0
faraday-plugins 1.5.9
faradaysec 3.19.0
fastapi 0.74.1
feedparser 6.0.8
fierce 1.5.0
filedepot 0.5.2
filteralchemy 0.1.0
flasgger 0.9.5
Flask 2.0.1
Flask-Classful 0.14.1
Flask-KVSession-fork 0.6.3
Flask-Limiter 1.0.1
Flask-Login 0.5.0
Flask-Mail 0.9.1
Flask-Principal 0.4.0
Flask-RESTful 0.3.9
Flask-Security-Too 4.0.0
Flask-SocketIO 5.0.1
Flask-SQLAlchemy 2.5.1
Flask-WTF 0.14.3
flatbuffers 1.12.1-git20200711.33e2d80-dfsg1-0.6
fonttools 4.32.0
frozenlist 1.2.0
fs 2.4.12
future 0.18.2
GDAL 3.4.2
geoip2 2.9.0
geojson 2.5.0
gitdb 4.0.9
GitPython 3.1.27
gnureadline 8.1.2
gpg 1.16.0-unknown
graphene 2.1.9
graphene-sqlalchemy 2.1.2
graphql-core 2.2.1
graphql-relay 2.0.1
graphviz 0.14.2
greenlet 1.1.2
gunicorn 20.1.0
gvm-tools 22.6.0
h11 0.13.0
h2 4.1.0
hashID 3.1.4
hiredis 1.0.1
hpack 4.0.0
html2text 2020.1.16
html5lib 1.1
httpagentparser 1.9.1
humanize 0.0.0
hupper 1.10.3
hyperframe 6.0.0
hyperlink 21.0.0
icalendar 4.0.3
idna 3.3
impacket 0.9.24
importlib-metadata 4.6.4
incremental 21.3.0
iniconfig 1.1.1
invoke 1.7.0
iptools 0.6.1
ipwhois 0.15.1
IPy 1.1
ipython 7.31.1
itsdangerous 2.1.2
jaraco.classes 3.2.1
jaraco.collections 3.5.1
jaraco.context 4.1.1
jaraco.functools 3.5.0
jaraco.text 3.7.0
jdcal 1.0
jedi 0.18.0
Jinja2 3.0.3
jq 1.2.1
jsonschema 3.2.0
kaitaistruct 0.9
kali-tweaks 2022.2.1
KismetCaptureBtGeiger 2021.7.1
KismetCaptureFreaklabsZigbee 2018.7.0
KismetCaptureRtl433 2020.10.1
KismetCaptureRtladsb 2020.10.1
KismetCaptureRtlamr 2020.10.1
kiwisolver 1.3.2
ldap3 2.9
ldapdomaindump 0.9.3
libcomps 0.1.15
lightdm-gtk-greeter-settings 1.2.2
limiter 0.1.2
limits 1.5.1
louis 3.21.0
lsassy 3.1.1
lxml 4.8.0
lz4 4.0.0+dfsg
macholib 1.16
Mako 1.1.3
Markdown 3.3.6
MarkupSafe 2.0.1
marshmallow 3.15.0
marshmallow-enum 1.5.1
marshmallow-sqlalchemy 0.26.1
matplotlib 3.5.1
matplotlib-inline 0.1.3
maxminddb 2.0.3
mechanize 0.4.8
mercurial 6.1.3
minidump 0.0.21
minikerberos 0.2.14
mistune0 0.8.4
mitmproxy 8.0.0
mnemonic 0.19
more-itertools 8.10.0
mpmath 0.0.0
msgpack 1.0.3
msldap 0.3.30
multidict 5.1.0
mypy-extensions 0.4.3
mysql-connector 2.2.9
mysqlclient 1.4.6
nassl 4.0.2
neo4j 1.7.0.dev0
neobolt 1.7.17
neotime 1.7.4
netaddr 0.8.0
netifaces 0.11.0
networkx 2.5
nplusone 1.0.0
ntlm-auth 1.5.0
numexpr 2.8.1
numpy 1.21.5
odfpy 1.4.2
olefile 0.46
onboard 1.4.1
openpyxl 3.0.9
ospd-openvas 21.4.4
packaging 21.3
pandas 1.3.5
paramiko 2.8.1
parse 1.19.0
parso 0.8.1
passlib 1.7.4
Paste 3.5.0
PasteDeploy 2.1.1
PasteScript 2.0.2
patator 0.9
pcapy 0.11.5.dev0
pefile 2021.9.3
pendulum 2.1.2
pexpect 4.8.0
pgcli 3.4.1
pgspecial 1.11.10
phonenumbers 8.12.1
pickleshare 0.7.5
Pillow 9.0.1
pip 22.1.1
pipdeptree 2.2.0
plaster 1.0
plaster-pastedeploy 0.5
pluggy 1.0.0
pluginbase 1.0.1
ply 3.11
portend 3.1.0
prettytable 2.5.0
promise 2.3
prompt-toolkit 3.0.28
protobuf 3.12.4
psutil 5.9.0
psycopg2 2.9.2
ptyprocess 0.7.0
publicsuffix2 2.20191221
publicsuffixlist 0.7.10
py 1.10.0
py-ubjson 0.16.1
pyasn1 0.4.8
pyasn1-modules 0.2.1
pycairo 1.20.1
pycares 4.1.2
pycparser 2.20
pycrypto 2.6.1
pycryptodome 3.14.1
pycryptodomex 3.11.0
pycurl 7.44.1
pydantic 1.9.0
PyDispatcher 2.0.5
pydot 1.4.2
pyee 9.0.4
pyExploitDb 0.2.0
pyfiglet 0.8.post0
pyftpdlib 1.5.6
pygexf 0.2.2
Pygments 2.6.1
PyGObject 3.42.1
pygraphviz 1.7
PyHamcrest 2.0.2
pyinotify 0.9.6
PyInstaller 3.5+498e6ee058
pylnk3 0.4.2
pyminifier 2.1
pymongo 3.11.0
pymssql 2.2.2
PyMySQL 1.0.2
PyNaCl 1.5.0
pyOpenSSL 22.0.0
pyotp 2.3.0
pyparsing 2.4.7
PyPDF2 1.26.0
pyperclip 1.8.2
pypng 0.0.20
pyppeteer 0.2.5
pyproj 3.3.1
pypsrp 0.5.0
pypykatz 0.4.9
PyQRCode 1.2.1
PyQt5 5.15.6
PyQt5-sip 12.10.1
pyqtgraph 0.12.4
pyramid 2.0
pyrsistent 0.18.1
pyserial 3.5
pyShodan 0.2.3
pyshp 2.2.0
pysmi 0.3.2
pysnmp 4.4.12
PySocks 1.7.1
pyspnego 0.1.5
pytest 6.2.5
python-apt 2.3.0+b1
python-dateutil 2.8.1
python-debian 0.1.43
python-docx 0.8.11
python-dotenv 0.20.0
python-engineio 4.0.0
python-gvm 21.11.0
python-libnmap 0.7.2
python-magic 0.4.25
python-nmap 0.6.3
python-pam 2.0.2
python-pptx 0.6.18
python-snappy 0.5.3
python-socketio 5.0.3
PyTrie 0.4.0
pytz 2020.1
pytz-deprecation-shim 0.1.0.post0
pytzdata 2020.1
pywerview 0.3.2
PyX 0.15
pyxdg 0.27
PyYAML 5.4.1
qrcode 7.3.1
Quamash 0.6.1
redis 3.5.3
repoze.lru 0.7
requests 2.27.1
requests-file 1.5.1
requests-ntlm 1.1.0
requests-toolbelt 0.9.1
responses 0.18.0
retrying 1.3.3
rich 12.1.0
Routes 2.5.1
rpm 4.17.0
rq 1.10.1
ruamel.yaml 0.17.16
ruamel.yaml.clib 0.2.6
rule-engine 1.1.0
Rx 3.2.0
scapy 2.4.5rc1.dev279
scipy 1.7.3
secure 0.3.0
selenium 4.0.0a1
service-identity 18.1.0
setproctitle 1.2.2
setuptools 59.6.0
sgmllib3k 1.0.0
shodan 1.27.0
simplejson 3.17.2
simplekv 0.13.0
sipvicious 0.3.4
six 1.15.0
slowapi 0.1.4
smmap 5.0.0
smoke-zephyr 2.0.1
sniffio 1.2.0
snowballstemmer 2.0.0
sortedcontainers 2.1.0
soupsieve 2.0.1
speaklater 1.4
sphinxcontrib-applehelp 1.0.2
sphinxcontrib-devhelp 1.0.2
sphinxcontrib-htmlhelp 1.0.3
sphinxcontrib-jsmath 1.0.1
sphinxcontrib-qthelp 1.0.3
sphinxcontrib-serializinghtml 1.1.4
split 0.4
spyse-python 2.2.3
SQLAlchemy 1.4.31
sqlalchemy-schemadisplay 1.3
SQLAlchemy-Utc 0.11.0
sqlparse 0.4.2
sslyze 5.0.4
starlette 0.18.0
stone 3.3.1
Sublist3r 1.0
sympy 1.9
syslog-rfc5424-formatter 1.2.2
tables 3.7.0
tabulate 0.8.9
Tempita 0.5.2
tempora 5.0.1
termcolor 1.1.0
terminaltables 3.1.0
texttable 1.6.4
theHarvester 4.0.3
tld 0.11.11
tls-parser 1.2.2
token-bucket 0.3.0
toml 0.10.2
tornado 6.1
tqdm 4.64.0
traitlets 5.1.1
translationstring 1.4
Twisted 22.4.0
txaio 21.2.1
typing-extensions 3.10.0.2
typing-inspect 0.7.1
tzlocal 4.2
u-msgpack-python 2.3.0
ufoLib2 0.13.1
ufw 0.36.1
ujson 5.2.0
unattended-upgrades 0.1
unicodecsv 0.14.1
unicodedata2 14.0.0
Unidecode 1.3.4
urllib3 1.25.9
urwid 2.1.2
uvicorn 0.17.6
uvloop 0.16.0
validators 0.20.0
venusian 3.0.0
wafw00f 2.1.0
wapiti3 3.0.4
wcwidth 0.2.5
webargs 8.0.1
webencodings 0.5.1
WebOb 1.8.6
websocket-client 1.2.3
websockets 10.2
websockify 0.10.0
Werkzeug 1.0.1
wfuzz 3.1.0
wheel 0.37.1
whois 0.8
wifite 2.6.0
winacl 0.1.2
wrapt 1.13.3
wsaccel 0.6.3
wsproto 1.1.0
WTForms 2.2.1
xcffib 0.11.1
xdg 5
xlrd 1.2.0
XlsxWriter 3.0.2
xlutils 2.0.0
xlwt 1.3.0
xmltodict 0.12.0
yara-python 4.2.0
yarl 1.7.2
yaswfp 0.9.3
zc.lockfile 2.0
zipp 1.0.0
zlib-wrapper 0.1.3
zope.deprecation 4.4.0
zope.interface 5.4.0
`

数据包无法上传

提示如下错误信息

builtins.AttributeError
AttributeError: 'FileNotFoundError' object has no attribute 'message'

Traceback (most recent call last)
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1836, in call
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/dist-packages/flask/_compat.py", line 33, in reraise
raise value
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/dist-packages/flask/_compat.py", line 33, in reraise
raise value
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functionsrule.endpoint
File "/root/Pcap-Analyzer/app/views.py", line 59, in upload
Open an interactive python shell in this frameflash('上传错误,错误信息:' + e.message)
AttributeError: 'FileNotFoundError' object has no attribute 'message'
The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.
To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.

You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:

dump() shows all variables in the frame
dump(obj) dumps all that's known about the object

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.