I am reaching out due to an error message rendered while running a file on command prompt with Python. When typing this:
"C:UsersibrahAppDataRoamingMicrosoftWindowsStart MenuProgramsPython 3.12Waterfall Plot.py"
the following error message is rendered:
Traceback (most recent call last):
File "C:UsersibrahAppDataRoamingMicrosoftWindowsStart MenuProgramsPython 3.12Waterfall Plot.py", line 3, in <module>
fig = go.Figure(go.Waterfall(
^^^^^^^^^^^^^
File "C:UsersibrahAppDataLocalProgramsPythonPython312Libsite-packagesplotlygraph_objs_waterfall.py", line 2913, in __init__
self["connector"] = _v
~~~~^^^^^^^^^^^^^
File "C:UsersibrahAppDataLocalProgramsPythonPython312Libsite-packagesplotlybasedatatypes.py", line 4866, in __setitem__
self._set_compound_prop(prop, value)
File "C:UsersibrahAppDataLocalProgramsPythonPython312Libsite-packagesplotlybasedatatypes.py", line 5277, in _set_compound_prop
val = validator.validate_coerce(val, skip_invalid=self._skip_invalid)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:UsersibrahAppDataLocalProgramsPythonPython312Libsite-packages_plotly_utilsbasevalidators.py", line 2484, in validate_coerce
v = self.data_class(v, skip_invalid=skip_invalid, _validate=_validate)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:UsersibrahAppDataLocalProgramsPythonPython312Libsite-packagesplotlygraph_objswaterfall_connector.py", line 155, in __init__
self["line"] = _v
~~~~^^^^^^^^
File "C:UsersibrahAppDataLocalProgramsPythonPython312Libsite-packagesplotlybasedatatypes.py", line 4866, in __setitem__
self._set_compound_prop(prop, value)
File "C:UsersibrahAppDataLocalProgramsPythonPython312Libsite-packagesplotlybasedatatypes.py", line 5277, in _set_compound_prop
val = validator.validate_coerce(val, skip_invalid=self._skip_invalid)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:UsersibrahAppDataLocalProgramsPythonPython312Libsite-packages_plotly_utilsbasevalidators.py", line 2484, in validate_coerce
v = self.data_class(v, skip_invalid=skip_invalid, _validate=_validate)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:UsersibrahAppDataLocalProgramsPythonPython312Libsite-packagesplotlygraph_objswaterfallconnector_line.py", line 190, in __init__
self["color"] = _v
~~~~^^^^^^^^^
File "C:UsersibrahAppDataLocalProgramsPythonPython312Libsite-packagesplotlybasedatatypes.py", line 4874, in __setitem__
self._set_prop(prop, value)
File "C:UsersibrahAppDataLocalProgramsPythonPython312Libsite-packagesplotlybasedatatypes.py", line 5218, in _set_prop
raise err
File "C:UsersibrahAppDataLocalProgramsPythonPython312Libsite-packagesplotlybasedatatypes.py", line 5213, in _set_prop
val = validator.validate_coerce(val)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:UsersibrahAppDataLocalProgramsPythonPython312Libsite-packages_plotly_utilsbasevalidators.py", line 1383, in validate_coerce
self.raise_invalid_val(v)
File "C:UsersibrahAppDataLocalProgramsPythonPython312Libsite-packages_plotly_utilsbasevalidators.py", line 296, in raise_invalid_val
raise ValueError(
ValueError:
Invalid value of type 'builtins.str' received for the 'color' property of waterfall.connector.line
Received value: 'rgb(63, 63, 63))'
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
aliceblue, antiquewhite, aqua, aquamarine, azure,
beige, bisque, black, blanchedalmond, blue,
blueviolet, brown, burlywood, cadetblue,
chartreuse, chocolate, coral, cornflowerblue,
cornsilk, crimson, cyan, darkblue, darkcyan,
darkgoldenrod, darkgray, darkgrey, darkgreen,
darkkhaki, darkmagenta, darkolivegreen, darkorange,
darkorchid, darkred, darksalmon, darkseagreen,
darkslateblue, darkslategray, darkslategrey,
darkturquoise, darkviolet, deeppink, deepskyblue,
dimgray, dimgrey, dodgerblue, firebrick,
floralwhite, forestgreen, fuchsia, gainsboro,
ghostwhite, gold, goldenrod, gray, grey, green,
greenyellow, honeydew, hotpink, indianred, indigo,
ivory, khaki, lavender, lavenderblush, lawngreen,
lemonchiffon, lightblue, lightcoral, lightcyan,
lightgoldenrodyellow, lightgray, lightgrey,
lightgreen, lightpink, lightsalmon, lightseagreen,
lightskyblue, lightslategray, lightslategrey,
lightsteelblue, lightyellow, lime, limegreen,
linen, magenta, maroon, mediumaquamarine,
mediumblue, mediumorchid, mediumpurple,
mediumseagreen, mediumslateblue, mediumspringgreen,
mediumturquoise, mediumvioletred, midnightblue,
mintcream, mistyrose, moccasin, navajowhite, navy,
oldlace, olive, olivedrab, orange, orangered,
orchid, palegoldenrod, palegreen, paleturquoise,
palevioletred, papayawhip, peachpuff, peru, pink,
plum, powderblue, purple, red, rosybrown,
royalblue, rebeccapurple, saddlebrown, salmon,
sandybrown, seagreen, seashell, sienna, silver,
skyblue, slateblue, slategray, slategrey, snow,
springgreen, steelblue, tan, teal, thistle, tomato,
turquoise, violet, wheat, white, whitesmoke,
yellow, yellowgreen,
This has a link with an invalid value of type ‘builtins.str’ received for the ‘color’ property of waterfall.connector.line.
Does anyone know how can I execute this without getting through this error message?
Greetings.