It works now!<br><br>Thanks, Richard.<br><br clear="all">-Arif<br><br><br><div class="gmail_quote">On Sun, Dec 18, 2011 at 12:49 AM, Richard Duivenvoorde <span dir="ltr"><<a href="mailto:richard@duif.net">richard@duif.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The next version will not show you this python error anymore, but a<br>
message that you have to install the python libs xlrd and xlwr...<br>
<br>
On Ubuntu<br>
<br>
just do<br>
<br>
sudo apt-get install xlwt xlrd<br>
<br>
this will install the nessecary python libraries which are needed to do<br>
the excel reading and writing<br>
<br>
(and you are invited to read the help from the xytools context menu :-) )<br>
<br>
Regards,<br>
<br>
Richard<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On 2011-12-17 17:55, Arif Arham wrote:<br>
> I work on Ubuntu 11.10, QGIS 1.7.3<br>
><br>
><br>
> ----start-------<br>
><br>
><br>
> An error has occured while executing Python code:<br>
><br>
> Traceback (most recent call last):<br>
>   File "/home/areev/.qgis/python/plugins/xytools/xytools.py", line 188,<br>
> in excelSave<br>
>     from providers import excel<br>
>   File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 283, in<br>
> _import<br>
>     mod = _builtin_import(name, globals, locals, fromlist, level)<br>
>   File "/home/areev/.qgis/python/plugins/xytools/providers/excel.py",<br>
> line 1, in<br>
>     import xlwt<br>
>   File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 283, in<br>
> _import<br>
>     mod = _builtin_import(name, globals, locals, fromlist, level)<br>
> ImportError: No module named xlwt<br>
><br>
> Python version:<br>
> 2.7.2+ (default, Oct  4 2011, 20:29:37)<br>
> [GCC 4.6.1]<br>
><br>
><br>
> QGIS version:<br>
> 1.7.3-Wroclaw Wroclaw, exported<br>
><br>
> Python path: ['/usr/share/qgis/python', '/home/areev/.qgis/python',<br>
> '/home/areev/.qgis/python/plugins', '/usr/share/qgis/python/plugins',<br>
> '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2',<br>
> '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old',<br>
> '/usr/lib/python2.7/lib-dynload',<br>
> '/usr/local/lib/python2.7/dist-packages',<br>
> '/usr/lib/python2.7/dist-packages',<br>
> '/usr/lib/python2.7/dist-packages/PIL',<br>
> '/usr/lib/python2.7/dist-packages/gst-0.10',<br>
> '/usr/lib/python2.7/dist-packages/gtk-2.0',<br>
> '/usr/lib/pymodules/python2.7',<br>
> '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',<br>
> '/usr/lib/python2.7/dist-packages/ubuntuone-client',<br>
> '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',<br>
> '/usr/lib/python2.7/dist-packages/ubuntuone-couch',<br>
> '/usr/lib/python2.7/dist-packages/ubuntuone-installer',<br>
> '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol',<br>
> '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode',<br>
> '/home/areev/.qgis/python/plugins/openlayersov/logic',<br>
> '/home/areev/.qgis/python/plugins/openlayersov/gui',<br>
> '/usr/share/qgis/python/plugins/fTools/tools']<br>
><br>
><br>
> ------end-----------<br>
><br>
><br>
> On Sat, Dec 17, 2011 at 3:14 PM, Richard Duivenvoorde<br>
</div></div><div class="HOEnZb"><div class="h5">> <<a href="mailto:rdmailings@duif.net">rdmailings@duif.net</a> <mailto:<a href="mailto:rdmailings@duif.net">rdmailings@duif.net</a>>> wrote:<br>
><br>
>     On 2011-12-17 00:57, Arif Arham wrote:<br>
>     > I got a problem when executing "Save attribute table as Excel file".<br>
>     ><br>
>     >         An error has occured while executing Python code:<br>
>     ><br>
>     >        .....<br>
>     ><br>
>     > In fact, several plugins end with this kind of errors. Is it python's<br>
>     > bug or plugin's bug?<br>
><br>
>     can you give more info? In this mail I cannot see the actual message<br>
>     also not here:<br>
>     <a href="http://osgeo-org.1803224.n2.nabble.com/new-xytools-plugin-now-open-and-save-simple-Excel-files-td7098439.html#a7101831" target="_blank">http://osgeo-org.1803224.n2.nabble.com/new-xytools-plugin-now-open-and-save-simple-Excel-files-td7098439.html#a7101831</a><br>

><br>
>     You can sent me a screendump or copy the full message from the error<br>
>     window.<br>
>     Otherwise, let me know which OS and Qgis version you use, and/or sent me<br>
>     the data that is throwing the error.<br>
><br>
>     Regards,<br>
><br>
>     Richard<br>
><br>
><br>
<br>
</div></div></blockquote></div><br>