-
Notifications
You must be signed in to change notification settings - Fork 32
Module 'resources' has no attribute 'setrlimit' #5
Comments
Hi @ahmedosman2001 , |
Hi @KaunilD, This is the output for "pip freeze" |
Found the issue. As of Jan 01, the resource module will raise an error as they have dropped support for py2.7. I am working on the upgrade to python 3.6.9 and OpenCV's latest stable release. Will keep you updated. Thank you for catching this @ahmedosman2001 . |
Please follow |
Hi, I'm receiving this error, Anyone knows how I can fix it.
I tried "pip install resources" but this did not fix the error. Thanks
root@ubunto-VirtualBox:/home/ubunto/street-addresses# python run_end2end.py --xml /home/ubunto/street-addresses/example/nashik.osm --out_dir /home/ubunto/street-addresses/example --roadSeg_bin /home/ubunto/street-addresses/road_segmentor/bin/RoadConnectionLabelling
2020-07-18 21:54:37,263 [INFO] sys.version_info(major=2, minor=7, micro=17, releaselevel='final', serial=0)
2020-07-18 21:54:37,264 [INFO] {'input_tiff': None, 'xml': '/home/ubunto/street-addresses/example/nashik.osm', 'out_dir': '/home/ubunto/street-addresses/example', 'centre_row': None, 'roadSeg_bin': '/home/ubunto/street-addresses/road_segmentor/bin/RoadConnectionLabelling', 'centre_col': None}
2020-07-18 21:54:37,265 [INFO] Reading OSM file
2020-07-18 21:54:38,528 [INFO] Running end2end with OSM as input
2020-07-18 21:54:38,529 [INFO] Processing file:/home/ubunto/street-addresses/example/nashik.tif
2020-07-18 21:54:38,530 [INFO] Starting Road segmentator
Traceback (most recent call last):
File "run_end2end.py", line 147, in
main(args, out_fn, logger)
File "run_end2end.py", line 92, in main
safal_layers.RoadSegment()
File "/home/ubunto/street-addresses/util/safal_functions.py", line 36, in RoadSegment
resources.setrlimit(resource.RLIMIT_STACK, resource.RLIM_INFINITY)
AttributeError: 'module' object has no attribute 'setrlimit'
The text was updated successfully, but these errors were encountered: