执行python manage.py报错了
来源:4-21 探测资产信息获取执行演示
慕沐3331589
2021-08-06
(venv) [root@check-test imoocc_py3_online]# python main.py
Traceback (most recent call last):
File “main.py”, line 20, in
from scanhosts.util.nmap_all_server import NmapNet
File “/root/pycharm/django/0712imoocc/imoocc_python3_online/imoocc_py3_online/scanhosts/util/nmap_all_server.py”, line 19, in
from scanhosts.lib.J_do import J_ssh_do
File “/root/pycharm/django/0712imoocc/imoocc_python3_online/imoocc_py3_online/scanhosts/lib/J_do.py”, line 18, in
import paramiko
File “/root/pycharm/django/imoocc_py3_online/venv/lib/python3.7/site-packages/paramiko/init.py”, line 31, in
from paramiko.transport import SecurityOptions, Transport
File “/root/pycharm/django/imoocc_py3_online/venv/lib/python3.7/site-packages/paramiko/transport.py”, line 70, in
from paramiko.sftp_client import SFTPClient
File “/root/pycharm/django/imoocc_py3_online/venv/lib/python3.7/site-packages/paramiko/sftp_client.py”, line 43, in
from paramiko.sftp_file import SFTPFile
File “/root/pycharm/django/imoocc_py3_online/venv/lib/python3.7/site-packages/paramiko/sftp_file.py”, line 68
self._close(async=True)
^
SyntaxError: invalid syntax
1回答
-
Jeson
2021-08-09
这个可能和版本有关系,paramiko升级下试试
00
相似问题