[Liblas-devel] Python bindings beta 2

Howard Butler hobu.inc at gmail.com
Thu Aug 28 11:25:53 EDT 2008


Etienne,

This is because Python < 2.5 used to attempt to import DLLs with the  
extension .dll before looking for .py files or .pyd.  Python >= 2.5  
won't even import a .dll anymore, and will only import .pyd for  
extension modules.  Because the dll is named liblas.dll now (we no  
longer put the version name in the dll), and it is in a PATH location,  
Python 2.4 is trying to import it before importing the ctypes module.

Can you please file a bug on this issue?  I will have to think about  
where we can place the DLL so it doesn't end up on a Python search path.

Howard

On Aug 28, 2008, at 8:38 AM, Etienne Bellemare wrote:

> I got this error in python 2.4, but it did work in python 2.5 (I  
> tried it on 3 MS Windows computers). 0.9.6 was ok.
>
> >>> import liblas
> Traceback (most recent call last):
>   File "<interactive input>", line 1, in ?
> ImportError: dynamic module does not define init function (initliblas)
>
> Any idea ?
> Etienne
> _______________________________________________
> Liblas-devel mailing list
> Liblas-devel at mail.hobu.net
> http://mail.hobu.net/mailman/listinfo/liblas-devel




More information about the Liblas-devel mailing list