Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3 support? #90

Closed
absudabsu opened this issue Jul 21, 2016 · 5 comments
Closed

python3 support? #90

absudabsu opened this issue Jul 21, 2016 · 5 comments

Comments

@absudabsu
Copy link

absudabsu commented Jul 21, 2016

I get the following error when trying to import:

Install:

$ sudo pip3 install liblas                                                                                   
Collecting liblas                                                                                                                   
  Downloading libLAS-1.6.0.tar.gz                                                                                                   
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python3.5/site-packages (from liblas)              
Building wheels for collected packages: liblas                                                                                      
  Running setup.py bdist_wheel for liblas ... done                                                                                  
  Stored in directory: /root/.cache/pip/wheels/cd/c0/41/4b7169517e6257d1489dee6bc98bd01621a2ec56cbc25d9561                          
Successfully built liblas                                                                                                           
Installing collected packages: liblas                                                                                               
Successfully installed liblas-1.6.0                                                                                                 
You are using pip version 8.0.2, however version 8.1.2 is available.                                                                
You should consider upgrading via the 'pip install --upgrade pip' command. 

Import error:

$ python3                                                                                                    
Python 3.5.1 (default, Jun 13 2016, 16:14:50)                                                                                       
[GCC 6.1.1 20160510 (Red Hat 6.1.1-2)] on linux                                                                                     
Type "help", "copyright", "credits" or "license" for more information.                                                              
>>> import liblas                                                                                                                   
Traceback (most recent call last):                                                                                                  
  File "<stdin>", line 1, in <module>                                                                                               
  File "/usr/lib64/python3.5/site-packages/liblas/__init__.py", line 2, in <module>                                                 
    from core import get_version                                                                                                    
ImportError: No module named 'core'           

What is the "core" module?

$ sudo pip3 install core                                                                                          
Collecting core                                                                                                                     
  Could not find a version that satisfies the requirement core (from versions: )                                                    
No matching distribution found for core                                                                                             
You are using pip version 8.0.2, however version 8.1.2 is available.                                                                
You should consider upgrading via the 'pip install --upgrade pip' command.                 

Any help appreciated. Really don't want to write a parser from scratch...

@mloskot
Copy link
Member

mloskot commented Jul 22, 2016

@absudabsu
Copy link
Author

I see... so alas, no Python3 support in Laspy :(

@mloskot
Copy link
Member

mloskot commented Jul 22, 2016

libLAS is deprecated.
You should consider switching to PDAL (http://www.pdal.io), it has Python support, including Python 3.

@hobu
Copy link
Member

hobu commented Jul 22, 2016

If you want to do Python LAS stuff, laspy is the tool you want to use. It is much more feature-rich than the libLAS bindings, provides a compatible API to the libLAS bindings, and is pure-Python.

There has been a pretty complete effort to update it to support Python 3 in grantbrown/laspy#45 I think the hold up has mostly been testing and verification. Your contributions there might get it over the hump.

@absudabsu
Copy link
Author

absudabsu commented Jul 22, 2016

Thanks for the notes guys, I will take a look.

@mloskot mloskot closed this as completed Jul 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants