Re: Bug#1061828: r-cran-plotly: Can't create any plots

2024-01-30 Thread Andreas Tille
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



Re: Bug#1061828: r-cran-plotly: Can't create any plots

2024-01-30 Thread 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:

$ 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



Re: Bug#1061828: r-cran-plotly: Can't create any plots

2024-01-30 Thread Andreas Tille
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



Re: Bug#1043240: transition: pandas 1.5 -> 2.1 - please upload fixes

2024-01-30 Thread PICCA Frederic-Emmanuel
for dials it seems that the CI works with pandas 2.1 from experimental.

https://ci.debian.net/packages/d/dials/unstable/amd64/41962612/#S4


- Le 30 Jan 24, à 9:05, Rebecca N. Palmer rebecca_pal...@zoho.com a écrit :

> I intend to upload pandas 2.x to unstable soon.  These packages have a
> patch in their bug - please upload them (I'm a DM, I can't do that), or
> if you think this patch won't work or isn't a good idea, tell me why:
> dials influxdb-python python-altair python-feather-format seaborn tqdm
> 
> In particular, I'd like the seaborn fix uploaded before pandas, so I can
> set Breaks for it.  (The pandas documentation build-depends on seaborn.)



Re: Bug#1043240: transition: pandas 1.5 -> 2.1 - please upload fixes

2024-01-30 Thread Rebecca N. Palmer
I intend to upload pandas 2.x to unstable soon.  These packages have a 
patch in their bug - please upload them (I'm a DM, I can't do that), or 
if you think this patch won't work or isn't a good idea, tell me why:

dials influxdb-python python-altair python-feather-format seaborn tqdm

In particular, I'd like the seaborn fix uploaded before pandas, so I can 
set Breaks for it.  (The pandas documentation build-depends on seaborn.)