Skip to content

Conversation

@Batmaev
Copy link

@Batmaev Batmaev commented Nov 17, 2025

Problem

I tried to run the package using Python 3.12.

I got several errors:

  File "webeyetrack/webeyetrack.py", line 7, in <module>
    import tensorflow as tf
ModuleNotFoundError: No module named 'tensorflow'
  File "webeyetrack/data_protocols.py", line 110, in <module>
    @dataclass
     ^^^^^^^^^
ValueError: mutable default <class 'numpy.ndarray'> for field norm_pog is not allowed: use default_factory
----> WebEyeTrack(WebEyeTrackConfig())

RuntimeError: Unable to open file at .venv/lib/python3.12/site-packages/webeyetrack/model_weights/face_landmarker_v2_with_blendshapes.task

Solution

  1. Add missing tensorflow dependency

  2. In dataclasses, mutable default values, such as numpy arrays, are shared across all instances. Since Python 3.11, using them without default_factory or ClassVar results in ValueError. So I've added default_factory.

  3. Include model weights in the package (they are small)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant