Thursday, February 29, 2024

Setup Python 3.12.2 on KDE Neon as of 02/29 vs Fedora 40 KDE Development branch

 KDE Neon KVM guest was deployed via neon-user-20240229-0716.iso. Python 3.12.2 installation has been performed per https://www.dedicatedcore.com/blog/install-pyenv-ubuntu/

In particular case no upgrade of KDE Plasma up to 6.0 was required








































Notice that deployment Fedora 40 KDE instance been done utilizing Fedora-40-20240229.n.0  Server boot ISO provide Python 3.12.2 completely functional right out of the box along with quality of KDE Plasma 6.0 significantly more close to production quality then KDE Neon ISO as of 02/29/2024



Saturday, February 24, 2024

Setup Python 3.12.2 on SparkyLinux2024.2 (kernel 6.7.6) via pyenv

UPDATE as of 02/25/24

To install Python 3.12.2 on ManjaroKDE 23.1.3 Stable branch :
[boris@boris-manjaro ~]$ sudo pacman -S base-devel tk git
To obtain the most recent state of pyenv clone the external git repo rather then install -  $ sudo pacman -S pyenv
[boris@boris-manjaro ~]$  git clone  https://github.com/pyenv/pyenv.git ~/.pyenv
Cloning into '/home/boris/.pyenv'...
remote: Enumerating objects: 23830, done.
remote: Counting objects: 100% (2341/2341), done.
remote: Compressing objects: 100% (369/369), done.
remote: Total 23830 (delta 2051), reused 2144 (delta 1932), pack-reused 21489
Receiving objects: 100% (23830/23830), 4.76 MiB | 4.02 MiB/s, done.
Resolving deltas: 100% (16165/16165), done.
[boris@boris-manjaro ~]$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
[boris@boris-manjaro ~]$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >>  ~/.zshrc
[boris@boris-manjaro ~]$ echo 'eval "$(pyenv init --path)"' >> ~/.zshrc
[boris@boris-manjaro ~]$ source ~/.zshrc
[boris@boris-manjaro ~]$ pyenv --version                                           pyenv 2.3.36-3-gf9a2bb81
[boris@boris-manjaro ~]$ pyenv install --list | grep 3.12.2  
                 3.12.2
[boris@boris-manjaro ~] $ pyenv install  3.12.2                                  Downloading Python-3.12.2.tar.xz...
-> https://www.python.org/ftp/python/3.12.2/Python-3.12.2.tar.xz
Installing Python-3.12.2...
Installed Python-3.12.2 to /home/boris/.pyenv/versions/3.12.2
[boris@boris-manjaro ~] pyenv global  3.12.2



END UPDATE

This post is an immediate follow up on previous one   http://lxer.com/module/newswire/view/337189/index.html   to perform install Python 3.12.2 for particular user via pyenv  in the same way as it was done in the link above.  Then create new project in PyCharm with path to interpreter /home/boris/.pyenv/versions/3.12.2/bin/python3

boris@boris-sparky2024:~$ hostnamectl
Static hostname: boris-sparky2024
      Icon name: computer-vm
        Chassis: vm
     Machine ID: 17b78005aa0441f0b8495db7ea04cb19
        Boot ID: c5eafe586eab44ed90e78e1aeb4ea270
 Virtualization: kvm
Operating System: SparkyLinux 8 (Seven-Sisters)    
         Kernel: Linux 6.7.6-sparky8-amd64
   Architecture: x86-64
Hardware Vendor: QEMU
 Hardware Model: Standard PC _Q35 + ICH9, 2009_
Firmware Version: 1.16.3-1.fc39
  Firmware Date: Tue 2014-04-01
   Firmware Age: 9y 10month 3w 3d   

boris@boris-sparky2024:~$ sudo apt install build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python3-openssl git

boris@boris-sparky2024:~$ git clone  https://github.com/pyenv/pyenv.git ~/.pyenv

Cloning into '/home/boris/.pyenv'...

remote: Enumerating objects: 23800, done.

remote: Counting objects: 100% (2311/2311), done.

remote: Compressing objects: 100% (349/349), done.

remote: Total 23800 (delta 2036), reused 2128 (delta 1925), pack-reused 21489

Receiving objects: 100% (23800/23800), 4.75 MiB | 4.74 MiB/s, done.

Resolving deltas: 100% (16150/16150), done.

boris@boris-sparky2024:~$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc

boris@boris-sparky2024:~$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc

boris@boris-sparky2024:~$ echo 'eval "$(pyenv init --path)"' >> ~/.bashrc

boris@boris-sparky2024:~$ source ~/.bashrc   

boris@boris-sparky2024:~$ pyenv install 3.12.2          
boris@boris-sparky2024:~$ pyenv global 3.12.2
boris@boris-sparky2024:~$ python3.12
Python 3.12.2 (main, Feb 24 2024, 13:19:43) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import turtle as trt
>>>











Sunday, February 18, 2024

Anaconda Web UI on Fedora 40WKS KVM Guest deployed via Fedora-WKS-Live-x86_64-40-20240217.n.0.iso

UPDATE as of 02/24/24

Installer turned back to old style Blivet GUI supporting encryption :-

 Fedora-Workstation-Live-x86_64-40-20240223.n.0.iso

https://opencolo.mm.fcix.net/fedora/linux/development/40/Workstation/x86_64/iso/

=======================================================

Anaconda Web UI installer was tested step by step with encrypted root BTRFS volume and the most recent installer interface. KDE Plasma 6 RC2 was installed as second DE and smooth switching between DEs was verified


































































Now install python3-tkinter and load into PyCharm 2023.3 sample to test Turtle's Graphics

Switching to KDE Plasma 6 RC2













References

Test Day:2024-02-19 Fedora 40 GNOME 46 Desktop


Friday, February 16, 2024

Setup Turtle Graphics on openSUSE Tumbleweed via Python3.13-dev

 First install pyenv on Tumbleweed. You may follow for instance http://lxer.com/module/newswire/view/337068/index.html

Then install Python3.13-dev (or Python3.13.0a2(3))  via pyenv . It won't affect system-wide Python 3.11.(X)























Now create new project in PyCharm 2023.3 and select Python3.13-dev as project interpreter













Then load any sample say from https://www.geeksforgeeks.org/turtle-programming-python/  and make sure that you are done























Same way procedure described above would work on SparkyLinux2024.2 or Manjaro 23.1-(x) and Manjaro Testing as well . On Fedora Rawhide everything  works out of the box (Python 3.12.2)

#######################

UPDATE as of 02/17/24

#######################

Would you try to follow https://fedoraproject.org/wiki/Test_Day:2024-02-19_Fedora_40_GNOME_46_Desktop_and_Core_Apps

and use the most recent Fedora-Workstation-Live-x86_64-40-20240216.n.0.iso . Just check status of mirror

https://opencolo.mm.fcix.net/fedora/linux/development/40/Workstation/x86_64/iso/

To get things working:

execute first `sudo dnf install python3-tkinter`  then test will succeed














References

https://www.geeksforgeeks.org/python-turtle-tutorial/


Tuesday, February 13, 2024

Attempt to upgrade Manjaro 23.1 via Manjaro Testing branch

The core target of this post is evaluating current status of Manjaro Testing instance .

Changing to another branch

In order to access a branch, you need to change your pacman-mirrors configurationYou are supposed substitute the value colored in blue (for illustrative purposes only) to one of the following: stable, testing or unstable.

 $ sudo pacman-mirrors --api --set-branch {branch}
Run the pacman-mirrors tool with the --fasttrack option to fetch all mirrors to the list that consumes minimum time.
   $ sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syu




Manjaro Testing is runing kernel 6.7.4, System-wide Python appears to be 3.12.1, libvirt to have version 10.0.0 .
The libvirt version has been displayed via virsh console.
KVM Hypervisor and tools may be either smoothly
upgraded from 23.1 or installed on Manjaro testing
instance from scratch. In the last case after command
$ sudo pacman -S qemu virt-manager virt-viewer dnsmasq vde2 bridge-utils openbsd-netcat dmidecod
The default option for qemu "all" should be selected

Cockpit Web Console terminal on Manjaro Testing Instance





References

Friday, February 9, 2024

Install PyCharm 2023.3 on Fedora Rawhide via snap

 This option of Pycharm 2023.3 setup works for me with no issues so far. I am not quite sure that under any circumstances I am supposed to work via flatpak/flathub . 

The most recent stable kernel has been installed via koji download-build  kernel-6.8.0-0.rc3.20240208git047371968ffc.30.fc40 ) . See https://bodhi.fedoraproject.org/updates/?packages=kernel

$ sudo dnf install snapd -y
$ sudo ln -s /var/lib/snapd/snap /snap
$ sudo systemctl enable --now snapd
$ sudo systemctl status snapd
$ sudo systemctl restart  snapd
$ sudo systemctl status snapd
$ sudo snap install pycharm-community --classic

$  sudo reboot



























Tuesday, February 6, 2024

Install Python 3.12 && Pycharm 2023.3 along with system-wide 3.11 on Manjaro KDE 23.1

 Pyenv is a tool for managing multiple Python versions. Once pyenv is installed you can easily switch between one project that uses Python 3.12 and a system-wide default Python 3.11. Same approach works fine on openSUSE Tumbleweed, SparkyLinux 7.2, SparkyLinux 2024.1

$ sudo pacman -S pyenv

The following two installs are required to perform successful build Python 3.12.1 for particular user via pyenv. This build won't affect system-wide Python 3.11.6 

sudo pacman -S base-devel

sudo pacman -S tk

Now we update ~/.zshrc in the same way as  did it for ~/.bashrc in cases mentioned above .

echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc

echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >>  ~/.zshrc

$ echo 'eval "$(pyenv init --path)"' >> ~/.zshrc

$ source  ~/.zshrc

$ pyenv install 3.12.1                                       
Downloading Python-3.12.1.tar.xz...
-> https://www.python.org/ftp/python/3.12.1/Python-3.12.1.tar.xz
Installing Python-3.12.1...
Installed Python-3.12.1 to /home/boris/.pyenv/versions/3.12.1
$ pyenv global 3.12.1
$ hostnamectl                                                               
Static hostname: boris-manjaro23
      Icon name: computer-vm
        Chassis: vm 
     Machine ID: a40511262c5e4e96902bd833e128010a
        Boot ID: 8e9143ffb5a04aff81d5528c9282cd52
 Virtualization: kvm
Operating System: Manjaro Linux                    
         Kernel: Linux 6.7.0-0-MANJARO
   Architecture: x86-64
Hardware Vendor: QEMU
 Hardware Model: Standard PC _Q35 + ICH9, 2009_
Firmware Version: 1.16.3-1.fc39
  Firmware Date: Tue 2014-04-01
   Firmware Age: 9y 10month 1w                    
python3.12                                                                 Python 3.12.1 (main, Feb  7 2024, 09:08:17) [GCC 13.2.1 20230801] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>  
python3.11                                                                Python 3.11.6 (main, Nov 14 2023, 09:36:21) [GCC 13.2.1 20230801] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

$ sudo snap install pycharm-community --classic























r/ManjaroLinux status as of 02/09/24




Monday, February 5, 2024

Install Python 3.12 && Pycharm 2023.3 along with system-wide 3.11 on SparkyLinux 7.2 (kernel 6.7.3)

Pyenv is a tool for managing multiple Python versions. Once pyenv is installed you can easily switch between one project that uses Python 3.12 and a system-wide default Python 3.11, without any additional  doubt. Same schema would work on SparkyLinux 2024.1

boris@boris-sparky72:~$ sudo apt install build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python3-openssl git

boris@boris-sparky72:~$ git clone \ https://github.com/pyenv/pyenv.git ~/.pyenv
Cloning into '/home/boris/.pyenv'...
remote: Enumerating objects: 23800, done.
remote: Counting objects: 100% (2311/2311), done.
remote: Compressing objects: 100% (349/349), done.
remote: Total 23800 (delta 2036), reused 2128 (delta 1925), pack-reused 21489
Receiving objects: 100% (23800/23800), 4.75 MiB | 4.74 MiB/s, done.
Resolving deltas: 100% (16150/16150), done.
boris@boris-sparky72:~$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
boris@boris-sparky72:~$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
boris@boris-sparky72:~$ echo 'eval "$(pyenv init --path)"' >> ~/.bashrc
boris@boris-sparky72:~$ source ~/.bashrc
 
boris@boris-sparky72:~$ pyenv install 3.12.1
Downloading Python-3.12.1.tar.xz...
-> https://www.python.org/ftp/python/3.12.1/Python-3.12.1.tar.xz
Installing Python-3.12.1...
Installed Python-3.12.1 to /home/boris/.pyenv/versions/3.12.1

