pacstall / pacup.py

Help maintainers update pacscripts
GNU General Public License v3.0
12 stars 3 forks source link

[Bug]: version `GLIBC_2.36' not found #202

Closed Zahrun closed 6 months ago

Zahrun commented 1 year ago

What happened?

[:~/Downloads] % wget https://github.com/pacstall/pacup/releases/download/2.1.0/pacup -q         
[:~/Downloads] % chmod +x ./pacup
[:~/Downloads] % ./pacup                                                                         
[581031] Error loading Python lib '/tmp/_MEIErZg9N/libpython3.11.so.1.0': dlopen: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.36' not found (required by /tmp/_MEIErZg9N/libexpat.so.1)

What do you expect to happen?

Be able to execute pacup in a jammy LTS base 'GLIBC_2.35'

Which pacscripts are affected?

All

Steps to reproduce

Execute release binary of pacup in a jammy LTS base

Version

Latest Release

Relevant log output

No response

Elsie19 commented 8 months ago

Sorry for the late response!!!! Have you since updated to mantic and seen a difference?

Zahrun commented 8 months ago

I am still using a jammy base on my main machine and the issue is still valid there Actually I am using pacup from pip, just wanted to open this issue to inform that the compiled version available from github release does not work with Ubuntu LTS

Zahrun commented 8 months ago

Which also affects pacstall -I pacup-bin

Elsie19 commented 8 months ago

Can you try with https://cdn.discordapp.com/attachments/839949845359624223/1190300297927606282/pacup?ex=65a14c89&is=658ed789&hm=dc4cc5b3f8faec6cf306ed240be96c37f766b05e571c4b9e3e37cb8b81c07e35& this file

Zahrun commented 8 months ago

[419103] Error loading Python lib '/tmp/_MEIVBAE5s/libpython3.11.so.1.0': dlopen: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /tmp/_MEIVBAE5s/libpython3.11.so.1.0)

Elsie19 commented 8 months ago

Can you please run ldd --version and send the text back?

Zahrun commented 8 months ago

ldd (Ubuntu GLIBC 2.35-0ubuntu3.5) 2.35 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Roland McGrath and Ulrich Drepper.

srd424 commented 6 months ago

It looks like the 2.1.0 release was built elsewhere and uploaded, rather than being generated by GHA. I've forked the repo and run the CD workflow and the generated binary works fine on jammy. I think someone just needs to kick GHA to rebuild + release?

Elsie19 commented 6 months ago

It looks like the 2.1.0 release was built elsewhere and uploaded, rather than being generated by GHA. I've forked the repo and run the CD workflow and the generated binary works fine on jammy. I think someone just needs to kick GHA to rebuild + release?

ok thanks for letting me know

srd424 commented 6 months ago

I needed #271 to actually produce a working binary, as well :)

Elsie19 commented 6 months ago

Hey @srd424 can you test https://github.com/pacstall/pacup/actions/runs/7945370506/artifacts/1253933928

srd424 commented 6 months ago

That sorts the glibc error, instead gives:

AttributeError: 'AsyncLock' object has no attribute '_anyio_lock'
[4056972] Failed to execute script '__main__' due to unhandled exception!

Which is the error I've been chasing down for the last 4 hours! (I'm not a python person so this stuff takes me forever.) #271 seems to fix it for me, not 100% sure why (see detail on the PR.)

Elsie19 commented 6 months ago

@srd424 @Zahrun https://github.com/pacstall/pacup/actions/runs/7945464415/artifacts/1253946854

Test please!

srd424 commented 6 months ago

Looks good!

srd424 commented 6 months ago

New binary has successfully updated oil for me, which is what I actually sat down to do yesterday afternoon, anyway :)

Elsie19 commented 6 months ago

Awesome, I'll get one of my python minions to make a new pacup release 😁

Elsie19 commented 6 months ago

Fixed in https://github.com/pacstall/pacstall-programs/commit/1c21e44b4e2cfe2b4dc4144e4af2a8bf08b5a09e

Zahrun commented 6 months ago

Can confirm 👍 Thanks