Re: after installing python3.6 on Ubuntu 16.04, org files open with errors
>>> "MN" == Max Nikulin writes: > On 14/11/2021 01:39, Tim Cross wrote: >> Uwe Brauer writes: >>> Well in that case I'd rather would prefer 20.04 a LTS release. From >>> experience I know it will take me days till everything is working again, >>> but maybe it is time to do that step. >> I would check what the status was with Python in 20.04. I'm not sure >> they had completed the migration to v3 at that point and it was still a >> mixed v2/v3 setup. Pretty sure by 21.04 it was all v3. I need still 2.7 to compile mercurial, since I rely on some extensions for mercurial that do not work under 3.X smime.p7s Description: S/MIME cryptographic signature
Re: after installing python3.6 on Ubuntu 16.04, org files open with errors
On 14/11/2021 01:39, Tim Cross wrote: Uwe Brauer writes: Well in that case I'd rather would prefer 20.04 a LTS release. From experience I know it will take me days till everything is working again, but maybe it is time to do that step. I would check what the status was with Python in 20.04. I'm not sure they had completed the migration to v3 at that point and it was still a mixed v2/v3 setup. Pretty sure by 21.04 it was all v3. Ubuntu-20.04: Python-3.8 is default, python-3.9 is available. Inkscape depends on python2:any. dpkg -S /usr/bin/python python-is-python2: /usr/bin/python I have not noticed any problem with python3. If some packages are considered as too old, e.g. Emacs-26.3 then Ubuntu-21.10 should be considered. At least it will be possible to upgrade it to Ubuntu-22.04 LTS in a single hop. Another option for rare upgrades is Debian stable. One thing I do find useful is to upgrade a virtual first. I use virt-manager to create a virtual machine running my current version and then upgrade that to see how the upgrade goes. I tried Ubuntu-20.10 and Ubuntu-21.10 in qemu. With the former I faced a really weird bug with depressed shift in gdm3 password field (you have no chance to notice that only first letter typed with shift is capitalized), with the latter firefox does not always redraw tabs after switching them using Ctrl+PgUp or Ctrl+PgDown. Booting live image directly works better and allows to test hardware support, e.g. sound. I have not tried 21.10 in this way, with 20.10 default wayland session cursor on the external monitor was too huge to make point where it points to rather uncertain. Problems with upgrade are usually caused by rarely used packages. So unless precise configuration is tried (dpkg --get-selections, dpkg --set-selections, third-party packages), the problem will not be noticed in VM. On the other hand installing all packages makes image size noticeably large. That issue I could solve meanwhile but only to receive another error ipython3 from my Ubuntu distribution but that corresponds to python 3.5 not 3.6 hm, ☹️ ipython may be installed to python 3.6 as well.
Re: after installing python3.6 on Ubuntu 16.04, org files open with errors
Uwe Brauer writes: > [[S/MIME Signed Part:Undecided]] > >> Uwe Brauer writes: > > >> The whole transition from v2.x to v3.x for python has been a terrible >> mess. Version issues are the most frustrating aspect of Python and one >> reason I've never embraced the language. > >> Given that Ubuntu 16.04 was end of life in April 2021, my recommendation >> would be to upgrade to ubuntu 21.04. That version seems to have a more >> consistent Python environment (based on v3). It also has newer ciaro, >> hafbuzz and other libs used by Emacs which will likely work better and >> once Emacs 28.0 is released, will have the gccjit libs necessary for >> native comp etc. > > Well in that case I'd rather would prefer 20.04 a LTS release. From > experience I know it will take me days till everything is working again, > but maybe it is time to do that step. > I would check what the status was with Python in 20.04. I'm not sure they had completed the migration to v3 at that point and it was still a mixed v2/v3 setup. Pretty sure by 21.04 it was all v3. While I do find upgrades to a new version can be very disruptive if it is left for a few versions, updates to the next version has been minimally disruptive for me. I guess a lot depends on how much 'extra' stuff you install and what tweaks you do, but for the last few years, I've found the upgrades quite painless. A lot depends on what changes - for example, I expect the update to 22.04 or maybe 22.10 will be more disruptive due to the move to pipewire for sound. One thing I do find useful is to upgrade a virtual first. I use virt-manager to create a virtual machine running my current version and then upgrade that to see how the upgrade goes. In fact, I tend to maintain a VM which is the same as my current version and whenever I need to make some potentially disruptive upgrades or configuration changes - such as updating org to a new version or try out the latest Emacs, I do that on the virtual machine first. This way, I don't interfere with my core system and configuration and have time to investigate any issues before doing the same on my core system.
Re: after installing python3.6 on Ubuntu 16.04, org files open with errors
>>> "MN" == Max Nikulin writes: > On 13/11/2021 09:22, Tim Cross wrote: >> Uwe Brauer writes: >> Given that Ubuntu 16.04 was end of life in April 2021, my >> recommendation >> would be to upgrade to ubuntu 21.04. > I would not recommend a release with end of support in January 2022 to > a person who is trying to avoid upgrading despite 18.04 and 20.04 long > time support releases are available. I think 20.04 is the best choice for me > From mails to this list my impression is that 5-years old OS generates > enough compatibility problems to seriously consider newer LTS version. > Support of python-2.7 and early 3.x version has been seized as well. >>> File "/usr/lib/python3/dist-packages/dateutil/parser.py", line 25, in >>> >>> from six import text_type, binary_type, integer_types >>> ModuleNotFoundError: No module named 'six' > ^ That issue I could solve meanwhile but only to receive another error ipython3 from my Ubuntu distribution but that corresponds to python 3.5 not 3.6 hm, ☹️ I think I rather upgrade Ubuntu or downgrade Matlab to make it work again with python3.5 smime.p7s Description: S/MIME cryptographic signature
Re: after installing python3.6 on Ubuntu 16.04, org files open with errors
>>> "MS" == Martin Schöön writes: > I learned the hard way not to mix distro installed Python with pip > installed Python. I now always use "pip install --user > " to keep things sane. Right, I installed python3.6 from a ppa, and that increased the mess. I uninstalled python3.6, also had to uninstall and then reinstall ob-ipython before I got rid of that error. smime.p7s Description: S/MIME cryptographic signature
Re: after installing python3.6 on Ubuntu 16.04, org files open with errors
> Uwe Brauer writes: > The whole transition from v2.x to v3.x for python has been a terrible > mess. Version issues are the most frustrating aspect of Python and one > reason I've never embraced the language. > Given that Ubuntu 16.04 was end of life in April 2021, my recommendation > would be to upgrade to ubuntu 21.04. That version seems to have a more > consistent Python environment (based on v3). It also has newer ciaro, > hafbuzz and other libs used by Emacs which will likely work better and > once Emacs 28.0 is released, will have the gccjit libs necessary for > native comp etc. Well in that case I'd rather would prefer 20.04 a LTS release. From experience I know it will take me days till everything is working again, but maybe it is time to do that step. smime.p7s Description: S/MIME cryptographic signature
Re: after installing python3.6 on Ubuntu 16.04, org files open with errors
On 13/11/2021 09:22, Tim Cross wrote: Uwe Brauer writes: Given that Ubuntu 16.04 was end of life in April 2021, my recommendation would be to upgrade to ubuntu 21.04. I would not recommend a release with end of support in January 2022 to a person who is trying to avoid upgrading despite 18.04 and 20.04 long time support releases are available. From mails to this list my impression is that 5-years old OS generates enough compatibility problems to seriously consider newer LTS version. Support of python-2.7 and early 3.x version has been seized as well. File "/usr/lib/python3/dist-packages/dateutil/parser.py", line 25, in from six import text_type, binary_type, integer_types ModuleNotFoundError: No module named 'six' ^ Another question: does ipython babel backend in Org uses the same python interpreter as python or it should be configured separately? Since you are using ipython, do you have it installed for python versions you are trying?
Re: after installing python3.6 on Ubuntu 16.04, org files open with errors
I learned the hard way not to mix distro installed Python with pip installed Python. I now always use "pip install --user " to keep things sane. /Martin On Sat, 13 Nov 2021 at 03:29, Tim Cross wrote: > > Uwe Brauer writes: > > > Hi > > > > I am running Ubuntu 16.04 and I installed python3.6 (which is not > > officially supported for that Ubuntu version via > > > https://askubuntu.com/questions/865554/how-do-i-install-python-3-6-using-apt-get > > > > I also installed > > > > sudo -H python3.6 -m pip install jupyter > > sudo -H python3.6 -m pip install pexpect > > sudo -H python3.6 -m pip install matlab_kernel > > > > > > Now however I cannot open even simple org files, I obtain errors I attach > > and most of my keybinding and other things do not work. > > > > Any help is strongly appreciated. > > > > Regards > > > > The whole transition from v2.x to v3.x for python has been a terrible > mess. Version issues are the most frustrating aspect of Python and one > reason I've never embraced the language. > > Given that Ubuntu 16.04 was end of life in April 2021, my recommendation > would be to upgrade to ubuntu 21.04. That version seems to have a more > consistent Python environment (based on v3). It also has newer ciaro, > hafbuzz and other libs used by Emacs which will likely work better and > once Emacs 28.0 is released, will have the gccjit libs necessary for > native comp etc.
Re: after installing python3.6 on Ubuntu 16.04, org files open with errors
Uwe Brauer writes: > Hi > > I am running Ubuntu 16.04 and I installed python3.6 (which is not > officially supported for that Ubuntu version via > https://askubuntu.com/questions/865554/how-do-i-install-python-3-6-using-apt-get > > I also installed > > sudo -H python3.6 -m pip install jupyter > sudo -H python3.6 -m pip install pexpect > sudo -H python3.6 -m pip install matlab_kernel > > > Now however I cannot open even simple org files, I obtain errors I attach > and most of my keybinding and other things do not work. > > Any help is strongly appreciated. > > Regards > The whole transition from v2.x to v3.x for python has been a terrible mess. Version issues are the most frustrating aspect of Python and one reason I've never embraced the language. Given that Ubuntu 16.04 was end of life in April 2021, my recommendation would be to upgrade to ubuntu 21.04. That version seems to have a more consistent Python environment (based on v3). It also has newer ciaro, hafbuzz and other libs used by Emacs which will likely work better and once Emacs 28.0 is released, will have the gccjit libs necessary for native comp etc.