Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infer_yolo_v7 / infer_deepsort algorithm is installed but not functional #29

Open
LyCrash opened this issue Feb 24, 2024 · 2 comments
Open

Comments

@LyCrash
Copy link

LyCrash commented Feb 24, 2024

I've got the same problem as @tonnys due to infer_yolo_v7 and bypassed the error as @LudoBar mentioned, then as I am using deepsort algorithm too so I tried to solve the same problem of:

Algorithm infer_deepsort is installed locally but not functional.

by manually install all requirements file, so I run:
pip install -r C:\Users\HP-PC\Ikomia\Plugins\Python\infer_deepsort\requirements1.txt

and it works fine, but with the 2nd file (requirements2.txt), I get this error:

Collecting git+https://github.com/KaiyangZhou/deep-person-reid.git@6987d99074fcc63146660b83b38218c37b4412b3 (from -r C:\Users\HP-PC\Ikomia\Plugins\Python\infer_deepsort\requirements2.txt (line 2))
Cloning https://github.com/KaiyangZhou/deep-person-reid.git (to revision 6987d99074fcc63146660b83b38218c37b4412b3) to c:\users\hp-pc\appdata\local\temp\pip-req-build-dqemcbzw
Running command git clone --filter=blob:none --quiet https://github.com/KaiyangZhou/deep-person-reid.git 'C:\Users\HP-PC\AppData\Local\Temp\pip-req-build-dqemcbzw'
Running command git rev-parse -q --verify 'sha^6987d99074fcc63146660b83b38218c37b4412b3'
Running command git fetch -q https://github.com/KaiyangZhou/deep-person-reid.git 6987d99074fcc63146660b83b38218c37b4412b3
Running command git checkout -q 6987d99074fcc63146660b83b38218c37b4412b3
Resolved https://github.com/KaiyangZhou/deep-person-reid.git to commit 6987d99074fcc63146660b83b38218c37b4412b3
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
Traceback (most recent call last):
File "D:\2CS_esi\S1\SCI\iot_project\Project\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "D:\2CS_esi\S1\SCI\iot_project\Project\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "D:\2CS_esi\S1\SCI\iot_project\Project\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\HP-PC\AppData\Local\Temp\pip-build-env-ea5z1c88\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "C:\Users\HP-PC\AppData\Local\Temp\pip-build-env-ea5z1c88\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "C:\Users\HP-PC\AppData\Local\Temp\pip-build-env-ea5z1c88\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\HP-PC\AppData\Local\Temp\pip-build-env-ea5z1c88\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 1, in
ModuleNotFoundError: No module named 'numpy'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

Originally posted by @LyCrash in #1 (comment)

@LudoBar
Copy link
Contributor

LudoBar commented Feb 26, 2024

Hi @LyCrash,

The error indicates that numpy is missing from your Python environment. It's quite strange as Numpy is a direct dependency of Ikomia package. Could you check the numpy installation (with pip list for example)?

@LyCrash
Copy link
Author

LyCrash commented Feb 26, 2024

Hi @LyCrash,

The error indicates that numpy is missing from your Python environment. It's quite strange as Numpy is a direct dependency of Ikomia package. Could you check the numpy installation (with pip list for example)?

Hello @LudoBar ;
The Numpy package is correctly installed after "pip install ikomia", here's the result of pip list on my python virtual environment:

(venv) PS D:\2CS_esi\S1\SCI\iot_project\Project> pip list
Package Version


absl-py 2.1.0
alembic 1.13.1
blinker 1.7.0
certifi 2024.2.2
charset-normalizer 3.3.2
click 8.1.7
cloudpickle 2.2.1
colorama 0.4.6
contourpy 1.2.0
cycler 0.12.1
Cython 3.0.8
databricks-cli 0.18.0
docker 6.1.3
entrypoints 0.4
Flask 2.3.3
fonttools 4.49.0
gitdb 4.0.11
GitPython 3.1.42
greenlet 3.0.3
grpcio 1.62.0
idna 3.6
ikomia 0.10.0
importlib-metadata 5.2.0
itsdangerous 2.1.2
Jinja2 3.1.3
kiwisolver 1.4.5
Mako 1.3.2
Markdown 3.5.2
MarkupSafe 2.1.5
matplotlib 3.8.3
mlflow 1.30.0
numpy 1.23.5
oauthlib 3.2.2
packaging 21.3
pandas 1.5.3
pillow 10.2.0
pip 24.0
prometheus_client 0.20.0
prometheus-flask-exporter 0.23.0
protobuf 4.25.3
PyJWT 2.8.0
pyparsing 3.1.1
python-dateutil 2.8.2
python-dotenv 1.0.1
pytz 2022.7.1
pywin32 306
PyYAML 6.0.1
querystring-parser 1.2.4
requests 2.31.0
scipy 1.12.0
semver 3.0.2
setuptools 59.5.0
six 1.16.0
smmap 5.0.1
SQLAlchemy 1.4.51
sqlparse 0.4.4
tabulate 0.9.0
tensorboard 2.16.2
tensorboard-data-server 0.7.2
tqdm 4.66.2
typing_extensions 4.10.0
urllib3 2.2.1
waitress 2.1.2
websocket-client 1.7.0
Werkzeug 3.0.1
zipp 3.17.0

I just want to note something I don't know if it can be the key of the problem: the first time I used the ikomia api for the same purpose (deepsort and yolov7) in an independant venv, it actually worked ! but when trying to create another independant venv and launch the same project somewhere else (other path), it does not work.. (and the previous problems occur)

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

No branches or pull requests

2 participants