Skip to content

Instantly share code, notes, and snippets.

@amotl
Last active March 1, 2020 23:53
Show Gist options
  • Select an option

  • Save amotl/31eec18126c3f86908629671ea9ecc4d to your computer and use it in GitHub Desktop.

Select an option

Save amotl/31eec18126c3f86908629671ea9ecc4d to your computer and use it in GitHub Desktop.
Installing Kotori 0.22.7 on Ubuntu 18.04.2

The attached script kotori-virtualenv-fix.sh will mitigate installation problems on Ubuntu 18.04.2 we learned about in the course of daq-tools/kotori#7.

Thanks a bunch for bearing with us, TheOneWhoKnocks96!


Run the patch on your fingertips

bash <(curl -s https://gist.githubusercontent.com/amotl/31eec18126c3f86908629671ea9ecc4d/raw/2f9ee4908e40113bc2eeebf6e39ea45d7ce45c27/kotori-virtualenv-fix.sh)
# Mitigate problems after installing Kotori 0.22.7 on Ubuntu 18.04.2
# https://github.com/daq-tools/kotori/issues/7
# Upgrade virtualenv
virtualenv --python /usr/bin/python2.7 /opt/kotori
# Download some Python packages which will fix the situation
mkdir /tmp/kotori-ubuntu-fixes
cd /tmp/kotori-ubuntu-fixes
wget https://files.pythonhosted.org/packages/01/c8/ceb170d81bd3941cbeb9940fc6cc2ef2ca4288d0ca8929ea4db5905d904d/pyOpenSSL-19.0.0-py2.py3-none-any.whl
wget https://files.pythonhosted.org/packages/e6/68/50698ce24c61db7d44d93a5043c621a0ca7839d4ef9dff913e6ab465fc92/cryptography-2.7-cp27-cp27mu-manylinux1_x86_64.whl
wget https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
wget https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl
wget https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl
wget https://files.pythonhosted.org/packages/fc/d0/7fc3a811e011d4b388be48a0e381db8d990042df54aa4ef4599a31d39853/ipaddress-1.0.22-py2.py3-none-any.whl
wget https://files.pythonhosted.org/packages/8d/e9/0c8afd1579e5cf7bc0f06fbcd7cdb954cbc0baadd505973949a99337da1c/cffi-1.12.3-cp27-cp27mu-manylinux1_x86_64.whl
# Heal the virtualenv completely
/opt/kotori/bin/pip install /tmp/kotori-ubuntu-fixes/*.whl
# Add more packages manually which somehow got lost
/opt/kotori/bin/pip install six
/opt/kotori/bin/pip install arrow==0.10.0
/opt/kotori/bin/pip install python-dateutil>=2.6.0
# Proof
/opt/kotori/bin/python -c "import arrow"
echo "Kotori installation healed. Have fun!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment