在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服务器?我只需要测试即可。
的报告人