trt_pose icon indicating copy to clipboard operation
trt_pose copied to clipboard

Error trt_pose.coco not found

Open jayajohnson opened this issue 5 years ago • 12 comments
trafficstars

ModuleNotFoundError Traceback (most recent call last) in () 1 import json ----> 2 import trt_pose.coco 3 4 with open('/trt_pose/tasks/human_pose/human_pose.json', 'r') as f: 5 human_pose = json.load(f)

/trt_pose/trt_pose/coco.py in () 7 import tqdm 8 import trt_pose ----> 9 import trt_pose.plugins 10 import glob 11 import torchvision.transforms.functional as FT

ModuleNotFoundError: No module named 'trt_pose.plugins'

jayajohnson avatar Jul 08 '20 03:07 jayajohnson

Hi Jayajohnson,

Thanks for reaching out!

My initial guess is that you may be running this from the root of the trt_pose project directory.

If this is the case, your python program may be attempting to load the compiled extensions from the local folder rather than from the installed package. To do this, you need to build the extensions in place

python3 setup.py build_ext --inplace

Please let me know if this helps or you run into any issues.

Best, John

jaybdub avatar Aug 06 '20 00:08 jaybdub

@ jaybdub my working directory is not in the root of the trt_pose project directory ,but i still have the issue: image and i have already run python3 setup.py build_ext --inplace image

wwdok avatar Dec 04 '20 07:12 wwdok

@ jaybdub I also got same problem, no resolution yet. My board is Jetson Nano.

Screenshot_20201226_155645

And i have already run python3 setup.py build_ext --inplace

My environment: Jetpack4.4.1(=Jetbot0.4.2)

jetbot@nano-4gb-jp441:~/trt_pose$ python3
Python 3.6.9 (default, Oct  8 2020, 12:12:24) 
>>> import torch
>>> print(torch.__version__)
1.7.0
>>> import torchvision
>>> print(torchvision.__version__)
0.8.0a0+45f960c

zeta0707 avatar Dec 26 '20 06:12 zeta0707

I downgraded torch and torchvision, though I see the same problem.

jetbot@nano-4gb-jp441:~/trt_pose$ python3
Python 3.6.9 (default, Oct  8 2020, 12:12:24) 
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> print(torch.__version__)
1.6.0
>>> import torchvision
>>> print(torchvision.__version__)
0.7.0a0+78ed10c

zeta0707 avatar Dec 26 '20 08:12 zeta0707

I ran below code for checking what happens. Why there's undefined symbol?

jetbot@nano-4gb-jp441:~/torch2trt$ python3
Python 3.6.9 (default, Oct  8 2020, 12:12:24) 
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import trt_pose.coco
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/dist-packages/trt_pose-0.0.1-py3.6-linux-aarch64.egg/trt_pose/coco.py", line 9, in <module>
    import trt_pose.plugins
ImportError: /usr/local/lib/python3.6/dist-packages/trt_pose-0.0.1-py3.6-linux-aarch64.egg/trt_pose/plugins.cpython-36m-aarch64-linux-gnu.so: undefined symbol: _ZN3c104impl23ExcludeDispatchKeyGuardC1ENS_14DispatchKeySetE

zeta0707 avatar Dec 26 '20 09:12 zeta0707

@zeta0707 Hi, Have you solved? I have a same problem.

Hiroaki-K4 avatar Apr 22 '21 05:04 Hiroaki-K4

Unfortunately not yet.

Thanks

2021년 4월 22일 (목) 오후 2:09, Hiroaki-K4 @.***>님이 작성:

@zeta0707 https://github.com/zeta0707 Hi, Have you solved? I have a same problem.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NVIDIA-AI-IOT/trt_pose/issues/55#issuecomment-824542294, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACTG6A5PNXEPRJXS6LGXOETTJ6VQRANCNFSM4OUC7JXA .

zeta0707 avatar Apr 23 '21 04:04 zeta0707

ok. In my case, It was fixed after replacing with the latest trt_pose.

Hiroaki-K4 avatar Apr 23 '21 04:04 Hiroaki-K4

Hi

Great, what version of trt_pose? I'm afraid that sometimes latest misreading.

2021년 4월 23일 (금) 오후 1:51, Hiroaki-K4 @.***>님이 작성:

ok. In my case, It was fixed after replacing with the latest trt_pose.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NVIDIA-AI-IOT/trt_pose/issues/55#issuecomment-825383855, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACTG6A36BSM4TN7SXVU4XU3TKD4DXANCNFSM4OUC7JXA .

zeta0707 avatar Apr 23 '21 07:04 zeta0707

Hi,

Has a fix for this issue been found?

attiasa22 avatar Jun 30 '21 18:06 attiasa22

I am also facing this issue. Has anyone found the solution?

MuhammadMateenShahid avatar Sep 28 '23 12:09 MuhammadMateenShahid

I have the same issue, any solution ?

ysun avatar Mar 03 '24 13:03 ysun