GIScience / GIScience/sketch-map-tool

feat/switch-to-uv Zbar setup dependencies for MAC throw ImportError: Unable to find zbar shared library

Open
#555 0 comments 0 reactions 1 assignee Claimed by @itisacloud View on GitHub
bug
Dominant language
Python
Stars
54
Forks
9
PR merge metrics
No merged PRs in 30d

Description

The setup on Mac (M4) has issues making zbar available to the venv.

has been installed with brew and verfied that it is globaly installed

```
ImportError while loading conftest '/Users/faboo/py-workspace/sketch-map-tool/tests/conftest.py'.
tests/conftest.py:4: in
from sketch_map_tool.helpers import get_project_root
sketch_map_tool/__init__.py:13: in
from sketch_map_tool.database import client_flask as db_client
sketch_map_tool/database/client_flask.py:18: in
from sketch_map_tool.upload_processing import read_qr_code
sketch_map_tool/upload_processing/__init__.py:6: in
from .qr_code_reader import read_qr_code
sketch_map_tool/upload_processing/qr_code_reader.py:10: in
from pyzbar import pyzbar
.venv/lib/python3.12/site-packages/pyzbar/pyzbar.py:7: in
from .wrapper import (
.venv/lib/python3.12/site-packages/pyzbar/wrapper.py:151: in
zbar_version = zbar_function(
.venv/lib/python3.12/site-packages/pyzbar/wrapper.py:148: in zbar_function
return prototype((fname, load_libzbar()))
^^^^^^^^^^^^^^
.venv/lib/python3.12/site-packages/pyzbar/wrapper.py:127: in load_libzbar
libzbar, dependencies = zbar_library.load()
^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.12/site-packages/pyzbar/zbar_library.py:65: in load
raise ImportError('Unable to find zbar shared library')
E ImportError: Unable to find zbar shared library

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.