Seahub errors (7.1.5) - Python?

Thanks,
It was the same as my suspicion, you helped me in the right direction!
I might have tried the sudo pip3 install --timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy django-pylibmc django-simple-captcha python3-ldap during all my tries.

I dis sudo su seafile
Then pip3:

Traceback (most recent call last):
  File "/usr/local/bin/pip3", line 7, in <module>
    from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip._internal'

No I solved it by:
sudo apt remove python-pip
sudo python3 -m pip install -U pip==19.0.2
sudo pip3 install --upgrade pip

Then as the seafile user I was able to run pip3 followed by:
pip3 install --timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy django-pylibmc django-simple-captcha python3-ldap

That did the trick.

If the pip installation are a mess, I can’t tell… Maybe I have some unclear things here. :frowning: But I have a auto-started Seafile not run by root! :+1:

Regarding the question:

Another question: Why did you add yourself (assuming that’s not the seafile user) to the seafile group? You’re starting seafile as seafile user, “you” don’t need access to the files.

It’s simply because I wanted to access the config and logs with my account. Even when upgrading Seafile I guess it would be simpler. But I don’t know if there are better ways? Please let me know!

1 Like