-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu 20.04 is not supported? #321
Comments
you can use zig to compile this, it should use glibc 2.31 correctly just download zig The build results can be found under zig-out/lib |
according to this issue: ziglang/zig#4459, zig should support glibc 2.31 |
Thanks, I'll give it a try! Having releases that are more widely compatible would be a plus. Do you find it reasonable to have .github/workflows/linux.yml use zig by default? |
I think it's a better choice to use zig as a toolchain build, but that's up to @hassandraga and @ttytm decide |
indeed, zig is well-known for allowing cross-compilation of popular projects. I found it a very reasonable approach. @hassandraga @ttytm I would love to hear your thoughts on this |
I think Zig is an excellent build system, but webui is very simple to build. It has one On the other hand, some developers want to integrate webui as a submodule in their repo, so some need Zig, others need Cmake, Ninja... that's why it is a good thing to have those build systems as well. To fix |
@hassandraga @AlbertShown I really appreciate any help, do we have any updates on this? I use python version of webui2 and I really need this for my bachelor thesis. E.g. on newly installed ubuntu 20.04 even with installing the updates, you still get the glibc 2.31 and webui2 fails. I need users to be able to use my app out of the box just by installing the python packages and not the operating system dependencies. It currently works out of the box on Windows and MacOS but I also need to at least support Ubuntu and updating glibc is not the easiest thing for some casual user since it is one of the core libraries:( |
Long term fix
Quick fix / Workaround
|
@halildgn Let me know if you need any assistance. |
@AlbertShown Thank you very very much for responding in such a short time, really appreciate your help. |
1 - The 2 - I don't know, this is a open source project managed by the community. When majority of open issues get fixed and all new features get tested then a new version should be released, so maybe in a couple of months. I suggest you do the quick around solution for now.
|
Thank you again Albert, I tried the workaround and I had succcess but I am a little confused right now. From what I understand(Please forgive my ignorance) the linux.yml builds the app probably with CI pipeline after a new release comes around. My question is that even though this builds the files for the whole Linux ecosystem, it uses import distro if distro.id() == 'ubuntu' :
# I renamed the `webui.py` file as `webui_ubuntu.py`
import webui_ubuntu as webui
else:
# the remote package from pip
from webui import webui from sysimport platform if platform == 'linux':
# I renamed the `webui.py` file as `webui_linux.py`
import webui_linux as webui
else:
from webui import webui |
When linux.yml build for Ubuntu, it means it build for all Debian based Linux ditro, not only Ubuntu. The issue we have with linux.yml it's not Your project should simply be like: # Import local `webui.py`
import webui
MyWindow = webui.window()
MyWindow.show('<html><head><script src=\"webui.js\"></script></head> Hello World ! </html>')
webui.wait() Files:
How to get git clone https://github.com/webui-dev/webui.git Your |
If you do this, your manual compiled |
Thanks again, I already did what you mentioned above and it is already running. I just wanted to ask regarding importing but I understand from your message already that it is fine to just use the if platform == 'linux':
# I renamed the `webui.py` file as `webui_linux.py`
import webui_linux as webui
else:
from webui import webui |
Oh, sorry, I did not know that your project is targeting Windows and macOS as well. In this case, yes, importing local script only for Linux is the right thing to do. Glad that all works fine 👍 |
PR has been created: #357 |
First of all, thanks for the great work. Webui is an innovative project that takes a fresh approach to creating UIs with web technologies.
Now, the issue that I have is: Ubuntu 20.04 has glibc 2.31.
When I try to use webui I get the following error:
From v2.4.2 - v2.0.2, all versions required glibc
2.34
or2.33
. I guess Ubuntu 20.04 is not supported then?Unfortunately, that contradicts the promise of being "Portable" of Webui.
Is there any chance of a release that works with glibc 2.31?
The text was updated successfully, but these errors were encountered: