01-06-2010, 14:46
Witam,
nie jestem programistą, więc pytanie mam bardzo podstawowe...
jeżeli w QGISie wyskakuje mi błąd Pythona, może to oznaczać, że coś z Pythonem na moim komputerze jest nie tak? czy to problem w programie...?
np. nie mogę stworzyć macierzy odległości bo:
Wystąpił błąd podczas wykonywania kodu Pythona:
Traceback (most recent call last):
File "Crogram FilesQuantum GIS EnceladuspythonpluginsfTools oolsdoPointDistance.py", line 105, in accept
self.compute(point1, point2, field1, field2, outPath, matType, nearest, self.progressBar)
File "Crogram FilesQuantum GIS EnceladuspythonpluginsfTools oolsdoPointDistance.py", line 150, in compute
self.linearMatrix(writer, provider1, provider2, index1, index2, nearest, distArea, matType, sindex, progressBar)
File "Crogram FilesQuantum GIS EnceladuspythonpluginsfTools oolsdoPointDistance.py", line 191, in linearMatrix
add = 85.00 / provider1.featureCount()
ZeroDivisionError: float division
Wersja Pythona:
2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
Lokalizacja Pythona: ['C:/Program Files/Quantum GIS Enceladus/./python', 'C:/Documents and Settings/Justyna/.qgis//python', 'C:/Documents and Settings/Justyna/.qgis//python/plugins', 'C:/Program Files/Quantum GIS Enceladus/./python/plugins', 'C:\Program Files\Quantum GIS Enceladus\bin\python25.zip', 'C:\Python25\Lib', 'C:\Python25\DLLs', 'C:\Python25\Lib\lib-tk', 'C:\Program Files\Quantum GIS Enceladus', 'C:\Program Files\Quantum GIS Enceladus\bin', 'C:\Python25', 'C:\Python25\lib\site-packages', 'C:\Program Files\Quantum GIS Enceladus\python\plugins\fTools\tools']
znalazłam już jaki był błąd (mój) wskazane pole z unikalnym ID nie miało unikalnych ID - niektóre wartości były NULL i po zmianie macierz się bez problemu utworzyła
w takim razie mam troche inne pytanie:
pracuję w QGIS 1.4.0 i jeżeli spotykam takie błędy (błąd Pythona) to prawdopodobnie jak w tym przypadku błąd leży po mojej stronie??
nie jestem programistą, więc pytanie mam bardzo podstawowe...
jeżeli w QGISie wyskakuje mi błąd Pythona, może to oznaczać, że coś z Pythonem na moim komputerze jest nie tak? czy to problem w programie...?
np. nie mogę stworzyć macierzy odległości bo:
Wystąpił błąd podczas wykonywania kodu Pythona:
Traceback (most recent call last):
File "Crogram FilesQuantum GIS EnceladuspythonpluginsfTools oolsdoPointDistance.py", line 105, in accept
self.compute(point1, point2, field1, field2, outPath, matType, nearest, self.progressBar)
File "Crogram FilesQuantum GIS EnceladuspythonpluginsfTools oolsdoPointDistance.py", line 150, in compute
self.linearMatrix(writer, provider1, provider2, index1, index2, nearest, distArea, matType, sindex, progressBar)
File "Crogram FilesQuantum GIS EnceladuspythonpluginsfTools oolsdoPointDistance.py", line 191, in linearMatrix
add = 85.00 / provider1.featureCount()
ZeroDivisionError: float division
Wersja Pythona:
2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
Lokalizacja Pythona: ['C:/Program Files/Quantum GIS Enceladus/./python', 'C:/Documents and Settings/Justyna/.qgis//python', 'C:/Documents and Settings/Justyna/.qgis//python/plugins', 'C:/Program Files/Quantum GIS Enceladus/./python/plugins', 'C:\Program Files\Quantum GIS Enceladus\bin\python25.zip', 'C:\Python25\Lib', 'C:\Python25\DLLs', 'C:\Python25\Lib\lib-tk', 'C:\Program Files\Quantum GIS Enceladus', 'C:\Program Files\Quantum GIS Enceladus\bin', 'C:\Python25', 'C:\Python25\lib\site-packages', 'C:\Program Files\Quantum GIS Enceladus\python\plugins\fTools\tools']
znalazłam już jaki był błąd (mój) wskazane pole z unikalnym ID nie miało unikalnych ID - niektóre wartości były NULL i po zmianie macierz się bez problemu utworzyła
w takim razie mam troche inne pytanie:
pracuję w QGIS 1.4.0 i jeżeli spotykam takie błędy (błąd Pythona) to prawdopodobnie jak w tym przypadku błąd leży po mojej stronie??