{
"ExceptionDetails": {
"Type": "TypeError",
"Message": "'NoneType' object does not support item assignment"
},
"Environment": {
"Qgis Version": "3.40.5-Bratislava",
"Operating System": "linux",
"Locale": "en"
},
"Trace": [
{
"Name": "draw",
"Filename": "plot_layout_item.py",
"LineNo": 157,
"Variables": {
"self": "<DataPlotly.layouts.plot_layout_item.PlotLayoutItem object at 0x714ef3fdbe30>",
"context": "<qgis._core.QgsLayoutItemRenderContext object at 0x714ef3fdab10>"
}
},
{
"Name": "load_content",
"Filename": "plot_layout_item.py",
"LineNo": 223,
"Variables": {
"self": "<DataPlotly.layouts.plot_layout_item.PlotLayoutItem object at 0x714ef3fdbe30>",
"base_url": "PyQt5.QtCore.QUrl('file:///tmp/tmpygrqthq_/3bamaryl_stat.qgs')"
}
},
{
"Name": "create_plot",
"Filename": "plot_layout_item.py",
"LineNo": 194,
"Variables": {
"self": "<DataPlotly.layouts.plot_layout_item.PlotLayoutItem object at 0x714ef3fdbe30>",
"polygon_filter": "None",
"visible_features_only": "False",
"config": "{'displayModeBar': False, 'staticPlot': True}",
"plot_factory": "<DataPlotly.core.plot_factory.PlotFactory object at 0x714ef3fda960>",
"pl": "[Bar({\n 'customdata': [date_releve],\n 'ids': [],\n 'marker': {'color': '#33a02c',\n 'colorbar': {'len': 0.8},\n 'colorscale': [[0.0, 'rgb(255,255,255)'], [0.125,\n 'rgb(240,240,240)'], [0.25, 'rgb(217,217,217)'],\n [0.375, 'rgb(189,189,189)'], [0.5,\n 'rgb(150,150,150)'], [0.625, 'rgb(115,115,115)'],\n [0.75, 'rgb(82,82,82)'], [0.875, 'rgb(37,37,37)'],\n [1.0, 'rgb(0,0,0)']],\n 'line': {'color': '#33a02c', 'width': 1.0},\n 'reversescale': False,\n 'showscale': False},\n 'name': 'densite',\n 'opacity': 1.0,\n 'orientation': 'v',\n 'text': [],\n 'textposition': 'auto',\n 'x': [],\n 'y': []\n}), Scatter({\n 'customdata': [date_releve],\n 'ids': [],\n 'line': {'dash': 'solid', 'width': 3.0},\n 'marker': {'color': '#000000',\n 'colorbar': {'len': 0.8},\n 'line': {'color': '#000000', 'width': 3.0},\n 'reversescale': False,\n 'showscale': False,\n 'size': 10.0,\n 'symbol': 0},\n 'mode': 'markers',\n 'opacity': 0.6,\n 'text': [],\n 'textposition': 'top center',\n 'x': [],\n 'y': []\n})]",
"current": "2",
"plot_setting": "<DataPlotly.core.plot_settings.PlotSettings object at 0x714ef351d010>",
"factory": "<DataPlotly.core.plot_factory.PlotFactory object at 0x714ef3fda4e0>"
}
},
{
"Name": "__init__",
"Filename": "plot_factory.py",
"LineNo": 117,
"Variables": {
"self": "<DataPlotly.core.plot_factory.PlotFactory object at 0x714f08005490>",
"settings": "<DataPlotly.core.plot_settings.PlotSettings object at 0x714ef351d010>",
"context_generator": "<DataPlotly.layouts.plot_layout_item.PlotLayoutItem object at 0x714ef3fdbe30>",
"visible_region": "None",
"polygon_filter": "None",
"__class__": "<class 'DataPlotly.core.plot_factory.PlotFactory'>"
}
},
{
"Name": "rebuild",
"Filename": "plot_factory.py",
"LineNo": 446,
"Variables": {
"self": "<DataPlotly.core.plot_factory.PlotFactory object at 0x714f08005490>"
}
},
{
"Name": "_build_layout",
"Filename": "plot_factory.py",
"LineNo": 476,
"Variables": {
"self": "<DataPlotly.core.plot_factory.PlotFactory object at 0x714f08005490>"
}
},
{
"Name": "create_layout",
"Filename": "scatter.py",
"LineNo": 70,
"Variables": {
"settings": "<DataPlotly.core.plot_settings.PlotSettings object at 0x714ef3f0b7a0>",
"__class__": "<class 'DataPlotly.core.plot_types.scatter.ScatterPlotFactory'>"
}
},
{
"Name": "create_layout",
"Filename": "plot_type.py",
"LineNo": 101,
"Variables": {
"settings": "<DataPlotly.core.plot_settings.PlotSettings object at 0x714ef3f0b7a0>",
"y_title": "None",
"x_title": "None",
"range_x": "None",
"range_y": "None",
"bg_color": "rgba(0,0,0,0)",
"title": "None"
}
}
]
}
Describe the bug
When I open a layout, I have several time this Python error showing up :
From Python First AID plugin
{ "ExceptionDetails": { "Type": "TypeError", "Message": "'NoneType' object does not support item assignment" }, "Environment": { "Qgis Version": "3.40.5-Bratislava", "Operating System": "linux", "Locale": "en" }, "Trace": [ { "Name": "draw", "Filename": "plot_layout_item.py", "LineNo": 157, "Variables": { "self": "<DataPlotly.layouts.plot_layout_item.PlotLayoutItem object at 0x714ef3fdbe30>", "context": "<qgis._core.QgsLayoutItemRenderContext object at 0x714ef3fdab10>" } }, { "Name": "load_content", "Filename": "plot_layout_item.py", "LineNo": 223, "Variables": { "self": "<DataPlotly.layouts.plot_layout_item.PlotLayoutItem object at 0x714ef3fdbe30>", "base_url": "PyQt5.QtCore.QUrl('file:///tmp/tmpygrqthq_/3bamaryl_stat.qgs')" } }, { "Name": "create_plot", "Filename": "plot_layout_item.py", "LineNo": 194, "Variables": { "self": "<DataPlotly.layouts.plot_layout_item.PlotLayoutItem object at 0x714ef3fdbe30>", "polygon_filter": "None", "visible_features_only": "False", "config": "{'displayModeBar': False, 'staticPlot': True}", "plot_factory": "<DataPlotly.core.plot_factory.PlotFactory object at 0x714ef3fda960>", "pl": "[Bar({\n 'customdata': [date_releve],\n 'ids': [],\n 'marker': {'color': '#33a02c',\n 'colorbar': {'len': 0.8},\n 'colorscale': [[0.0, 'rgb(255,255,255)'], [0.125,\n 'rgb(240,240,240)'], [0.25, 'rgb(217,217,217)'],\n [0.375, 'rgb(189,189,189)'], [0.5,\n 'rgb(150,150,150)'], [0.625, 'rgb(115,115,115)'],\n [0.75, 'rgb(82,82,82)'], [0.875, 'rgb(37,37,37)'],\n [1.0, 'rgb(0,0,0)']],\n 'line': {'color': '#33a02c', 'width': 1.0},\n 'reversescale': False,\n 'showscale': False},\n 'name': 'densite',\n 'opacity': 1.0,\n 'orientation': 'v',\n 'text': [],\n 'textposition': 'auto',\n 'x': [],\n 'y': []\n}), Scatter({\n 'customdata': [date_releve],\n 'ids': [],\n 'line': {'dash': 'solid', 'width': 3.0},\n 'marker': {'color': '#000000',\n 'colorbar': {'len': 0.8},\n 'line': {'color': '#000000', 'width': 3.0},\n 'reversescale': False,\n 'showscale': False,\n 'size': 10.0,\n 'symbol': 0},\n 'mode': 'markers',\n 'opacity': 0.6,\n 'text': [],\n 'textposition': 'top center',\n 'x': [],\n 'y': []\n})]", "current": "2", "plot_setting": "<DataPlotly.core.plot_settings.PlotSettings object at 0x714ef351d010>", "factory": "<DataPlotly.core.plot_factory.PlotFactory object at 0x714ef3fda4e0>" } }, { "Name": "__init__", "Filename": "plot_factory.py", "LineNo": 117, "Variables": { "self": "<DataPlotly.core.plot_factory.PlotFactory object at 0x714f08005490>", "settings": "<DataPlotly.core.plot_settings.PlotSettings object at 0x714ef351d010>", "context_generator": "<DataPlotly.layouts.plot_layout_item.PlotLayoutItem object at 0x714ef3fdbe30>", "visible_region": "None", "polygon_filter": "None", "__class__": "<class 'DataPlotly.core.plot_factory.PlotFactory'>" } }, { "Name": "rebuild", "Filename": "plot_factory.py", "LineNo": 446, "Variables": { "self": "<DataPlotly.core.plot_factory.PlotFactory object at 0x714f08005490>" } }, { "Name": "_build_layout", "Filename": "plot_factory.py", "LineNo": 476, "Variables": { "self": "<DataPlotly.core.plot_factory.PlotFactory object at 0x714f08005490>" } }, { "Name": "create_layout", "Filename": "scatter.py", "LineNo": 70, "Variables": { "settings": "<DataPlotly.core.plot_settings.PlotSettings object at 0x714ef3f0b7a0>", "__class__": "<class 'DataPlotly.core.plot_types.scatter.ScatterPlotFactory'>" } }, { "Name": "create_layout", "Filename": "plot_type.py", "LineNo": 101, "Variables": { "settings": "<DataPlotly.core.plot_settings.PlotSettings object at 0x714ef3f0b7a0>", "y_title": "None", "x_title": "None", "range_x": "None", "range_y": "None", "bg_color": "rgba(0,0,0,0)", "title": "None" } } ] }To Reproduce
Steps to reproduce the behavior:
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.