Seaf-cli under Ubuntu 18.04 : ImportError: No module named seafile

Hello,

I try to install seaf-cli under Ubuntu 18.04.
I followed the HowTo ( .list file , sudo apt-get install -y seafile-cli , …)
But after these commands :

mkdir ~/seafile-client
seaf-cli init -d ~/seafile-client

I have this message :

Traceback (most recent call last):
  File "/usr/bin/seaf-cli", line 96, in <module>
    import seafile
ImportError: No module named seafile

Anyone can help me ?
Thanks

Any idea ?
Thanks

Even the team doesn’t know ? :worried:

Hi stephh,
I might have run into the same problem like you.
The problem for me was that seafile was installed under /usr/lib/python3.10/site-packages because I used pacaur under Arch Linux to install seafile (which I think could be equivalent in the result to installing with apt-get install).
On the other hand I use anaconda so that this location is not part of my pythonpath.
So one way of fixing the issue was
export PYTHONPATH=/usr/lib/python3.10/site-packages
Of course you have to set this path accordingly to your installation. This can be seen more as a hotfix cause it damages the barrier which is anaconda trying to set up. Right now I am trying to install the seafile package to my anaconda installation.

Hello,
Thanks for you reply.
In fact I tried again after the team correct the tutorial which contains an error.
Now it’s ok.