python - how to cast LP_LP_c_longlong instance from pointer to LP_c_longlong -
i using python rtree module find nearest city lat,lon. on nginx server after few requests getting following error.
it works on apache giving argument error on ngix
file "/home/ubuntu/core/greedy/utilities.py", line 88, in current_location city = geolocation.citybylatlong(location[0], location[1], idx) file "/home/ubuntu/core/greedy/apps/geolocations/models.py", line 13, in citybylatlong near_list = idx.nearest((latitude, longitude), 1, objects=false) file "/usr/local/lib/python2.7/dist-packages/rtree/index.py", line 567, in nearest p_num_results) argumenterror: argument 5: <type 'exceptions.typeerror'>: expected lp_lp_c_longlong instance instead of pointer lp_c_longlong
Comments
Post a Comment