[Qgis-developer] fTools table join problem

John C. Tull jctull at gmail.com
Thu May 7 01:51:13 EDT 2009


Carson,

I'm trying to perform a table join using an existing shapefile and an  
external dbf file. I get the following error when I perform the task,  
but I am not sure why it is claiming the match columns (or one of  
them) is not string or numeric. I've used both string and numeric  
(integer) columns with the same result.

I can send you the table and shapefile in a separate email if that  
will help resolve this.

Thanks,
John

An error has occured while executing Python code:

Traceback (most recent call last):
   File "/Applications/qgis1.2.0.app/Contents/MacOS/share/qgis/python/ 
plugins/fTools/tools/doJoinAttributes.py", line 109, in accept
     self.compute(inName, inField, joinName, joinField, outPath, keep,  
useTable, self.progressBar)
   File "/Applications/qgis1.2.0.app/Contents/MacOS/share/qgis/python/ 
plugins/fTools/tools/doJoinAttributes.py", line 165, in compute
     table = map(lambda f: map(func, f), table)
   File "/Applications/qgis1.2.0.app/Contents/MacOS/share/qgis/python/ 
plugins/fTools/tools/doJoinAttributes.py", line 165, in
     table = map(lambda f: map(func, f), table)
   File "/Applications/qgis1.2.0.app/Contents/MacOS/share/qgis/python/ 
plugins/fTools/tools/doJoinAttributes.py", line 164, in
     func = lambda x: (unicode(type(x)) != "" and QVariant(float(x)))  
or (QVariant(x))
TypeError: float() argument must be a string or a number

Python version:
2.5.1 (r251:54863, Jan 13 2009, 10:26:13)
[GCC 4.0.1 (Apple Inc. build 5465)]

Python path:['/Applications/qgis1.2.0.app/Contents/MacOS/share/qgis/ 
python', '/Users/jctull/.qgis//python/plugins', '/Applications/ 
qgis1.2.0.app/Contents/MacOS/share/qgis/python/plugins', '/Library/ 
Frameworks/GDAL.framework/Versions/1.6/Python/site-packages', '/ 
Library/Python/2.5/site-packages/nose-0.11.0.dev_r560-py2.5.egg', '/ 
Library/Python/2.5/site-packages/setuptools-0.6c9-py2.5.egg', '/ 
Library/Python/2.5/site-packages/matplotlib-0.98.6svn-py2.5- 
macosx-10.3-i386.egg', '/Library/Python/2.5/site-packages/pytz-2008i- 
py2.5.egg', '/Library/Python/2.5/site-packages/py2app-0.3.6- 
py2.5.egg', '/Library/Python/2.5/site-packages/pyparsing-1.5.1- 
py2.5.egg', '/Library/Python/2.5/site-packages/PyOpenGL-3.0.0b8- 
py2.5.egg', '/Library/Python/2.5/site-packages/scipy-0.7.0-py2.5- 
macosx-10.5-i386.egg', '/Library/Python/2.5/site-packages/pyamg-1.0.0- 
py2.5-macosx-10.5-i386.egg', '/Library/Python/2.5/site-packages/ 
numpy-1.2.1-py2.5-macosx-10.5-i386.egg', '/Library/Python/2.5/site- 
packages/simplejson-2.0.9-py2.5-macosx-10.5-i386.egg', '/Library/ 
Python/2.5/site-packages/Shapely-1.0.11-py2.5.egg', '/Library/Python/ 
2.5/site-packages/psycopg2-2.0.9-py2.5-macosx-10.5-i386.egg', '/ 
Library/Python/2.5/site-packages/pymc-2.0-py2.5-macosx-10.3-i386.egg',  
'/usr/local/lib/wxPython-unicode-2.8.9.1/lib/python2.5/site-packages',  
'/usr/local/lib/wxPython-unicode-2.8.9.1/lib/python2.5/site-packages/ 
wx-2.8-mac-unicode', '/System/Library/Frameworks/Python.framework/ 
Versions/2.5/lib/python25.zip', '/System/Library/Frameworks/ 
Python.framework/Versions/2.5/lib/python2.5', '/System/Library/ 
Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin', '/ 
System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/plat-mac/lib-scriptpackages', '/System/Library/ 
Frameworks/Python.framework/Versions/2.5/Extras/lib/python', '/System/ 
Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib- 
tk', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/lib-dynload', '/Library/Python/2.5/site-packages', '/usr/ 
local/lib/wxPython-unicode-2.8.9.1/lib/python2.5', '/System/Library/ 
Frameworks/Python.framework/Versions/2.5/Extras/lib/python/PyObjC', '/ 
Applications/qgis1.2.0.app/Contents/MacOS/share/qgis/python/plugins/ 
fTools/tools']
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20090506/3ed7e2b0/attachment.html


More information about the Qgis-developer mailing list