Describe the bug
When attempting to install the hailo_model_zoo from source using pip install -e ., the installation fails because it looks for a versions.py file in a parent directory that does not exist.
To Reproduce
-
Clone the repository:
git clone https://github.com/hailo-ai/hailo_model_zoo -
Enter the directory:
cd hailo_model_zoo -
Run:
pip install -e .
Error Log
Plaintext
File "/home/ahryxx/HailoOfficial/hailo_model_zoo/setup.py", line 9, in <module>
exec(Path(__file__).resolve().parent.parent.parent.joinpath("versions.py").read_text(), _versions)
...
FileNotFoundError: [Errno 2] No such file or directory: '/home/ahryxx/versions.py'
Expected behavior
The setup.py should be able to locate all necessary files within the repository structure. It appears that the path logic parent.parent.parent is jumping too far out of the repository folder and looking into the user’s home directory.
Environment
-
OS: Linux (Ubuntu 22.04)
-
Python version: 3.10
-
Repo version: Latest main branch
Additional context: I’ve checked the repository and there is no versions.py in the root or the expected parent paths. Is this file supposed to be generated dynamically or is the path in setup.py incorrect?