Turoad / lanedet

An open source lane detection toolbox based on PyTorch, including SCNN, RESA, UFLD, LaneATT, CondLane, etc.
Apache License 2.0
565 stars 93 forks source link

OSError: Could not find lib geos_c or load any of its variants ['libgeos_c.so.1', 'libgeos_c.so']. #38

Closed farouk09 closed 2 years ago

farouk09 commented 2 years ago

Hi,

I'm trying to run inference on Jetson TX2 with this command _" _python3 tools/detect.py configs/resa/resa34_culane.py --img images/ --load_from resa_r34culane.pth --savedir ./vis "_ and i'm getting this error, Can anyone tell me what's the problem please !

Traceback (most recent call last): File "tools/detect.py", line 8, in from lanedet.datasets.process import Process File "/home/hellojetsontx2/lanedet/lanedet/datasets/init.py", line 3, in from .tusimple import TuSimple File "/home/hellojetsontx2/lanedet/lanedet/datasets/tusimple.py", line 7, in from .base_dataset import BaseDataset File "/home/hellojetsontx2/lanedet/lanedet/datasets/base_dataset.py", line 10, in from .process import Process File "/home/hellojetsontx2/lanedet/lanedet/datasets/process/init.py", line 7, in from .collect_lane import CollectLane File "/home/hellojetsontx2/lanedet/lanedet/datasets/process/collect_lane.py", line 9, in from shapely.geometry import Polygon, Point, LineString File "/home/hellojetsontx2/.local/lib/python3.6/site-packages/shapely/geometry/init.py", line 4, in from .base import CAP_STYLE, JOIN_STYLE File "/home/hellojetsontx2/.local/lib/python3.6/site-packages/shapely/geometry/base.py", line 20, in from shapely.coords import CoordinateSequence File "/home/hellojetsontx2/.local/lib/python3.6/site-packages/shapely/coords.py", line 10, in from shapely.geos import lgeos File "/home/hellojetsontx2/.local/lib/python3.6/site-packages/shapely/geos.py", line 99, in _lgeos = load_dll('geos_c', fallbacks=alt_paths) File "/home/hellojetsontx2/.local/lib/python3.6/site-packages/shapely/geos.py", line 56, in load_dll libname, fallbacks or [])) OSError: Could not find lib geos_c or load any of its variants ['libgeos_c.so.1', 'libgeos_c.so'].

Turoad commented 2 years ago

It seems you don't have the library libgeos_c.so. You might try this: https://stackoverflow.com/questions/19742406/could-not-find-library-geos-c-or-load-any-of-its-variants.

Or

collect_lane.py this file is used in CondlaneNet. If you don't need testing it, you can try to comment this line(https://github.com/Turoad/lanedet/blob/main/lanedet/datasets/process/__init__.py#L7):

from .collect_lane import CollectLane