WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Package: libdmtx0a
State: not a real package (virtual)
```bash
apt show libdmtx0a
```
<details>
<summary>Output:</summary>
```
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Package: libdmtx0a
State: not a real package (virtual)
```
</details>
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libdmtx0t64
The following NEW packages will be installed:
libdmtx0t64 python3-pylibdmtx
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 75,4 kB of archives.
After this operation, 216 kB of additional disk space will be used.
Get:1 http://mirror.plusserver.com/ubuntu/ubuntu noble/universe amd64 libdmtx0t64 amd64 0.7.7-1.2build1 [55,5 kB]
Get:2 http://mirror.plusserver.com/ubuntu/ubuntu noble/universe amd64 python3-pylibdmtx all 0.1.10-1ubuntu1 [19,9 kB]
Fetched 75,4 kB in 0s (421 kB/s)
Selecting previously unselected package libdmtx0t64:amd64.
(Reading database ... 964094 files and directories currently installed.)
Preparing to unpack .../libdmtx0t64_0.7.7-1.2build1_amd64.deb ...
Unpacking libdmtx0t64:amd64 (0.7.7-1.2build1) ...
Selecting previously unselected package python3-pylibdmtx.
Preparing to unpack .../python3-pylibdmtx_0.1.10-1ubuntu1_all.deb ...
Unpacking python3-pylibdmtx (0.1.10-1ubuntu1) ...
Setting up libdmtx0t64:amd64 (0.7.7-1.2build1) ...
Setting up python3-pylibdmtx (0.1.10-1ubuntu1) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
```bash
sudo apt install -y python3-pylibdmtx
```
<details>
<summary>Output:</summary>
```
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libdmtx0t64
The following NEW packages will be installed:
libdmtx0t64 python3-pylibdmtx
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 75,4 kB of archives.
After this operation, 216 kB of additional disk space will be used.
Get:1 http://mirror.plusserver.com/ubuntu/ubuntu noble/universe amd64 libdmtx0t64 amd64 0.7.7-1.2build1 [55,5 kB]
Get:2 http://mirror.plusserver.com/ubuntu/ubuntu noble/universe amd64 python3-pylibdmtx all 0.1.10-1ubuntu1 [19,9 kB]
Fetched 75,4 kB in 0s (421 kB/s)
Selecting previously unselected package libdmtx0t64:amd64.
(Reading database ... 964094 files and directories currently installed.)
Preparing to unpack .../libdmtx0t64_0.7.7-1.2build1_amd64.deb ...
Unpacking libdmtx0t64:amd64 (0.7.7-1.2build1) ...
Selecting previously unselected package python3-pylibdmtx.
Preparing to unpack .../python3-pylibdmtx_0.1.10-1ubuntu1_all.deb ...
Unpacking python3-pylibdmtx (0.1.10-1ubuntu1) ...
Setting up libdmtx0t64:amd64 (0.7.7-1.2build1) ...
Setting up python3-pylibdmtx (0.1.10-1ubuntu1) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
```
</details>
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Package: python3-pylibdmtx
Version: 0.1.10-1ubuntu1
Priority: optional
Section: universe/python
Source: python-pylibdmtx
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian Python Team <team+python@tracker.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 89.1 kB
Depends: libdmtx0t64, python3-pil, python3:any
Homepage: https://github.com/NaturalHistoryMuseum/pylibdmtx/
Download-Size: 19.9 kB
APT-Sources: http://mirrors.ircam.fr/pub/ubuntu/archive noble/universe amd64 Packages
Description: Read Data Matrix barcodes (Python3 version)
Read and write Data Matrix barcodes from Python using the libdmtx library.
.
Features:
* Pure Python
* Works with PIL / Pillow images, OpenCV / numpy ndarrays, and raw bytes
* Decodes locations of barcodes
* No dependencies, other than the libdmtx library itself
.
This package contains the Python 3 version of the library.
```bash
apt show python3-pylibdmtx
```
<details>
<summary>Output:</summary>
```
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Package: python3-pylibdmtx
Version: 0.1.10-1ubuntu1
Priority: optional
Section: universe/python
Source: python-pylibdmtx
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian Python Team <team+python@tracker.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 89.1 kB
Depends: libdmtx0t64, python3-pil, python3:any
Homepage: https://github.com/NaturalHistoryMuseum/pylibdmtx/
Download-Size: 19.9 kB
APT-Sources: http://mirrors.ircam.fr/pub/ubuntu/archive noble/universe amd64 Packages
Description: Read Data Matrix barcodes (Python3 version)
Read and write Data Matrix barcodes from Python using the libdmtx library.
.
Features:
* Pure Python
* Works with PIL / Pillow images, OpenCV / numpy ndarrays, and raw bytes
* Decodes locations of barcodes
* No dependencies, other than the libdmtx library itself
.
This package contains the Python 3 version of the library.
```
</details>
See [Benjamin_Loison/xclip/issues/2](https://codeberg.org/Benjamin_Loison/xclip/issues/2).
```bash
time read_datamatrix 1280px-Datamatrix.svg.png
```
<details>
<summary>Output:</summary>
```
real 0m4,215s
user 0m4,138s
sys 0m0,070s
```
</details>
time read_datamatrix 1280px-Datamatrix.svg_white.png
Output:
real 0m3,843s
user 0m3,742s
sys 0m0,098s
If replace transparency with white:
```bash
time read_datamatrix 1280px-Datamatrix.svg_white.png
```
<details>
<summary>Output:</summary>
```
real 0m3,843s
user 0m3,742s
sys 0m0,098s
```
</details>
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
libdmtx0t64
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
python3-pylibdmtx*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 89,1 kB disk space will be freed.
(Reading database ... 964137 files and directories currently installed.)
Removing python3-pylibdmtx (0.1.10-1ubuntu1) ...
Processing triggers for man-db (2.12.0-4build2) ...
```bash
sudo apt purge -y python3-pylibdmtx
```
<details>
<summary>Output:</summary>
```
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
libdmtx0t64
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
python3-pylibdmtx*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 89,1 kB disk space will be freed.
(Reading database ... 964137 files and directories currently installed.)
Removing python3-pylibdmtx (0.1.10-1ubuntu1) ...
Processing triggers for man-db (2.12.0-4build2) ...
```
</details>
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
libdmtx0t64
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 127 kB disk space will be freed.
(Reading database ... 964106 files and directories currently installed.)
Removing libdmtx0t64:amd64 (0.7.7-1.2build1) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
```bash
sudo apt autoremove -y
```
<details>
<summary>Output:</summary>
```
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
libdmtx0t64
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 127 kB disk space will be freed.
(Reading database ... 964106 files and directories currently installed.)
Removing libdmtx0t64:amd64 (0.7.7-1.2build1) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
```
</details>
Traceback (most recent call last):
File "/home/benjamin/venv/bin/read_datamatrix", line 5, in <module>
from pylibdmtx.scripts.read_datamatrix import main
File "/home/benjamin/venv/lib/python3.12/site-packages/pylibdmtx/scripts/read_datamatrix.py", line 8, in <module>
from pylibdmtx.pylibdmtx import decode
File "/home/benjamin/venv/lib/python3.12/site-packages/pylibdmtx/pylibdmtx.py", line 10, in <module>
from .wrapper import (
File "/home/benjamin/venv/lib/python3.12/site-packages/pylibdmtx/wrapper.py", line 8, in <module>
from packaging import version
ModuleNotFoundError: No module named 'packaging'
real 0m0,063s
user 0m0,049s
sys 0m0,014s
```bash
time read_datamatrix 1280px-Datamatrix.svg.png
```
<details>
<summary>Output:</summary>
```
Traceback (most recent call last):
File "/home/benjamin/venv/bin/read_datamatrix", line 5, in <module>
from pylibdmtx.scripts.read_datamatrix import main
File "/home/benjamin/venv/lib/python3.12/site-packages/pylibdmtx/scripts/read_datamatrix.py", line 8, in <module>
from pylibdmtx.pylibdmtx import decode
File "/home/benjamin/venv/lib/python3.12/site-packages/pylibdmtx/pylibdmtx.py", line 10, in <module>
from .wrapper import (
File "/home/benjamin/venv/lib/python3.12/site-packages/pylibdmtx/wrapper.py", line 8, in <module>
from packaging import version
ModuleNotFoundError: No module named 'packaging'
real 0m0,063s
user 0m0,049s
sys 0m0,014s
```
</details>
Traceback (most recent call last):
File "/home/benjamin/venv/bin/read_datamatrix", line 5, in <module>
from pylibdmtx.scripts.read_datamatrix import main
File "/home/benjamin/venv/lib/python3.12/site-packages/pylibdmtx/scripts/read_datamatrix.py", line 8, in <module>
from pylibdmtx.pylibdmtx import decode
File "/home/benjamin/venv/lib/python3.12/site-packages/pylibdmtx/pylibdmtx.py", line 10, in <module>
from .wrapper import (
File "/home/benjamin/venv/lib/python3.12/site-packages/pylibdmtx/wrapper.py", line 71, in <module>
_dmtxVersion = libdmtx_function('dmtxVersion', c_char_p)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/benjamin/venv/lib/python3.12/site-packages/pylibdmtx/wrapper.py", line 59, in libdmtx_function
return prototype((fname, load_libdmtx()))
^^^^^^^^^^^^^^
File "/home/benjamin/venv/lib/python3.12/site-packages/pylibdmtx/wrapper.py", line 40, in load_libdmtx
LIBDMTX = dmtx_library.load()
^^^^^^^^^^^^^^^^^^^
File "/home/benjamin/venv/lib/python3.12/site-packages/pylibdmtx/dmtx_library.py", line 47, in load
raise ImportError('Unable to find dmtx shared library')
ImportError: Unable to find dmtx shared library
real 0m0,265s
user 0m0,168s
sys 0m0,034s
```bash
time read_datamatrix 1280px-Datamatrix.svg.png
```
<details>
<summary>Output:</summary>
```
Traceback (most recent call last):
File "/home/benjamin/venv/bin/read_datamatrix", line 5, in <module>
from pylibdmtx.scripts.read_datamatrix import main
File "/home/benjamin/venv/lib/python3.12/site-packages/pylibdmtx/scripts/read_datamatrix.py", line 8, in <module>
from pylibdmtx.pylibdmtx import decode
File "/home/benjamin/venv/lib/python3.12/site-packages/pylibdmtx/pylibdmtx.py", line 10, in <module>
from .wrapper import (
File "/home/benjamin/venv/lib/python3.12/site-packages/pylibdmtx/wrapper.py", line 71, in <module>
_dmtxVersion = libdmtx_function('dmtxVersion', c_char_p)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/benjamin/venv/lib/python3.12/site-packages/pylibdmtx/wrapper.py", line 59, in libdmtx_function
return prototype((fname, load_libdmtx()))
^^^^^^^^^^^^^^
File "/home/benjamin/venv/lib/python3.12/site-packages/pylibdmtx/wrapper.py", line 40, in load_libdmtx
LIBDMTX = dmtx_library.load()
^^^^^^^^^^^^^^^^^^^
File "/home/benjamin/venv/lib/python3.12/site-packages/pylibdmtx/dmtx_library.py", line 47, in load
raise ImportError('Unable to find dmtx shared library')
ImportError: Unable to find dmtx shared library
real 0m0,265s
user 0m0,168s
sys 0m0,034s
```
</details>
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libdmtx0a is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libdmtx0t64
E: Package 'libdmtx0a' has no installation candidate
```bash
sudo apt install -y libdmtx0a
```
<details>
<summary>Output:</summary>
```
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libdmtx0a is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libdmtx0t64
E: Package 'libdmtx0a' has no installation candidate
```
</details>
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
libdmtx0t64
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 55,5 kB of archives.
After this operation, 127 kB of additional disk space will be used.
Get:1 http://mirror.plusserver.com/ubuntu/ubuntu noble/universe amd64 libdmtx0t64 amd64 0.7.7-1.2build1 [55,5 kB]
Fetched 55,5 kB in 0s (243 kB/s)
Selecting previously unselected package libdmtx0t64:amd64.
(Reading database ... 964094 files and directories currently installed.)
Preparing to unpack .../libdmtx0t64_0.7.7-1.2build1_amd64.deb ...
Unpacking libdmtx0t64:amd64 (0.7.7-1.2build1) ...
Setting up libdmtx0t64:amd64 (0.7.7-1.2build1) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
```bash
sudo apt install -y libdmtx0t64
```
<details>
<summary>Output:</summary>
```
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
libdmtx0t64
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 55,5 kB of archives.
After this operation, 127 kB of additional disk space will be used.
Get:1 http://mirror.plusserver.com/ubuntu/ubuntu noble/universe amd64 libdmtx0t64 amd64 0.7.7-1.2build1 [55,5 kB]
Fetched 55,5 kB in 0s (243 kB/s)
Selecting previously unselected package libdmtx0t64:amd64.
(Reading database ... 964094 files and directories currently installed.)
Preparing to unpack .../libdmtx0t64_0.7.7-1.2build1_amd64.deb ...
Unpacking libdmtx0t64:amd64 (0.7.7-1.2build1) ...
Setting up libdmtx0t64:amd64 (0.7.7-1.2build1) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
```
</details>
Traceback (most recent call last):
File "/home/benjamin/venv/bin/read_datamatrix", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/benjamin/venv/lib/python3.12/site-packages/pylibdmtx/scripts/read_datamatrix.py", line 25, in main
from PIL import Image
ModuleNotFoundError: No module named 'PIL'
real 0m0,197s
user 0m0,161s
sys 0m0,037s
After pip install "Pillow>=3.2.0":
time read_datamatrix 1280px-Datamatrix.svg.png
Output:
real 0m4,073s
user 0m4,017s
sys 0m0,055s
Same with the white background.
pip install pylibdmtx[scripts]
leads to the same issues.
```bash
time read_datamatrix 1280px-Datamatrix.svg.png
```
<details>
<summary>Output:</summary>
```
Traceback (most recent call last):
File "/home/benjamin/venv/bin/read_datamatrix", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/benjamin/venv/lib/python3.12/site-packages/pylibdmtx/scripts/read_datamatrix.py", line 25, in main
from PIL import Image
ModuleNotFoundError: No module named 'PIL'
real 0m0,197s
user 0m0,161s
sys 0m0,037s
```
</details>
After `pip install "Pillow>=3.2.0"`:
```bash
time read_datamatrix 1280px-Datamatrix.svg.png
```
<details>
<summary>Output:</summary>
```
real 0m4,073s
user 0m4,017s
sys 0m0,055s
```
</details>
Same with the white background.
```bash
pip install pylibdmtx[scripts]
```
leads to the same issues.
usage: read_datamatrix [-h] [-v] image [image ...]
Reads datamatrix barcodes in images
positional arguments:
image
options:
-h, --help show this help message and exit
-v, --version show program's version number and exit
```bash
read_datamatrix --help
```
<details>
<summary>Output:</summary>
```
usage: read_datamatrix [-h] [-v] image [image ...]
Reads datamatrix barcodes in images
positional arguments:
image
options:
-h, --help show this help message and exit
-v, --version show program's version number and exit
```
</details>
Traceback (most recent call last):
File "/home/benjamin_loison/Desktop/a.py", line 1, in <module>
from pylibdmtx.pylibdmtx import decode
ModuleNotFoundError: No module named 'pylibdmtx'
sudo apt install -y python3-pylibdmtx
Output:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed
python3-pylibdmtx
0 to upgrade, 1 to newly install, 0 to remove and 5 not to upgrade.
Need to get 19.9 kB of archives.
After this operation, 89.1 kB of additional disk space will be used.
Get:1 http://mirrors.ircam.fr/pub/ubuntu/archive noble/universe amd64 python3-pylibdmtx all 0.1.10-1ubuntu1 [19.9 kB]
Fetched 19.9 kB in 0s (60.2 kB/s)
Selecting previously unselected package python3-pylibdmtx.
(Reading database ... 953709 files and directories currently installed.)
Preparing to unpack .../python3-pylibdmtx_0.1.10-1ubuntu1_all.deb ...
Unpacking python3-pylibdmtx (0.1.10-1ubuntu1) ...
Setting up python3-pylibdmtx (0.1.10-1ubuntu1) ...
Processing triggers for man-db (2.12.0-4build2) ...
does not help.
On my Linux Mint 22.2 Cinnamon Framework 13:
With the email of 20/10/25 at 10:09:
```
python3 test.py
```
<details>
<summary>Output:</summary>
```
Traceback (most recent call last):
File "/home/benjamin_loison/Desktop/a.py", line 1, in <module>
from pylibdmtx.pylibdmtx import decode
ModuleNotFoundError: No module named 'pylibdmtx'
```
</details>
```
sudo apt install -y python3-pylibdmtx
```
<details>
<summary>Output:</summary>
```
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed
python3-pylibdmtx
0 to upgrade, 1 to newly install, 0 to remove and 5 not to upgrade.
Need to get 19.9 kB of archives.
After this operation, 89.1 kB of additional disk space will be used.
Get:1 http://mirrors.ircam.fr/pub/ubuntu/archive noble/universe amd64 python3-pylibdmtx all 0.1.10-1ubuntu1 [19.9 kB]
Fetched 19.9 kB in 0s (60.2 kB/s)
Selecting previously unselected package python3-pylibdmtx.
(Reading database ... 953709 files and directories currently installed.)
Preparing to unpack .../python3-pylibdmtx_0.1.10-1ubuntu1_all.deb ...
Unpacking python3-pylibdmtx (0.1.10-1ubuntu1) ...
Setting up python3-pylibdmtx (0.1.10-1ubuntu1) ...
Processing triggers for man-db (2.12.0-4build2) ...
```
</details>
does not help.
Traceback (most recent call last):
File "/usr/bin/read_datamatrix", line 33, in <module>
sys.exit(load_entry_point('pylibdmtx==0.1.10', 'console_scripts', 'read_datamatrix')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pylibdmtx/scripts/read_datamatrix.py", line 28, in main
for barcode in decode(Image.open(image)):
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pylibdmtx/pylibdmtx.py", line 260, in decode
pixels, width, height, bpp = _pixel_data(image)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pylibdmtx/pylibdmtx.py", line 221, in _pixel_data
raise PyLibDMTXError(
pylibdmtx.pylibdmtx_error.PyLibDMTXError: Unsupported bits-per-pixel: [1] Should be one of [8, 16, 24, 32]
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 228, in partial_apport_excepthook
return apport_excepthook(binary, exc_type, exc_obj, exc_tb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 144, in apport_excepthook
os.open(pr_filename, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), "wb"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/var/crash/_usr_bin_read_datamatrix.1000.crash'
Original exception was:
Traceback (most recent call last):
File "/usr/bin/read_datamatrix", line 33, in <module>
sys.exit(load_entry_point('pylibdmtx==0.1.10', 'console_scripts', 'read_datamatrix')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pylibdmtx/scripts/read_datamatrix.py", line 28, in main
for barcode in decode(Image.open(image)):
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pylibdmtx/pylibdmtx.py", line 260, in decode
pixels, width, height, bpp = _pixel_data(image)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pylibdmtx/pylibdmtx.py", line 221, in _pixel_data
raise PyLibDMTXError(
pylibdmtx.pylibdmtx_error.PyLibDMTXError: Unsupported bits-per-pixel: [1] Should be one of [8, 16, 24, 32]
real 0m1.457s
user 0m1.247s
sys 0m0.213s
```
time read_datamatrix code-pin.png
```
<details>
<summary>Output:</summary>
```
Traceback (most recent call last):
File "/usr/bin/read_datamatrix", line 33, in <module>
sys.exit(load_entry_point('pylibdmtx==0.1.10', 'console_scripts', 'read_datamatrix')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pylibdmtx/scripts/read_datamatrix.py", line 28, in main
for barcode in decode(Image.open(image)):
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pylibdmtx/pylibdmtx.py", line 260, in decode
pixels, width, height, bpp = _pixel_data(image)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pylibdmtx/pylibdmtx.py", line 221, in _pixel_data
raise PyLibDMTXError(
pylibdmtx.pylibdmtx_error.PyLibDMTXError: Unsupported bits-per-pixel: [1] Should be one of [8, 16, 24, 32]
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 228, in partial_apport_excepthook
return apport_excepthook(binary, exc_type, exc_obj, exc_tb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 144, in apport_excepthook
os.open(pr_filename, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), "wb"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/var/crash/_usr_bin_read_datamatrix.1000.crash'
Original exception was:
Traceback (most recent call last):
File "/usr/bin/read_datamatrix", line 33, in <module>
sys.exit(load_entry_point('pylibdmtx==0.1.10', 'console_scripts', 'read_datamatrix')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pylibdmtx/scripts/read_datamatrix.py", line 28, in main
for barcode in decode(Image.open(image)):
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pylibdmtx/pylibdmtx.py", line 260, in decode
pixels, width, height, bpp = _pixel_data(image)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pylibdmtx/pylibdmtx.py", line 221, in _pixel_data
raise PyLibDMTXError(
pylibdmtx.pylibdmtx_error.PyLibDMTXError: Unsupported bits-per-pixel: [1] Should be one of [8, 16, 24, 32]
real 0m1.457s
user 0m1.247s
sys 0m0.213s
```
</details>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Wikipedia: Data Matrix
https://wasi0013.com/2019/12/17/how-to-read-data-matrix-using-python-in-linux/
+2
Output:
Output:
Output:
Output:
Output:
See Benjamin_Loison/xclip/issues/2.
Output:
If replace transparency with white:
Output:
Related to Benjamin_Loison/pylibdmtx/issues/3.
Output:
Output:
Output:
Output:
Output:
Output:
Same error after
pip install "Pillow>=3.2.0".Output:
Output:
Output:
Same error after
pip install "Pillow>=3.2.0".Output:
Output:
Output:
After
pip install "Pillow>=3.2.0":Output:
Same with the white background.
leads to the same issues.
Output:
Python script:
Output:
After
pip install "Pillow>=3.2.0":Could investigate the library example images.
Related to Benjamin_Loison/franceidentite/issues/33.
On my Linux Mint 22.2 Cinnamon Framework 13:
With the email of 20/10/25 at 10:09:
Output:
Output:
does not help.
Output: