python syntax errors in utils.py,_candlestick.py,_ohlc.py,renderer.py

Bug #1875992 reported by Chris Hermansen
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
plotly (Debian)
Fix Released
Unknown
plotly (Ubuntu)
New
Undecided
Unassigned

Bug Description

Re-installing QGIS 3.12.2 Bucaresti using apt install after upgrade from 19.10 to 20.04 I received the following warnings coming from the Ubuntu plotly package:

Setting up python3-plotly (4.4.1+dfsg-1) ...
/usr/lib/python3/dist-packages/_plotly_utils/utils.py:214: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if (iso_string.split("-")[:3] is "00:00") or (iso_string.split("+")[0] is "00:00"):
/usr/lib/python3/dist-packages/_plotly_utils/utils.py:214: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if (iso_string.split("-")[:3] is "00:00") or (iso_string.split("+")[0] is "00:00"):
/usr/lib/python3/dist-packages/plotly/figure_factory/_candlestick.py:194: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if direction is "increasing":
/usr/lib/python3/dist-packages/plotly/figure_factory/_candlestick.py:199: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif direction is "decreasing":
/usr/lib/python3/dist-packages/plotly/figure_factory/_ohlc.py:176: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if direction is "increasing":
/usr/lib/python3/dist-packages/plotly/figure_factory/_ohlc.py:179: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif direction is "decreasing":
/usr/lib/python3/dist-packages/plotly/matplotlylib/renderer.py:460: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if props["offset_coordinates"] is "data":
/usr/lib/python3/dist-packages/plotly/matplotlylib/renderer.py:572: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if props["coordinates"] is not "data":

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: python3-plotly 4.4.1+dfsg-1
ProcVersionSignature: Ubuntu 5.4.0-28.32-generic 5.4.30
Uname: Linux 5.4.0-28-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Wed Apr 29 15:31:56 2020
InstallationDate: Installed on 2019-04-24 (371 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
PackageArchitecture: all
SourcePackage: plotly
UpgradeStatus: Upgraded to focal on 2020-04-28 (1 days ago)

Revision history for this message
Chris Hermansen (c-hermansen) wrote :
Changed in plotly (Debian):
status: Unknown → Fix Released
Revision history for this message
Chris Hermansen (c-hermansen) wrote :

Thanks to upstream for being all over this!

And please pardon my ignorance, but given that this appears to be getting fixed in version 4.6, how will (or will) that make its way back to Ubuntu 20.04?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.