zhiqwang / yolort

yolort is a runtime stack for yolov5 on specialized accelerators such as tensorrt, libtorch, onnxruntime, tvm and ncnn.
https://zhiqwang.com/yolort
GNU General Public License v3.0
717 stars 153 forks source link

module 'yolort' has no attribute 'utils' #465

Closed beyondli closed 1 year ago

beyondli commented 1 year ago

🐛 Describe the bug

I install yolort in python3.6 with pip3, successfully installed, but test import yolort failed,but on python3.8 import ok My question is does yolort can not run on python3.6, if so ,can I modify code to fix it on python3.6??

Versions

Sorry, collect env sh can not run on my host, cased by some link failed connect, I just copy pip3 list for your reference pytools 2021.2.7 pytz 2018.3 PyYAML 6.0 pyzmq 22.2.1 qtconsole 5.1.1 QtPy 1.9.0 requests 2.26.0 rich 12.6.0 scikit-build 0.11.1 scikit-learn 0.24.2 scipy 1.5.4 Send2Trash 1.7.1 setuptools 57.4.0 six 1.16.0 tabulate 0.8.10 tensorboard 1.15.0 tensorflow 1.15.5+nv21.7 tensorflow-estimator 1.15.1 termcolor 1.1.0 terminado 0.10.1 testpath 0.5.0 thop 0.1.1.post2209072238 threadpoolctl 2.2.0 torch 1.9.0 torchaudio 0.9.0a0+33b2469 torchvision 0.10.0a0+300a8a4 tornado 6.1 tqdm 4.64.1 traitlets 4.3.3 typing_extensions 4.1.1 unattended-upgrades 0.1 urllib3 1.26.6 wcwidth 0.2.5 webencodings 0.5.1 Werkzeug 2.0.1 wheel 0.36.2 widgetsnbextension 3.5.1 wrapt 1.12.1 yolort 0.6.3 /usr/local/lib/python3.6/dist-packages zipp 3.5.0

image

thanks any help!

zhiqwang commented 1 year ago

Hi @beyondli , I believe this issue is resolved at the main branch, you can install yolort from source as below:

# clone yolort repository locally
git clone https://github.com/zhiqwang/yolov5-rt-stack.git
cd yolov5-rt-stack
# install in editable mode
pip install -e .
zhiqwang commented 1 year ago

And you can see more details https://github.com/zhiqwang/yolov5-rt-stack/issues/429 .

beyondli commented 1 year ago

Hi zhiqwang, I tried source code compile, but same issue still exist on py3.6, does any branch is directly based on py3.6?

beyondli commented 1 year ago

Hi zhiqwang, I reinstall my system and use source compile, it is ok now ,thanks!