zulip: Can't install Zulip - ModuleNotFoundError: No module named 'scripts.lib'
On ubuntu 16.04, I ran
cd $(mktemp -d) wget https://www.zulip.org/dist/releases/zulip-server-latest.tar.gz tar -xf zulip-server-latest.tar.gz
And then (I was already logged in as root), with YOUR_EMAIL and YOUR_HOSTNAME replaced :
./zulip-server-*/scripts/setup/install --certbot --email=YOUR_EMAIL --hostname=YOUR_HOSTNAME
Then, I got:
Traceback (most recent call last): File “/tmp/tmp.G6mxzU94Ab/zulip-server-1.8.1/scripts/lib/create-production-venv”, line 11, in <module> from scripts.lib.zulip_tools import run ModuleNotFoundError: No module named ‘scripts.lib’
Zulip installation failed!
The install process is designed to be idempotent, so you can retry after resolving whatever issue caused the failure (there should be a traceback above). A log of this installation is available in /var/log/zulip/install.log
I tried with python alias set to python2 and python3. Also adding some init.py didn’t work.
Any ideas how to fix this ?
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 2
- Comments: 15 (9 by maintainers)
I solved this problem by changing the line in provision.py i.e. sys.path.append(ZULIP_PATH) to sys.path.insert(0,ZULIP_PATH)