Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

[Bug]: Invalid numpy version #194

Open
mstarongithub opened this issue Jan 18, 2023 · 0 comments
Open

[Bug]: Invalid numpy version #194

mstarongithub opened this issue Jan 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@mstarongithub
Copy link

Description

The current flatpak version (0.8.1)'s venv installs a too modern version of numpy, causing OpenSeeFace to stop working.
The problem with numpy >= 1.24 (iirc) is that it doesn't export the type float anymore and OpenSeeFace requires it.

Steps to reproduce

  1. Install vpupper fresh from flatpak (probably applies to other versions too)
  2. Let it setup OpenSeeFace
  3. Try to run

App version

08.1

Operating system

Linux

Relevant log output

Traceback (most recent call last):
  File "/app/bin/OpenSeeFaceFolder/OpenSeeFace/facetracker.py", line 256, in <module>
    faces = tracker.predict(frame)
  File "/app/bin/OpenSeeFaceFolder/OpenSeeFace/tracker.py", line 1168, in predict
    face_info.success, face_info.quaternion, face_info.euler, face_info.pnp_error, face_info.pts_3d, face_info.lms = self.estimate_depth(face_info)
  File "/app/bin/OpenSeeFaceFolder/OpenSeeFace/tracker.py", line 761, in estimate_depth
    lms = np.concatenate((face_info.lms, np.array([[face_info.eye_state[0][1], face_info.eye_state[0][2], face_info.eye_state[0][3]], [face_info.eye_state[1][1], face_info.eye_state[1][2], face_info.eye_state[1][3]]], np.float)), 0)
  File "/home/evil/.var/app/com.github.virtual_puppet_project.vpuppr/data/godot/app_userdata/OpenSeeFaceGD/venv/lib/python3.9/site-packages/numpy/__init__.py", line 284, in __getattr__
    raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'float'

Additional information

Forcing the install of numpy 1.23.0 is a possible fix for that problem

@mstarongithub mstarongithub added the bug Something isn't working label Jan 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant