Invalid ELF class - Python

I am trying to install this library for LJB compression . PyLZJB LINK

The library is a binding for the C library, the file is here PyLZJB.so


Unfortunately, when I copy package sites to the directory during import, I get the error "ELF class is not valid . "

>>> import PyLZJB
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: ./PyLZJB.so: wrong ELF class: ELFCLASS32

Help will be great. :)

PS: I am running Ubuntu 10.4 64bit


Edit:

If someone could offer me an alternative compression algorithm, I would be equally happy. :)

The algorithm is designed to compress HTML , and it requires support for compression and Javascript compression ..

, - . , !

+3
3

- , .

, LZ. JavaScript. deflate zlib Python.

, , , .

GZIP GET ?

GET , URL- . - . , POST.

POST enctype application/x-www-form-urlencoded, , %nn. , , . , enctype="multipart/form-data".

. JS Unicode, , , . UTF-8, , UTF-8. unicode, UTF-8, 50% ( , 0x80, UTF- 8 ).

, , ISO-8859-1 escape/encodeURIComponent UTF-8 ISO-8859-1 . , Windows 1252 / , ISO-8859-1. , , , .

, - base64, 33% .

, ; , .

+4

64- Python 32- , .

, Python, . 32- Python, , 64- .

, LZJB , 64- .

+7

32- Python, PyLZJB, . 64- PyLZJB -.

0

Source: https://habr.com/ru/post/1756823/


All Articles