<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Il 29/01/2022 15:44, froso tsartinoglou ha scritto:<br>
<blockquote type="cite"
cite="mid:CAN_xP7uS8JZumLtZN-ziw0fJvYz1w9H_LeMxCkYt8Xaa+BpSqQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">I have downloaded theĀ 3.16.14 version QGIS and the
visualist version iw 0.6</div>
</blockquote>
<br>
<blockquote type="cite"
cite="mid:CAN_xP7uS8JZumLtZN-ziw0fJvYz1w9H_LeMxCkYt8Xaa+BpSqQ@mail.gmail.com">
<div dir="ltr">
<div>The error every time I try to run it is:</div>
</div>
</blockquote>
<br>
<blockquote type="cite"
cite="mid:CAN_xP7uS8JZumLtZN-ziw0fJvYz1w9H_LeMxCkYt8Xaa+BpSqQ@mail.gmail.com">
<div dir="ltr">
<div><span style="color:rgb(255,0,0)">File
"C:\Users/froso/AppData/Roaming/QGIS/QGIS3\profiles\FROSO/python/plugins\visualist\pysal\lib\io\util\shapefile.py",
line 155, in _unpackDict2</span><br>
<span style="color:rgb(255,0,0)"></span>
<p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)">result.fromstring(fileObj.read(result.itemsize * n))
AttributeError: 'array.array' object has no attribute 'fromstring'
</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)">Execution failed after 0.04 seconds</span></p>
</div>
<div></div>
</div>
<div dir="ltr"></div>
</blockquote>
<br>
Hi Froso,<br>
has written before, if you are using MS Windows OS, it may be useful
to specify what installer have you used to install QGIS.<br>
<br>
Anyway, looking at the error message, I guess you used the new
OSGeo4W .msi Standalone Installer or the new (v2) Network Installer.<br>
<br>
In this case the error is due to the fact that the new (msi/v2)
installers for QGIS 3.16 ship Python 3.9 (while the old exe/v1
installers ship Python 3.7).<br>
<br>
The version 0.6 of the plugin doesn't work correctly with Python 3.9
(while it should work with Python 3.7) because the array.array
fromstring() method has been removed in Python 3.9.<br>
<br>
If you need to use the version 0.6 of the plugin with QGIS 3.16 on
Windows, you need to install QGIS 3.16 using the old .exe Standalone
Installer or the old v1 Network Installer.<br>
<br>
Otherwise you could install QGIS 3.22 (which is only available via
the new OSGeo4W msi/v2 installers) and use the version 0.7 of the
plugin, which should work with Python 3.9.<br>
<br>
Best regards.<br>
<br>
Andrea<br>
</body>
</html>