更新时间:2021-03-18 GMT+08:00
分享

obsftp启动失败

obsftp启动失败时有以下常见的几种现象,本文针对不同现象,描述了obsftp启动失败的原因,并提供了具有针对性的解决办法,帮助用户自助、快速地解决问题。

现象一:启动obsftp时提示no encoding declared错误

现象描述:

运行python FTPServerStart.py后,回显的错误信息中有类似“no encoding declared”的提示,obsftp启动失败。

原因:

FTPServerStart.py代码首行缺少编解码声明。

解决方法:

打开FTPServerStart.py文件,在首行添加如下编解码声明:

# -*- coding:utf-8 -*-

保存文件,重新启动obsftp。

现象二:启动obsftp时提示tuple object has no attribute major错误

现象描述:

运行python FTPServerStart.py后,回显的错误信息中有类似“'tuple' object has no attribute 'major'”的提示,obsftp启动失败。

原因:

Python的版本过低。

解决方法:

更新Python版本至2.7.9及以上的2.7系列,暂不支持Python 3。

更新Python版本后,重新启动obsftp。

分享:

    相关文档

    相关产品