What causes java.lang.IncompatibleClassChangeError?

This means that you have made some incompatible binary changes to the library without recompiling the client code. Java Language Specification §13 details all such changes, most prominently, changing non-static non-private fields/methods to be static or vice versa. Recompile the client code against the new library, and you should be good to go. UPDATE: If you publish a public library, … Read more

‘int’ object has no attribute ‘__getitem__’

The error: means that you’re attempting to apply the index operator [] on an int, not a list. So is col not a list, even when it should be? Let’s start from that. Look here: Use a different variable name inside, looks like the list comprehension overwrites the col variable during iteration. (Not during the iteration when you set col, but during the following … Read more

‘int’ object has no attribute ‘__getitem__’

The error: means that you’re attempting to apply the index operator [] on an int, not a list. So is col not a list, even when it should be? Let’s start from that. Look here: Use a different variable name inside, looks like the list comprehension overwrites the col variable during iteration. (Not during the iteration when you set col, but during the following … Read more

WindowsError: [Error 193] %1 is not a valid Win32 application in Python

I wish to import liblas module in Python 2.7 on window 64bit. If I import the module with IDLE (Python GUI) I have no problem. If I use PyScripter “PyScripter-v2.5.3-x64-Setup.exe” I get this error message. I have used liblas in PyScripter many times without problem and right now I can load all standard modules (e.g.: numpy, GDAL, etc.), but … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)