[Qgis-user] XYtools needs Excel python modules

Healthmaps rhoskins at u.washington.edu
Sat Aug 11 22:04:07 PDT 2012


OK, I got something to happen. (certainly no fault of mine ... thank you!)

I finally understood what you meant by "console" so I made a file qgisEx.bat
with the code

cd /d c:\dist\xlrd-0.8.0
C:\Python27\python.exe setup.py install


and upon execution I got a screen full of stuff in the DOS box. I detected nothing that said "error" , etc. It looks like it worked.

I found a c:\python27\Lib\site-packages\xlrd which has folders doc and examples and then a bunch of .pyc and .py files

But upon trying out XYtools in QGIS 1.8 again to read in a Excel file, I got the same error message about needing xlrd Python modules.

Looking at the XYtools folder in C:\Documents and Settings\healthmaps\.qgis\python\plugins\xytools\docs\index.html I found the following:

"(to use this functionality you should have the python-uno library installed. For Linux you can probably install it via your package manager. On Windows it is harder: you can install it via the normal installer as addition/module, but there seems to be an error with the python path. The plugin cannot find it. If somebody knows a solution for this, please let me know. )"

Apparently Windows users have figured this out or none of them have used it, and for you a Mac user, it works. I see that in Windows QGIS puts the plugins in  
C:\Documents and Settings\Healthmaps\.qgis\python\plugins\ subfolders for each plugin. But some code somewhere does not have the right code to find the xlrd module.

Thanks for you help. NOt sure what to do next

Richard 
Anchorage, AK



On Sat, 11 Aug 2012, Noli Sicad [via OSGeo.org] wrote:

> > What is this? > > "Open console (i.e. Terminal) in that directory (e.g. xlrd-0.8.0 directory). > Be sure you are in this directory /
> folder" OK. MSDOS box, a command_prompt. Have a look here. http://www.decompile.com/windows/2000/command_prompt.htm> I have found the
> Python27 folder in Quantum GIS Lisboa. What is the console? > I figure it is the interactive program that accepts Python commands, but
> I > do not know where it is in Python27 folder. No. the python27 in QGIS Lisboa is not the your python installation. Try to look for
> another one. (I am using Mac OS X so I could not tell where is installed in Windows). A console or terminal is generic term for what
> people in MS World called software give you access to command prompt. You have python installation your system since you are able to
> use QGIS python plugins. Back to your problem. Open the MSDOS command prompt in the directory where you see the setup.py Then, Type
> "python setup.py install"  in the console (MSDOS command prompt). Be sure that you typed without quotes ("  "). It will install this in
> your python sites-packages. Search for the folder "sites-packages", you will find your python installation. Noli
> _______________________________________________ Qgis-user mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/qgis-user
> 
> _______________________________________________________________________________________________________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://osgeo-org.1560.n6.nabble.com/XYtools-needs-Excel-python-modules-tp4994635p4994642.html
> To unsubscribe from XYtools needs Excel python modules, click here. NAML
> 
>




--
View this message in context: http://osgeo-org.1560.n6.nabble.com/XYtools-needs-Excel-python-modules-tp4994635p4994654.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20120811/baf90037/attachment.html>


More information about the Qgis-user mailing list