Bug#1061828: r-cran-plotly: Can't create any plots
Hi again, Am Tue, Jan 30, 2024 at 08:58:58PM +0100 schrieb Przemysław Kopa: > > $ head -n 6 plotly_cran/lib/plotly-main-2.11.1/plotly-latest.min.js > /** > * plotly.js v2.11.1 > * Copyright 2012-2022, Plotly, Inc. > * All rights reserved. > * Licensed under the MIT license > */ I've updated plotly.js from upstream[1] to its latest version (2.28.0) and hope this is working nicely now (in Debian package 4.10.4+dfsg-2 just uploaded to unstable). If you want to make sure the plotly Debian package works always as expected I would love if you could try to convince CRAN plotly authors to include the uncompressed plotly.js source in their download tarball. In Debian compressed JS is considered binary without source. Thus I have to remove the compressed file and fetch the uncompressed one from upstream. Unfortunately I do not do this routinely when upgrading the plotly package which caused the observed problem. In any case thanks for your bug report and the accordin investigation Andreas. [1] https://github.com/plotly/plotly.js -- http://fam-tille.de
Bug#1061828: r-cran-plotly: Can't create any plots
Hi Przemysław, Am Tue, Jan 30, 2024 at 08:58:58PM +0100 schrieb Przemysław Kopa: > I've done some investigation. If you uninstall r-cran-plotly and then > install plotly directly from CRAN (same version), then the plot from the > example renders correctly: Thanks a lot, that's extremely helpful. I'll try to tackle this problem tomorrow. Kind regards Andreas. > $ sudo apt remove r-cran-plotly > > install.packages(pkgs = > "https://cran.r-project.org/package=plotly=4.10.1;, repos = NULL) > > library(plotly) > > plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length) # works fine! > > I've run the above example firstly with r-cran-plotly installed and then > with the CRAN version installed to see the differences in resulting > files. The only files that differ are 'index.html', 'plotly-latest.min.js' > and 'typedarray.min.js'. > > $ diff -qr plotly_packaged plotly_cran > Files plotly_packaged/index.html and plotly_cran/index.html differ > Files plotly_packaged/lib/plotly-main-2.11.1/plotly-latest.min.js and > plotly_cran/lib/plotly-main-2.11.1/plotly-latest.min.js differ > Files plotly_packaged/lib/typedarray-0.1/typedarray.min.js and > plotly_cran/lib/typedarray-0.1/typedarray.min.js differ > > HTML files are essentially identical, the only difference between them > lays in object id attributes, which are generated randomly. On the other > hand, plotly and typedarray js files are completely different and CRAN > versions appear to be newer, for example: > > $ head -n 6 plotly_cran/lib/plotly-main-2.11.1/plotly-latest.min.js > /** > * plotly.js v2.11.1 > * Copyright 2012-2022, Plotly, Inc. > * All rights reserved. > * Licensed under the MIT license > */ > > $ head -n 6 plotly_packaged/lib/plotly-main-2.11.1/plotly-latest.min.js > /** > * plotly.js v1.31.2 > * Copyright 2012-2017, Plotly, Inc. > * All rights reserved. > * Licensed under the MIT license > */ > > Therefore, I think there must be a problem with 'plotly-latest.min.js' > and 'typedarray.min.js' that are packaged in r-cran-plotly. Hope this > helps! > > Kind regards, > Przemyslaw > -- http://fam-tille.de
Bug#1061828: r-cran-plotly: Can't create any plots
I've done some investigation. If you uninstall r-cran-plotly and then install plotly directly from CRAN (same version), then the plot from the example renders correctly: $ sudo apt remove r-cran-plotly > install.packages(pkgs = "https://cran.r-project.org/package=plotly=4.10.1;, repos = NULL) > library(plotly) > plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length) # works fine! I've run the above example firstly with r-cran-plotly installed and then with the CRAN version installed to see the differences in resulting files. The only files that differ are 'index.html', 'plotly-latest.min.js' and 'typedarray.min.js'. $ diff -qr plotly_packaged plotly_cran Files plotly_packaged/index.html and plotly_cran/index.html differ Files plotly_packaged/lib/plotly-main-2.11.1/plotly-latest.min.js and plotly_cran/lib/plotly-main-2.11.1/plotly-latest.min.js differ Files plotly_packaged/lib/typedarray-0.1/typedarray.min.js and plotly_cran/lib/typedarray-0.1/typedarray.min.js differ HTML files are essentially identical, the only difference between them lays in object id attributes, which are generated randomly. On the other hand, plotly and typedarray js files are completely different and CRAN versions appear to be newer, for example: $ head -n 6 plotly_cran/lib/plotly-main-2.11.1/plotly-latest.min.js /** * plotly.js v2.11.1 * Copyright 2012-2022, Plotly, Inc. * All rights reserved. * Licensed under the MIT license */ $ head -n 6 plotly_packaged/lib/plotly-main-2.11.1/plotly-latest.min.js /** * plotly.js v1.31.2 * Copyright 2012-2017, Plotly, Inc. * All rights reserved. * Licensed under the MIT license */ Therefore, I think there must be a problem with 'plotly-latest.min.js' and 'typedarray.min.js' that are packaged in r-cran-plotly. Hope this helps! Kind regards, Przemyslaw
Bug#1061828: r-cran-plotly: Can't create any plots
Control: tags -1 help Hi Przemyslaw, thanks a lot for your bug report. Its a schame that you have issues with the packaged version of plotly. Am Mon, Jan 29, 2024 at 09:36:55PM +0100 schrieb Przemyslaw Kopa: >Tried a simple scatterplot example: > >library(plotly) >plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length) > >* What was the outcome of this action? > >Web browser opened with an empty page instead of a plot and there >were many JS errors in browser's console. Plotly.js version that comes >bundled with r-cran-plotly is very old, which is probably the cause of >those errors. Tried also 4.10.4 from testing - same result. I confirm I can reproduce the problem. When checking the html page source I get ... ... So its not really sure what actual package is responsible for the problem which ca also be caused by crosstalk, htmlwidgets, a non-fitting jquery etc. I've checked the browser console and can see things like NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIAppStartup.secondsSinceLastOSRestart] _collectStartupConditionsTelemetry resource:///modules/BrowserGlue.sys.mjs:1609 BG__onFirstWindowLoaded resource:///modules/BrowserGlue.sys.mjs:1717 BG_observe resource:///modules/BrowserGlue.sys.mjs:962 _delayedStartup chrome://browser/content/browser.js:2076 update.locale file doesn't exist in either the application or GRE directories UpdateUtils.sys.mjs:135:13 getLocale resource://gre/modules/UpdateUtils.sys.mjs:135 Given tab is not restoring. SessionStore.sys.mjs:6035:15 _resetLocalTabRestoringState resource:///modules/sessionstore/SessionStore.sys.mjs:6035 _restoreTabContentComplete resource:///modules/sessionstore/SessionStore.sys.mjs:6597 _restoreTabContent resource:///modules/sessionstore/SessionStore.sys.mjs:6468 I admit for the moment I do not have any idea and no clue what this might mean. Any help would be welcome. Kind regards Andreas. -- http://fam-tille.de
Bug#1061828: r-cran-plotly: Can't create any plots
Package: r-cran-plotly Version: 4.10.1+dfsg-2 Severity: important X-Debbugs-Cc: prz.k...@gmail.com Dear Maintainer, * What exactly did you do (or not do) that was effective (or ineffective)? Tried a simple scatterplot example: library(plotly) plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length) * What was the outcome of this action? Web browser opened with an empty page instead of a plot and there were many JS errors in browser's console. Plotly.js version that comes bundled with r-cran-plotly is very old, which is probably the cause of those errors. Tried also 4.10.4 from testing - same result. -- System Information: Debian Release: 12.4 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.1.0-17-amd64 (SMP w/6 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages r-cran-plotly depends on: ii libjs-jquery-selectize.js 0.12.6+dfsg-1.1 ii r-base-core [r-api-4.0]4.2.2.20221110-2 ii r-cran-base64enc 0.1-3-3 ii r-cran-colourpicker1.2.0+dfsg-1 ii r-cran-crosstalk 1.2.0+dfsg-1 ii r-cran-data.table 1.14.8+dfsg-1 ii r-cran-digest 0.6.31-1 ii r-cran-dplyr 1.0.10-1 ii r-cran-ggplot2 3.4.1+dfsg-1 ii r-cran-htmltools 0.5.4-1 ii r-cran-htmlwidgets 1.6.1+dfsg-1 ii r-cran-httr1.4.5+dfsg-1 ii r-cran-jsonlite1.8.4+dfsg-1 ii r-cran-lazyeval0.2.2-1+b1 ii r-cran-magrittr2.0.3-1 ii r-cran-promises1.2.0.1+dfsg-1 ii r-cran-purrr 1.0.1-1 ii r-cran-rcolorbrewer1.1-3-1 ii r-cran-rlang 1.0.6-1 ii r-cran-scales 1.2.1-1 ii r-cran-tibble 3.1.8+dfsg-1 ii r-cran-tidyr 1.3.0-1 ii r-cran-vctrs 0.5.2-1 ii r-cran-viridislite 0.4.1-1 Versions of packages r-cran-plotly recommends: pn r-cran-ggthemes pn r-cran-hexbin pn r-cran-maps pn r-cran-maptools pn r-cran-png pn r-cran-quantreg pn r-cran-reshape2 pn r-cran-rsclient pn r-cran-rversions pn r-cran-sf pn r-cran-testthat Versions of packages r-cran-plotly suggests: pn r-cran-broom pn r-cran-cairo ii r-cran-curl5.0.0+dfsg-1 pn r-cran-dendextend pn r-cran-devtools pn r-cran-forcats pn r-cran-ggalluvial pn r-cran-ggally pn r-cran-irdisplay ii r-cran-knitr 1.42+dfsg-1 ii r-cran-mass7.3-58.2-1 pn r-cran-palmerpenguins pn r-cran-processx pn r-cran-reticulate pn r-cran-rgeos ii r-cran-rmarkdown 2.20+dfsg-1 pn r-cran-rsvg ii r-cran-shiny 1.7.4+dfsg-2+deb12u1 pn r-cran-webshot -- no debconf information