~alpine/users

3 2

How to downgrade python3.12 to python 3.8 in Alpine 3.20.3?

Details
Message ID
<CAGT4=K+mtdjSDJ+Z6C93T7amAH+SnAaH6UJaPuqGycKOKe9Z4g@mail.gmail.com>
DKIM signature
missing
Download raw message
Hello,

My application requires python3.8 which was there in Alpine 3.12
I done the upgrade of Alpine from 3.12 to 3.20.3

Now my script breaks due to Python 3.12 in /usr/bin

apk del is unable to remove Python3.12

Any suggestions on how to achieve this? Thanks.

Regards,
Amey.
Details
Message ID
<CAGT4=KLC+pFeXwVrCJcwd9AZXr4MtuxqCo+ewK2o7i32e_LaXQ@mail.gmail.com>
In-Reply-To
<CAGT4=K+mtdjSDJ+Z6C93T7amAH+SnAaH6UJaPuqGycKOKe9Z4g@mail.gmail.com> (view parent)
DKIM signature
missing
Download raw message
Hello,

On Mon, 16 Sept 2024 at 08:36, Amey <sco1984@gmail.com> wrote:
>
> Hello,
>
> My application requires python3.8 which was there in Alpine 3.12
> I done the upgrade of Alpine from 3.12 to 3.20.3
>
> Now my script breaks due to Python 3.12 in /usr/bin

I forgot to mention that I am managing my python env using venv with
python3.8 packages.

The new venv in my Alpine=

alpine-test-vm# virtualenv --version
virtualenv 20.26.2 from /usr/lib/python3.12/site-packages/virtualenv/__init__.py

>
> apk del is unable to remove Python3.12
>
> Any suggestions on how to achieve this? Thanks.
>
> Regards,
> Amey.
Stuart Longland VK4MSL <me@vk4msl.com>
Details
Message ID
<660dc65e-fb45-404d-ad76-37212d160aae@vk4msl.com>
In-Reply-To
<CAGT4=K+mtdjSDJ+Z6C93T7amAH+SnAaH6UJaPuqGycKOKe9Z4g@mail.gmail.com> (view parent)
DKIM signature
missing
Download raw message
On 16/9/24 16:36, Amey wrote:
> My application requires python3.8 which was there in Alpine 3.12
> I done the upgrade of Alpine from 3.12 to 3.20.3

Wouldn't porting the application to Python 3.12 be a better solution?

I think to get Python 3.8 you'd have to download the sources and compile 
it by hand.  Trying to replace your system Python with 3.8 is asking for 
trouble.
-- 
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
   ...it's backed up on a tape somewhere.
Details
Message ID
<CAGT4=KLExWGqN5n-BcKfuBCCbQSTfACzvSaig4Uh8tz1v4tNmA@mail.gmail.com>
In-Reply-To
<CAGT4=KLC+pFeXwVrCJcwd9AZXr4MtuxqCo+ewK2o7i32e_LaXQ@mail.gmail.com> (view parent)
DKIM signature
missing
Download raw message
On Mon, 16 Sept 2024 at 09:06, Amey <sco1984@gmail.com> wrote:
>
> Hello,
>
> On Mon, 16 Sept 2024 at 08:36, Amey <sco1984@gmail.com> wrote:
> >
> > Hello,
> >
> > My application requires python3.8 which was there in Alpine 3.12
> > I done the upgrade of Alpine from 3.12 to 3.20.3
> >
> > Now my script breaks due to Python 3.12 in /usr/bin
>
> I forgot to mention that I am managing my python env using venv with
> python3.8 packages.
>
> The new venv in my Alpine=
>
> alpine-test-vm# virtualenv --version
> virtualenv 20.26.2 from /usr/lib/python3.12/site-packages/virtualenv/__init__.py

Following commands helped me to install packages using pip =

==============================================
virtualenv venv
python3 -m venv /home/user1/app-updater/venv/
user1@alpine-test-vm:~/app-updater/venv/bin# source activate
pip install docker
pip install toml
pip install websocket-client
......
===============================================

After installing all required packages using pip, the script started working.

>
> >
> > apk del is unable to remove Python3.12
> >
> > Any suggestions on how to achieve this? Thanks.
> >
> > Regards,
> > Amey.
Reply to thread Export thread (mbox)