boris@boris-sparky72:~$ sudo snap install pycharm-community --classic
pycharm-community 2023.3.3 from jetbrains installed

boris@boris-sparky72:~$ pyenv global 3.12.1
boris@boris-sparky72:~$ python3.12
Python 3.12.1 (main, Feb  5 2024, 08:34:42) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

Any other user on Sparky 7.2 box would work with system wide 3.11.2

Switching Pycharm ( for user "boris") to 3.12.1 interpreter
















Thursday, February 1, 2024

Install Python 3.11 && PyCharm on openSUSE Tumbleweed along with Python 3.12

 Following post is a compilation from several sources, which looked unexpectedly complicated due to I was unable to find out the way of installation like on the known Linux flavors (Fedora,Debian,Ubuntu).  Actually "pyenv install 3.1(X)" appears to be the build via original python's tar ball. Before you can use a specific Python version, you need to install and configure pyenv. The last part of the post describes setup Python 3.12 along with 3.11.7 and switching PyCharm to python 3.12.1 interpreter. Current version of kernel on Tumbleweed is 6.7.2 .

Proceed as follows:

    Install the pyenv package:Your system is ready now. The pyenv command downloads the requested version, compiles it and stores it under ~/.pyenv/versions/. Once this is done, you can use your new Python version in the shell.

     $ sudo zypper install --details pyenv
    To obtain the most recent state of pyenv (updated 02/27/24) :
    $ git clone https://github.com/pyenv/pyenv.git ~/.pyenv
    Second option does allow setup Python 3.12.2 on Tumbleweed

    Install the following devel packages that are needed to build Python:

     $ sudo zypper install -y gcc automake bzip2 libbz2-devel \
       xz xz-devel openssl-devel ncurses-devel readline-devel \
       zlib-devel tk-devel libffi-devel sqlite3-devel \
       gdbm-devel make findutils patch

    Add the following lines to your ~/.bashrc file:

$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
        $ echo 'command -v pyenv >/dev/null ||  \
           export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
        $ echo 'eval "$(pyenv init -)"' >> ~/.bashrc
When done restart terminal session either issue exec $SHELL 
Install a Python version, for example 3.11:
 $ pyenv install 3.11  ( it builds via tar ball on Suse Tumbleweed )
  boris@localhost:~> pyenv install 3.11
  Downloading Python-3.11.7.tar.xz...
  -> https://www.python.org/ftp/python/3.11.7/Python-3.11.7.tar.xz
  Installing Python-3.11.7...
  Installed Python-3.11.7 to /home/boris/.pyenv/versions/3.11.7

Set this version for your specific user:

 $ pyenv global 3.11
Your system is ready now. The pyenv command downloads the requested 
version, compiles it and stores it under ~/.pyenv/versions/. 
Once this is done, you can use your new Python version in the shell.
Check if pip3 resolves to the local installation:
 $ pip3.11 --version
 pip 23.1.2 from /home/tux/.pyenv/versions/3.11.7/lib/python3.11/site-packages/pip (python 3.11)
You should see a directory that points to the user, not starting with /usr/.
Next "Howto" recommends installation PyCharm on Suse Tumleweed via snapd
Install pycharm-community on openSUSE   && now we are going to test 
Code provided in post Convertion format XLSX into CSV on Fedora 39 (Python 3.12.1)





























































Setup Python 3.12 along with 3.11.7
===========================
boris@localhost:~> pyenv install 3.12
Downloading Python-3.12.1.tar.xz...
Installing Python-3.12.1...
Installed Python-3.12.1 to /home/boris/.pyenv/versions/3.12.1
boris@localhost:~>pyenv global 3.11.7 3.12.1
boris@localhost:~> pip3.12 --version
pip 23.2.1 from /home/boris/.pyenv/versions/3.12.1/lib/python3.12/site-packages/pip (python 3.12)

Switching PyCharm to python 3.12.1














Import Numpy and matplotlib in PyCharm project running by Python 3.12.1 ( versions 3.11.7 and 3.12.1 running simaltenously on openSuse Tumbleweed kernel 6.7.2 )




I've just have decided to share this numbers. Looks like install PyCharm 2023.3.3 via snap on Tumbleweed and F39 is important to have issue with importing numpy, matplotlib, scipy, pandas, openpyxl and etc been resolved when Python 3.12  is used as project's interpeter .

UPDATE as of 02/07/24




References