Today I've learned my lesson - I need to upgrade my python from 3.4.3 to 3.6.4 because while analysing simplenote python-api I've found that it will not work with previous versions. Checkout my experience while upgrading :)
S0-E15/E30 :)
Simplenote Case
Few articles back I've wrote about simplenote and possibility to use it with vim. Unfortunatelly on my Ubuntu-Trusty (14.04) I could not.
That time I've digged the problem a bit - but not as much to find out why it was not working on my machine.
Today I've spend few hours on Docker and validating on which version of python It could work. Finally I've found that problem was with python and that using python 3.6.4 could solve problem with accessing simplenote!
Python upgrade to 3.6.4 from source !
sudo apt-get install -y \
autotools-dev \
blt-dev \
bzip2 \
dpkg-dev \
g++-multilib \
gcc-multilib \
libbluetooth-dev \
libbz2-dev \
libexpat1-dev \
libffi-dev \
libffi6 \
libffi6-dbg \
libgdbm-dev \
libgpm2 \
libncursesw5-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
libtinfo-dev \
mime-support \
net-tools \
netbase \
python-crypto \
python-mox3 \
python-pil \
python-ply \
quilt \
tk-dev \
zlib1g-dev
wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz
tar -zxvf Python-3.6.4.tgz
cd Python-3.6.4/ && ./configure --prefix /usr/local/lib/python3.6.4 --enable-ipv6 && cd -
cd Python-3.6.4/ && make && cd -
cd Python-3.6.4/ && make altinstall
Simplenote problems not resolved :(
Unfortunatelly it looks like upgrading to python3.6.4 is not the only thing I need to do.
After the upgrade, simpenote.py still does not work on vim :/
I will come back to this- but for now I'll just use docker-container with working solution of python3.6.4 with vim 7.4.
Acknowledgements
- Simplenote Developers
- Simplenote Electron based on React
- Simplenote Android client
- Simperium authorize API
- Python Images Tags on Docker Hub
- Python3 by sickmartian simplenote.py-PR#13
- Vim python support on ubuntu 16.04
- Simplenote.py Issue #21
- Pythons site module could not be loaded
- Upgrade to Python 2.7.11 on ubuntu 14.04LTS
- Using Python on Unix platforms
Thanks!
That's it :) Comment, share or don't :)
If you have any suggestions what I should blog about in the next articles - please give me a hint :)
See you tomorrow! Cheers!
Comments
comments powered by Disqus