[Liblas-devel] problem with reinstalling liblas in Python

Andrej Kobler andrej.kobler at gozdis.si
Wed Sep 21 04:59:24 EDT 2011


Stanley,

 

I copied the entire C:\Python27\ folder from my other PC, where I did not
have liblas problems. Now everything seems to work fine.

 

Thanks for your help,

 

Andrej

 

  _____  

From: Stanley Wong [mailto:s.wong at kucerainternational.com] 
Sent: 20. september 2011 16:58
To: Andrej Kobler
Cc: liblas-devel at lists.osgeo.org
Subject: Re: [Liblas-devel] problem with reinstalling liblas in Python

 

Andrej,

>From what I gathered, osgeo4w-setup.exe installs its own python and liblas
module, and I do not know of a way to tell osgeo4w-setup which python to
install liblas.

I had 4 copies of python in my computer (2 from ArcGIS installation and 2
for my own use) before I installed osgeo4w.
It would be much nicer if I can run my python scripts within the IDE (or in
the python versions I have been using), but I do not know how to do that.  
I am a beginner in liblas myself.
Maybe someone in the forum can suggest a way to do that?

There is a separate liblas installation download you can try:
http://pypi.python.org/pypi/libLAS
It is on a previous version of liblas (1.6.0) but it looks for python
versions from the registry and prompts you which version you would like to
install to.
It had worked well for me on reading and writing LAS files until I needed to
add projection information to the LAS header.

Stanley

  _____  

From: "Andrej Kobler" <andrej.kobler at gozdis.si>
To: "Stanley Wong" <s.wong at kucerainternational.com>
Cc: liblas-devel at lists.osgeo.org
Sent: Tuesday, September 20, 2011 10:32:26 AM
Subject: RE: [Liblas-devel] problem with reinstalling liblas in Python

Stanley,

 

There is a python.exe in c:\OSGeo4W\bin\, however it turns out that both
C:\Program Files\pythonxy\ and in C:\Python27\ lack any files or folders
named liblas. So it seems to me that after my second python installation the
OSGeo4W did not copy any liblas stuff into the python folders. 

 

Would it help to delete the c:\OSGeo4W folder and then run the
osgeo4w-setup.exe again?

 

Thanks,

 

Andrej

 

  _____  

From: Stanley Wong [mailto:s.wong at kucerainternational.com] 
Sent: 20. september 2011 14:49
To: Andrej Kobler
Cc: liblas-devel at lists.osgeo.org
Subject: Re: [Liblas-devel] problem with reinstalling liblas in Python

 


Andrej,

Please check if you have a python.exe in c:\OSGeo4W\bin\
If so, try this:
1. Open OSGeo4W shell, then type in 
2. c:\OSGeo4W\bin\python.exe <your_script>.py


Stanley

  _____  

From: "Andrej Kobler" <andrej.kobler at gozdis.si>
To: liblas-devel at lists.osgeo.org
Sent: Tuesday, September 20, 2011 5:27:01 AM
Subject: [Liblas-devel] problem with reinstalling liblas in Python

Hi,

 

I have a problem with reinstalling liblas in Python and any help would be
much appreciated.

 

Since I know next to nothing about compilers, the recipe how to install
liblas with Python (http://liblas.org/osgeo4w.html) was a life-saver for me.
However I somehow succeeded in ruining my liblas installation and I am
unable to recreate it, even by following the exact same steps as the first
time. Short description of the situation:

1.	In MS Windows XP I installed liblas on top of Pythonxy environment
(http://code.google.com/p/pythonxy/) following the recipe. At this point
liblas worked perfectly with Python. 
2.	Due to some unrelated problems I had to remove Python (using Windows
/ Add and remove programs). Unfortunately, after reinstalling Python and
then executing liblas command from OSGeo4W shell, Python could not find
liblas, reporting ImportError: No module named liblas. 
3.	I got the same response from Python even after downloading and
running the OSGeo4W installer again. 

 

Kind regards and big thanks for your help,

 

Andrej

 

------------------------------------------

Dr. Andrej Kobler

Slovenian Forestry Institute

Večna pot 2, SI - 1000 Ljubljana, Slovenia

Phone +386 1 2007835

 

 


_______________________________________________
Liblas-devel mailing list
Liblas-devel at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/liblas-devel

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/liblas-devel/attachments/20110921/bcb13f85/attachment.html


More information about the Liblas-devel mailing list