mauroalberti / beePen

A Python plugin fo QuantumGIS that allows to draw freehand annotations in a layer
GNU General Public License v3.0
2 stars 1 forks source link

Python error in 3.36.3-Maidenhead - unexpected type float #5

Open Old-Bobcat6060 opened 5 months ago

Old-Bobcat6060 commented 5 months ago

Hello! On 3.36.3-Maidenhead I am getting a python error with beePen 0.2.4

I just installed beePen and tried to draw my first basic freehand line.

Here is the python error:

         TypeError: QgsRubberBand.setWidth(): argument 1 has unexpected type 'float'

2024-05-29T11:01:34 WARNING Traceback (most recent call last): File "C:\Users/eric/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\beePen\freehandeditingtool.py", line 96, in canvasPressEvent self.rubberband.setWidth(self.pencil_width * FreehandEditingTool.rubberband_conv_factor / self.canvas.scale()) # denominator is empirically-derived value ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: QgsRubberBand.setWidth(): argument 1 has unexpected type 'float'


QGIS version 3.36.3-Maidenhead QGIS code revision 2df96554
Qt version 5.15.13
Python version 3.12.3
GDAL/OGR version 3.9.0
PROJ version 9.4.0
EPSG Registry database version v11.004 (2024-02-24)
GEOS version 3.12.1-CAPI-1.18.1
SQLite version 3.45.1
PDAL version 2.6.3
PostgreSQL client version 16.2
SpatiaLite version 5.1.0
QWT version 6.2.0
QScintilla2 version 2.14.1
OS version Windows 11 Version 2009
       

Active Python plugins db_manager | 0.1.20 grassprovider | 2.12.99 MetaSearch | 0.3.6 processing | 2.12.99 beePen | 0.2.4

mauroalberti commented 5 months ago

Should be fixed in vers. 0.2.5 that is available in GITLAB (no longer GITHUB) at https://gitlab.com/alberese/beePen/-/tags/v0.2.5.

On Wed, May 29, 2024 at 6:12 PM Old-Bobcat6060 @.***> wrote:

Hello! On 3.36.3-Maidenhead I am getting a python error with beePen 0.2.4

I just installed beePen and tried to draw my first basic freehand line.

Here is the python error:

     TypeError: QgsRubberBand.setWidth(): argument 1 has unexpected type 'float'

2024-05-29T11:01:34 WARNING Traceback (most recent call last): File "C:\Users/eric/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\beePen\freehandeditingtool.py", line 96, in canvasPressEvent self.rubberband.setWidth(self.pencil_width * FreehandEditingTool.rubberband_conv_factor / self.canvas.scale()) # denominator is empirically-derived value

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: QgsRubberBand.setWidth(): argument 1 has unexpected type 'float'

QGIS version 3.36.3-Maidenhead QGIS code revision 2df96554 Qt version 5.15.13 Python version 3.12.3 GDAL/OGR version 3.9.0 PROJ version 9.4.0 EPSG Registry database version v11.004 (2024-02-24) GEOS version 3.12.1-CAPI-1.18.1 SQLite version 3.45.1 PDAL version 2.6.3 PostgreSQL client version 16.2 SpatiaLite version 5.1.0 QWT version 6.2.0 QScintilla2 version 2.14.1 OS version Windows 11 Version 2009

Active Python plugins db_manager 0.1.20 grassprovider 2.12.99 MetaSearch 0.3.6 processing 2.12.99 beePen 0.2.4

— Reply to this email directly, view it on GitHub https://github.com/mauroalberti/beePen/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAML73R546AYWZTCO66YBMDZEX47LAVCNFSM6AAAAABIPINATCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMZDGNZQGUZDCMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>