Hi,
I wanted to invoke a numpy.linspace function and got an error:
The error info is in Polish, but the traceback is hopefully readable to
the most of you ;)
"
Wystąpił błąd podczas wykonywania kodu Pythona:
Traceback (most recent call last):
File
"/home/przemek/.qgis2/python/plugins/WarunkiZabudowy/warunkizabudowy.py", line
275, in doSomething
lookup_circle = self.circlePolygon(center=point_xy)
File
"/home/przemek/.qgis2/python/plugins/WarunkiZabudowy/warunkizabudowy.py", line
213, in circlePolygon
angles = np.linspace(0, 2*np.pi, nPoints, endpoint=False)
File "/usr/lib/python2.7/site-packages/numpy/core/function_base.py",
line 82, in linspace
num = int(num)
AttributeError: WarunkiZabudowy instance has no attribute '__trunc__'
Wersja Pythona:
2.7.8 (default, Sep 24 2014, 18:26:21)
[GCC 4.9.1 20140903 (prerelease)]
Wersja QGIS:
2.4.0-Chugiak Chugiak, ed14cf3
Lokalizacja Pythona: ['/usr/share/qgis/python/plugins/processing',
'/home/przemek/.qgis2/python/plugins/GeoCoding',
'/usr/share/qgis/python', u'/home/przemek/.qgis2/python',
u'/home/przemek/.qgis2/python/plugins',
'/usr/share/qgis/python/plugins',
'/usr/lib/python2.7/site-packages/ete2-2.2.1072-py2.7.egg',
'/home/przemek', '/usr/share/qgis/python', '/usr/lib/python27.zip',
'/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages',
'/usr/lib/python2.7/site-packages/gtk-2.0',
'/usr/lib/python2.7/site-packages/wx-3.0-gtk2',
'/home/przemek/.qgis2/python/plugins/QuickMultiAttributeEdit/forms',
'/usr/share/qgis/python/plugins/fTools/tools',
'/moje/work/GIAP/decyzje_o_WZ']
"
--
Cheers, Przemysław Gierski.
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer