ModuleNotFoundError: No module named 'captcha'

Hi. Need some help here. This error occurs while starting seahub.sh. I change gunicorn.conf.py to daemon = False in order to see error. I think there must be version conflict with Python but I have no clue where to start. All happend after Debian server update.

https://pastebin.com/V1n5qN6U

Any help is welcome!
:wink:

So you probably updated your OS version which deletes some of the python staff seafile needs. Just follow again the installation instructions for the server setup under ‘Prerequisites’ which details which python moduls needs to be installed. One of them being the missing captcha. If you are on Ubuntu 20 and don’t use memcache I would skip the pylibmc (those don’t install as such as having more dependencies which are missing).

Hi Wanni
Did that already to no avail. Even if I install “pip install captcha” the error remains. How can I show you that?
Package Version


asn1crypto 0.24.0
captcha 0.3
certifi 2018.8.24
chardet 3.0.4
configparser 3.5.0b2
cryptography 2.6.1
decorator 4.4.2
entrypoints 0.3
enum34 1.1.6
futures 3.3.0
gunicorn 19.9.0
idna 2.6
imageio 2.4.1
ipaddress 1.0.17
keyring 17.1.1
keyrings.alt 3.1.1
moviepy 1.0.2
numpy 1.16.6
olefile 0.46
Pillow 4.3.0
pip 18.1
proglog 0.1.9
pyasn1 0.4.2
pyasn1-modules 0.2.1
pycrypto 2.6.1
pyOpenSSL 19.0.0
python-ldap 3.1.0
pyxdg 0.25
requests 2.21.0
SecretStorage 2.3.1
setuptools 44.0.0
six 1.14.0
tqdm 4.45.0
urllib3 1.24.1
wheel 0.32.3

I use Debian 10. I use memcache. I tried this:

apt-get install python2.7 libpython2.7 python-setuptools python-ldap python-urllib3 ffmpeg python-pip sqlite3 python-requestspip install Pillow==4.3.0

Reading package lists… Done
Building dependency tree
Reading state information… Done
python-ldap is already the newest version (3.1.0-2).
python-pip is already the newest version (18.1-5).
python-urllib3 is already the newest version (1.24.1-1).
python-requests is already the newest version (2.21.0-1).
ffmpeg is already the newest version (7:4.2.2-1+b1).
libpython2.7 is already the newest version (2.7.18-1).
python-setuptools is already the newest version (44.0.0-2).
python2.7 is already the newest version (2.7.18-1).
sqlite3 is already the newest version (3.31.1-5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Ah, as you are using 7.1.3 you need python 3 ! Check the server manual which shows the difference as of 7.1.x

You’re right, that did the trick. Thanks a bunch!

Cheers!