-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
on air not working with ui.charts #1279
Comments
That's bad... Thanks for reporting, @jdess! |
Strange, I can't reproduce the issue. I tested with the original relay server, a local test instance, with Python 3.11 and 3.10. |
Hello @falkoschindler, thank you for the fast reply. I just double-checked the issue and it persists: The complete |
I've already spend the morning on this and have some clue about whats going on. I hope to fix it tomorrow and create a pull request which we could release in 1.3.7. |
Hello @falkoschindler and @rodja, Thank you for working on this issue so quickly. I just tried out the new 1.3.7 release of NiceGUI and, unfortunately, I'm still facing the same issue. Here is what I did:
When opening the link to the on-air website, the highcharts files are still not available: In case it helps, here is the list of installed packages in my virtual environment from
Please let me know if providing any additional information helps. |
Wow! We totally missed the |
Sounds good, I'll give it a try when the new version becomes available. |
1.3.8 has just been released. |
Ok. We will get to the bottom of this 🔬 nicegui/nicegui/dependencies.py Lines 90 to 100 in 34db9b7
Could you try your test code with a fresh docker container? Something like docker run --rm -it -v $(pwd):/app/ zauberzeug/nicegui:1.3.8 |
Hi @rodja, if I don't misinterpret the listing of available files for the on-air instance (see screenshot above), the complete libraries folder does not get published in my case. I'll probably only get to testing the docker container later this week and will let you know what I found out when I had time to do so. |
We just found a tiny but crucial bug in our hash computation. Commit d9186ab replaces it with an OS-independent solution that should fix this issue for you (and all other Windows users 🤦🏻♂️). |
Perfect 👍 |
Just noticed that release 1.3.9 is already there. I can confirm that the minimal example now works correctly. Thank you! |
What a relief. Thank you so much for being so persistent @jdess ❤️. Your testing unveiled this crucial bug. I admit, it took to long to figure it out. But at least it is now fixed. |
Description
Hello,
When trying to launch an application on air (nicegui version 1.3.6, Python 3.10.1) which contains a
ui.chart
object, the page does not load because the Highcharts javascript files are not available. The expectation is that on-air instances work with Highchart plots as they do with local instances.Below is a minimal example which fails:
The error message of the on-air website in the browser are as follows:
When trying to add additional resources like
extras=['exporting']
, these files will also not be available.It seems like the CDN of the on-air instance does not publish the Highcharts javascript files. Somewhat related (but possibly a separate issue) is that files published with
app.add_static_file(s)
are also not available with on-air instances.Thank you
The text was updated successfully, but these errors were encountered: