pyftpdlib-OSError:[Errno 38]函数未实现

时间:2019-04-03 08:07:01

标签: python python-3.6 ubuntu-18.04 pyftpdlib

在Ubuntu pyftpdlib上使用18.04时遇到问题(在Ubuntu 16.04上正常工作)。

这样做:

from pyftpdlib.servers import FTPServer

抛出此:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/odoo/.local/lib/python3.6/site-packages/pyftpdlib/servers.py", line 520, in <module>
    class MultiprocessFTPServer(_SpawnerBase):
  File "/home/odoo/.local/lib/python3.6/site-packages/pyftpdlib/servers.py", line 524, in MultiprocessFTPServer
    _lock = multiprocessing.Lock()
  File "/usr/lib/python3.6/multiprocessing/context.py", line 67, in Lock
    return Lock(ctx=self.get_context())
  File "/usr/lib/python3.6/multiprocessing/synchronize.py", line 162, in __init__
    SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx)
  File "/usr/lib/python3.6/multiprocessing/synchronize.py", line 59, in __init__
    unlink_now)
OSError: [Errno 38] Function not implemented

版本:

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic

Python 3.6.7
pyftpdlib 1.5.4

有解决方法吗?如果没有,也许还有其他库可以设置ftp服务器?我只需要测试即可。

P.S。也是https://github.com/giampaolo/pyftpdlib/issues/496

的报告人

0 个答案:

没有答案