python3.7 -m venv work3.7
(work3.7) saul@viking:~/flightgear/development/osm2city$ pip freeze
attrs==19.3.0
certifi==2020.6.20
chardet==3.0.4
click==7.1.2
click-plugins==1.1.1
cligj==0.5.0
cycler==0.10.0
decorator==4.4.2
descartes==1.1.0
Fiona==1.8.13.post1
idna==2.10
kiwisolver==1.2.0
matplotlib==3.3.0
munch==2.5.0
networkx==2.4
numpy==1.19.1
Pillow==7.2.0
psycopg2-binary==2.8.5
pyparsing==2.4.7
pyproj==2.6.1.post1
python-dateutil==2.8.1
requests==2.24.0
scipy==1.5.2
Shapely==1.7.0
six==1.15.0
urllib3==1.25.10
SpawnPoolWorker-2 root ERROR Exception occurred while processing tile 1726160.
Traceback (most recent call last):
File "/home/saul/flightgear/development/osm2city/build_tiles.py", line 131, in process_scenery_tile
lit_areas, water_areas, osm_buildings = ol.process(the_coords_transform, my_airports)
File "/home/saul/flightgear/development/osm2city/osm2city/owbb/landuse.py", line 783, in process
btg_reader = btg.read_btg_file(transformer, None)
File "/home/saul/flightgear/development/osm2city/osm2city/utils/btg_io.py", line 445, in read_btg_file
out_proj = pyproj.Proj('epsg:4326', ellps='WGS84', datum='WGS84')
File "/home/saul/work3.7/lib/python3.7/site-packages/pyproj/proj.py", line 107, in __init__
self.crs = CRS.from_user_input(projparams, **kwargs)
File "/home/saul/work3.7/lib/python3.7/site-packages/pyproj/crs/crs.py", line 440, in from_user_input
return CRS(value, **kwargs)
File "/home/saul/work3.7/lib/python3.7/site-packages/pyproj/crs/crs.py", line 296, in __init__
super().__init__(projstring)
File "pyproj/_crs.pyx", line 2338, in pyproj._crs._CRS.__init__
pyproj.exceptions.CRSError: Invalid projection: epsg:4326 +ellps=WGS84 +datum=WGS84 +type=crs: (Internal Proj Error: proj_create: crs not found)
SpawnPoolWorker-2 root ERROR ******* Exception in tile 1726160 - to reprocess use boundaries: -75.0_1.25_-74.93_1.375 *******
Traceback (most recent call last):
File "/home/saul/flightgear/development/osm2city/build_tiles.py", line 131, in process_scenery_tile
lit_areas, water_areas, osm_buildings = ol.process(the_coords_transform, my_airports)
File "/home/saul/flightgear/development/osm2city/osm2city/owbb/landuse.py", line 783, in process
btg_reader = btg.read_btg_file(transformer, None)
File "/home/saul/flightgear/development/osm2city/osm2city/utils/btg_io.py", line 445, in read_btg_file
out_proj = pyproj.Proj('epsg:4326', ellps='WGS84', datum='WGS84')
File "/home/saul/work3.7/lib/python3.7/site-packages/pyproj/proj.py", line 107, in __init__
self.crs = CRS.from_user_input(projparams, **kwargs)
File "/home/saul/work3.7/lib/python3.7/site-packages/pyproj/crs/crs.py", line 440, in from_user_input
return CRS(value, **kwargs)
File "/home/saul/work3.7/lib/python3.7/site-packages/pyproj/crs/crs.py", line 296, in __init__
super().__init__(projstring)
File "pyproj/_crs.pyx", line 2338, in pyproj._crs._CRS.__init__
pyproj.exceptions.CRSError: Invalid projection: epsg:4326 +ellps=WGS84 +datum=WGS84 +type=crs: (Internal Proj Error: proj_create: crs not found)
SpawnPoolWorker-2 root INFO ******* Finished tile 1726160 - 2914/2915 ******
PREFIX = "ECUADOR"
MAX_SLOPE_ROAD = 0.20
MIN_ABOVE_GROUND_LEVEL = 0.02
PATH_TO_SCENERY = "/home/saul/flightgear/scenery"
PATH_TO_OUTPUT = "/home/saul/flightgear/fg_customscenery/ECUADOR"
PATH_TO_OSM2CITY_DATA = "/home/saul/flightgear/development/osm2city-data"
DB_HOST = "localhost"
DB_PORT = 5432
DB_NAME = "ecuador"
DB_USER = "giuser"
DB_USER_PASSWORD = "hola"
NO_ELEV = False
FG_ELEV = "/home/saul/flightgear/dnc-managed/install/flightgear/bin/fgelev"
$ python3.7 -m venv work3.7/
$ source work3.7/bin/activate
$ pip install -r osm2city/requirements.txt
SpawnPoolWorker-3 root INFO No platforms found -> aborting
SpawnPoolWorker-3 root INFO Generating clusters -3895.1668000 -6910.9286484 3895.1668000 6910.9286484 for object_static
SpawnPoolWorker-3 root INFO Reading OSM way data for ['man_made=>pier'] from db took 0.0076 seconds.
SpawnPoolWorker-3 root INFO ways: 0
SpawnPoolWorker-3 root INFO No piers found -> aborting
SpawnPoolWorker-3 root INFO ******* Finished tile 1726160 - 2914/2915 *******
******* Exception in tile 5234554 - to reprocess use boundaries: 139.5_35.875_139.75_36.0 ******* at 2020-09-01_112520 -
Traceback (most recent call last):
File "/storage/osm2city/easy-osm2city/osm2city/build_tiles.py", line 131, in process_scenery_tile
lit_areas, water_areas, osm_buildings = ol.process(the_coords_transform, my_airports)
File "/storage/osm2city/easy-osm2city/osm2city/osm2city/owbb/landuse.py", line 906, in process
bu.process_building_loose_parts(building_nodes_dict, osm_buildings)
File "/storage/osm2city/easy-osm2city/osm2city/osm2city/buildings.py", line 573, in process_building_loose_parts
second_building.parent.transfer_children(first_building.parent)
File "/storage/osm2city/easy-osm2city/osm2city/osm2city/building_lib.py", line 1547, in transfer_children
other_parent.add_child(child)
File "/storage/osm2city/easy-osm2city/osm2city/osm2city/building_lib.py", line 1465, in add_child
self.children.append(child)
MemoryError
******* Exception in tile 3593417 - to reprocess use boundaries: 39.125_-6.875_39.25_-6.75 ******* at 2020-08-30_034854 -
Traceback (most recent call last):
File "/storage/osm2city/easy-osm2city/osm2city/osm2city/utils/utilities.py", line 451, in probe
elev_is_solid_tuple = self._cache[key]
KeyError: (39.24637649324977, -6.793663019266104)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/storage/osm2city/easy-osm2city/osm2city/build_tiles.py", line 144, in process_scenery_tile
osm_buildings, file_lock)
File "/storage/osm2city/easy-osm2city/osm2city/osm2city/buildings.py", line 1107, in process_buildings
prepare_textures.facades, prepare_textures.roofs, stats)
File "/storage/osm2city/easy-osm2city/osm2city/osm2city/building_lib.py", line 1679, in analyse
if not b.analyse_elev_and_water(fg_elev):
File "/storage/osm2city/easy-osm2city/osm2city/osm2city/building_lib.py", line 660, in analyse_elev_and_water
min_ground_elev, diff_elev = fg_elev.probe_list_of_points(self.pts_outer)
File "/storage/osm2city/easy-osm2city/osm2city/osm2city/utils/utilities.py", line 470, in probe_list_of_points
elev_is_solid_tuple = self.probe(point)
File "/storage/osm2city/easy-osm2city/osm2city/osm2city/utils/utilities.py", line 454, in probe
elev_is_solid_tuple = really_probe(position)
File "/storage/osm2city/easy-osm2city/osm2city/osm2city/utils/utilities.py", line 400, in really_probe
self._open_fgelev()
File "/storage/osm2city/easy-osm2city/osm2city/osm2city/utils/utilities.py", line 369, in _open_fgelev
bufsize=1, universal_newlines=True)
File "/usr/lib/python3.7/subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.7/subprocess.py", line 1453, in _execute_child
restore_signals, start_new_session, preexec_fn)
OSError: [Errno 12] Cannot allocate memory
merspieler wrote in Tue Sep 01, 2020 3:02 pm:There should be an exceptions.log which shows, what error occured.
If you've really got out of memory problems, it will look like this:
The first line states: Exception in tile 5234554 - to reprocess use boundaries: 139.5_35.875_139.75_36.0 so you've got the tile name and the boundaries so you can rebuild that tile.
Else, just be patient... a few days are not really uncommon for some tiles.
Processing tile 1712251 in prefix w080n30_w076n39_1712251 with process id = 4248 - 9/55
>>> import common
>>> tile = 1712251
>>> common.get_west(tile)
-75.25
>>> common.get_south(tile)
39.875
>>> common.get_east(tile)
-75.0
>>> common.get_north(tile)
40.0
>>>
Users browsing this forum: No registered users and 5 guests