[pgrouting-users] OSM2pgRouting failling silently

Dear all,

I’ve imported several OSM datasets successfully to pgRouting but recently there’s one I can’t get around. There are no errors reported, no warning messages, but no tables are created in the database (I’m attaching a log at the end of the message). Is there any way I can check if something is going wrong, e.g. log file or similar?

Thank you,

Luís


$ osm2pgrouting -file “Luxembourg.osm” -conf “/usr/share/osm2pgrouting/mapconfig.xml” -dbname routing -user postgres -host localhost -passwd XXXXX
host=localhost user=postgres dbname=routing port=5432 password=system
connection success
Trying to load config file /usr/share/osm2pgrouting/mapconfig.xml
Trying to parse config
SE for
SE for
SE for
class name = motorway
class id = 101
class id = 101 name = motorway added to type name=highway
SE for
class name = motorway_link
class id = 102
class id = 102 name = motorway_link added to type name=highway
SE for
class name = motorway_junction
class id = 103
class id = 103 name = motorway_junction added to type name=highway
SE for
class name = trunk
class id = 104
class id = 104 name = trunk added to type name=highway
SE for
class name = trunk_link
class id = 105
class id = 105 name = trunk_link added to type name=highway
SE for
class name = primary
class id = 106
class id = 106 name = primary added to type name=highway
SE for
class name = primary_link
class id = 107
class id = 107 name = primary_link added to type name=highway
SE for
class name = secondary
class id = 108
class id = 108 name = secondary added to type name=highway
SE for
class name = tertiary
class id = 109
class id = 109 name = tertiary added to type name=highway
SE for
class name = residential
class id = 110
class id = 110 name = residential added to type name=highway
SE for
class name = living_street
class id = 111
class id = 111 name = living_street added to type name=highway
SE for
class name = service
class id = 112
class id = 112 name = service added to type name=highway
SE for
class name = track
class id = 113
class id = 113 name = track added to type name=highway
SE for
class name = pedestrian
class id = 114
class id = 114 name = pedestrian added to type name=highway
SE for
class name = services
class id = 115
class id = 115 name = services added to type name=highway
SE for
class name = bus_guideway
class id = 116
class id = 116 name = bus_guideway added to type name=highway
SE for
class name = path
class id = 117
class id = 117 name = path added to type name=highway
SE for
class name = cicleway
class id = 118
class id = 118 name = cicleway added to type name=highway
SE for
class name = footway
class id = 119
class id = 119 name = footway added to type name=highway
SE for
class name = bridleway
class id = 120
class id = 120 name = bridleway added to type name=highway
SE for
class name = byway
class id = 121
class id = 121 name = byway added to type name=highway
SE for
class name = steps
class id = 122
class id = 122 name = steps added to type name=highway
SE for
class name = unclassified
class id = 100
class id = 100 name = unclassified added to type name=highway
SE for
class name = road
class id = 100
class id = 100 name = road added to type name=highway
SE for
SE for
class name = lane
class id = 201
class id = 201 name = lane added to type name=cycleway
SE for
class name = track
class id = 202
class id = 202 name = track added to type name=cycleway
SE for
class name = opposite_lane
class id = 203
class id = 203 name = opposite_lane added to type name=cycleway
SE for
class name = opposite
class id = 204
class id = 204 name = opposite added to type name=cycleway
SE for
SE for
class name = grade1
class id = 301
class id = 301 name = grade1 added to type name=tracktype
SE for
class name = grade2
class id = 302
class id = 302 name = grade2 added to type name=tracktype
SE for
class name = grade3
class id = 303
class id = 303 name = grade3 added to type name=tracktype
SE for
class name = grade4
class id = 304
class id = 304 name = grade4 added to type name=tracktype
SE for
class name = grade5
class id = 305
class id = 305 name = grade5 added to type name=tracktype
SE for
SE for
class name = roundabout
class id = 401
class id = 401 name = roundabout added to type name=junction
Trying to load data
Trying to parse data

$ psql -h localhost -U postgres -W -d routing -c “\d”
Password for user postgres:
List of relations
Schema | Name | Type | Owner
--------±------------------±------±---------
public | geography_columns | view | postgres
public | geometry_columns | view | postgres
public | spatial_ref_sys | table | postgres
(3 rows)

On Thu, Aug 22, 2013 at 6:07 PM, Luís de Sousa <luis.a.de.sousa@gmail.com>wrote:

Dear all,

I've imported several OSM datasets successfully to pgRouting but recently
there's one I can't get around. There are no errors reported, no warning
messages, but no tables are created in the database (I'm attaching a log at
the end of the message). Is there any way I can check if something is
going wrong, e.g. log file or similar?

Thank you,

Luís

Did you get the source from the Github repository?
In case you're using pgRouting 2.0, then you better use the "develop"
branch of osm2pgrouting as well:
https://github.com/pgrouting/osm2pgrouting/tree/develop

Daniel

--
Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de
Web: http://georepublic.de

Hi Daniel, thank you for the message.

First of all, I did not receive an e-mail with your message, I can only see
it at Nabble.

I have installed osm2pgrouting from the Ubuntu repositories. No idea which
version it is, apparently there's no way to request that from the command
line.

Tweaking the arguments I found that using "127.0.0.1" instead of "localhost"
osm2pgrouting is able to finish processing this data set. Unfortunately it
leaves the ways table empty. This seems the same issue reported here [0].

Thanks,

Luís

[0]
http://gis.stackexchange.com/questions/21610/ways-and-vertices-tables-empty-after-osm2pgrouting-tutorial

--
View this message in context: http://pgrouting-users.974093.n3.nabble.com/pgrouting-users-OSM2pgRouting-failling-silently-tp4025288p4025290.html
Sent from the pgRouting-users mailing list archive at Nabble.com.

Hello again,

According to the Launchpad repo[0] I'm using version 0.1-6.

Regards,

Luís

[0]
https://launchpad.net/~georepublic/+archive/pgrouting?field.series_filter=precise

--
View this message in context: http://pgrouting-users.974093.n3.nabble.com/pgrouting-users-OSM2pgRouting-failling-silently-tp4025288p4025291.html
Sent from the pgRouting-users mailing list archive at Nabble.com.

Hi Luis,

Then you’re using the old version, which is probably the reason for the problems.
I have created a different Launchpad repository for the new versions. You may want to try this one:
https://launchpad.net/~georepublic/+archive/pgrouting-unstable

Daniel

···

On Thu, Aug 29, 2013 at 7:23 PM, Luís de Sousa <luis.a.de.sousa@gmail.com> wrote:

Hello again,

According to the Launchpad repo[0] I’m using version 0.1-6.

Regards,

Luís

[0]
https://launchpad.net/~georepublic/+archive/pgrouting?field.series_filter=precise


View this message in context: http://pgrouting-users.974093.n3.nabble.com/pgrouting-users-OSM2pgRouting-failling-silently-tp4025288p4025291.html

Sent from the pgRouting-users mailing list archive at Nabble.com.


Pgrouting-users mailing list
Pgrouting-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-users


Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de
Web: http://georepublic.de

Hi again Daniel, thanks for the reply. Unfortunately that package is not
installing (see below).

How can I provide more feedback on this error? Thanks,

Luís

$ sudo apt-get upgrade osm2pgrouting
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  cgi-mapserver gdal-bin grass-core libgeos-c1 libgeos-dev libmapserver
libqgis1.8.0 linux-generic
  linux-headers-generic linux-image-generic mapserver-bin php5-mapscript
postgis python-gdal python-mapscript
  python-qgis python-qgis-common qgis qgis-common qgis-plugin-grass
qgis-plugin-grass-common qgis-providers
  qgis-providers-common texmaker
The following packages will be upgraded:
  apparmor apparmor-utils cmake cmake-curses-gui cmake-data dh-apparmor
gnome-control-center
  gnome-control-center-data libapparmor-perl libapparmor1
libgnome-control-center1 libpci3 osm2pgrouting pciutils
  postgresql-9.1-pgrouting
15 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
Need to get 9,879 kB of archives.
After this operation, 1,852 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main apparmor
amd64 2.7.102-0ubuntu3.8 [357 kB]
Get:2 http://ppa.launchpad.net/georepublic/pgrouting-unstable/ubuntu/
precise/main cmake-curses-gui amd64 2.8.9-0ubuntu1~ubuntu12.04.1~ppa1 [1,375
kB]
Get:3 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main pciutils
amd64 1:3.1.8-2ubuntu6 [259 kB]
Get:4 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main libpci3
amd64 1:3.1.8-2ubuntu6 [25.9 kB]
Get:5 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main libapparmor1
amd64 2.7.102-0ubuntu3.8 [37.7 kB]
Get:6 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main
libapparmor-perl amd64 2.7.102-0ubuntu3.8 [30.1 kB]
Get:7 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main
apparmor-utils amd64 2.7.102-0ubuntu3.8 [112 kB]
Get:8 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main
libgnome-control-center1 amd64 1:3.4.2-0ubuntu0.12 [78.7 kB]
Get:9 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main
gnome-control-center-data all 1:3.4.2-0ubuntu0.12 [1,121 kB]
Get:10 http://ppa.launchpad.net/georepublic/pgrouting-unstable/ubuntu/
precise/main cmake amd64 2.8.9-0ubuntu1~ubuntu12.04.1~ppa1 [4,711 kB]
Get:11 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main
gnome-control-center amd64 1:3.4.2-0ubuntu0.12 [661 kB]
Get:12 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main dh-apparmor
all 2.7.102-0ubuntu3.8 [8,966 B]
Get:13 http://ppa.launchpad.net/georepublic/pgrouting-unstable/ubuntu/
precise/main cmake-data all 2.8.9-0ubuntu1~ubuntu12.04.1~ppa1 [806 kB]
Get:14 http://ppa.launchpad.net/georepublic/pgrouting-unstable/ubuntu/
precise/main postgresql-9.1-pgrouting amd64 2.0.0-rc1-ppa20~precise1 [244
kB]
Get:15 http://ppa.launchpad.net/georepublic/pgrouting-unstable/ubuntu/
precise/main osm2pgrouting amd64 2.0.0-beta-ppa4 [52.5 kB]
Fetched 9,879 kB in 1s (5,245 kB/s)
Preconfiguring packages ...
(Reading database ... 486462 files and directories currently installed.)
Preparing to replace apparmor 2.7.102-0ubuntu3.7 (using
.../apparmor_2.7.102-0ubuntu3.8_amd64.deb) ...
Unpacking replacement apparmor ...
Preparing to replace pciutils 1:3.1.8-2ubuntu5 (using
.../pciutils_1%3a3.1.8-2ubuntu6_amd64.deb) ...
Unpacking replacement pciutils ...
Preparing to replace libpci3 1:3.1.8-2ubuntu5 (using
.../libpci3_1%3a3.1.8-2ubuntu6_amd64.deb) ...
Unpacking replacement libpci3 ...
Preparing to replace libapparmor1 2.7.102-0ubuntu3.7 (using
.../libapparmor1_2.7.102-0ubuntu3.8_amd64.deb) ...
Unpacking replacement libapparmor1 ...
Preparing to replace libapparmor-perl 2.7.102-0ubuntu3.7 (using
.../libapparmor-perl_2.7.102-0ubuntu3.8_amd64.deb) ...
Unpacking replacement libapparmor-perl ...
Preparing to replace apparmor-utils 2.7.102-0ubuntu3.7 (using
.../apparmor-utils_2.7.102-0ubuntu3.8_amd64.deb) ...
Unpacking replacement apparmor-utils ...
Preparing to replace cmake-curses-gui 2.8.7-0ubuntu5 (using
.../cmake-curses-gui_2.8.9-0ubuntu1~ubuntu12.04.1~ppa1_amd64.deb) ...
Unpacking replacement cmake-curses-gui ...
Preparing to replace cmake 2.8.7-0ubuntu5 (using
.../cmake_2.8.9-0ubuntu1~ubuntu12.04.1~ppa1_amd64.deb) ...
Unpacking replacement cmake ...
Preparing to replace cmake-data 2.8.7-0ubuntu5 (using
.../cmake-data_2.8.9-0ubuntu1~ubuntu12.04.1~ppa1_all.deb) ...
Unpacking replacement cmake-data ...
Preparing to replace libgnome-control-center1 1:3.4.2-0ubuntu0.11 (using
.../libgnome-control-center1_1%3a3.4.2-0ubuntu0.12_amd64.deb) ...
Unpacking replacement libgnome-control-center1 ...
Preparing to replace gnome-control-center-data 1:3.4.2-0ubuntu0.11 (using
.../gnome-control-center-data_1%3a3.4.2-0ubuntu0.12_all.deb) ...
Unpacking replacement gnome-control-center-data ...
Preparing to replace gnome-control-center 1:3.4.2-0ubuntu0.11 (using
.../gnome-control-center_1%3a3.4.2-0ubuntu0.12_amd64.deb) ...
Unpacking replacement gnome-control-center ...
Preparing to replace postgresql-9.1-pgrouting 1.05-1~precise2 (using
.../postgresql-9.1-pgrouting_2.0.0-rc1-ppa20~precise1_amd64.deb) ...
Unpacking replacement postgresql-9.1-pgrouting ...
dpkg: error processing
/var/cache/apt/archives/postgresql-9.1-pgrouting_2.0.0-rc1-ppa20~precise1_amd64.deb
(--unpack):
trying to overwrite '/usr/lib/postgresql/9.1/lib/librouting_dd.so', which
is also in package postgresql-9.1-pgrouting-dd 1.05-1~precise2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to replace dh-apparmor 2.7.102-0ubuntu3.7 (using
.../dh-apparmor_2.7.102-0ubuntu3.8_all.deb) ...
Unpacking replacement dh-apparmor ...
Preparing to replace osm2pgrouting 0.1-6 (using
.../osm2pgrouting_2.0.0-beta-ppa4_amd64.deb) ...
Unpacking replacement osm2pgrouting ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for hicolor-icon-theme ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Errors were encountered while processing:

/var/cache/apt/archives/postgresql-9.1-pgrouting_2.0.0-rc1-ppa20~precise1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

--
View this message in context: http://pgrouting-users.974093.n3.nabble.com/pgrouting-users-OSM2pgRouting-failling-silently-tp4025288p4025293.html
Sent from the pgRouting-users mailing list archive at Nabble.com.

Hi Luis,

With pgRouting 1.05 there were 3 packages: “regular” pgRouting and one for TSP and one for Driving Distance.
When you add the new Launchpad repository it tries to also upgrade pgRouting from old to new version. But the new version is not only one package and it contains the library files of DD and TSP, which don’t get removed.

I haven’t considered this use case when creating the packages and had to check how it is possible to remove these 2 packages as well with an upgrade.
Right now I have not enough time to look at this issue. I think a workaround would be to just uninstall these packages manually before with:

sudo apt-get remove postgresql-9.1-pgrouting-dd postgresql-9.1-pgrouting-tsp

Can you try?

Daniel

···

On Fri, Aug 30, 2013 at 10:54 PM, Luís de Sousa <luis.a.de.sousa@gmail.com> wrote:

Hi again Daniel, thanks for the reply. Unfortunately that package is not
installing (see below).

How can I provide more feedback on this error? Thanks,

Luís

$ sudo apt-get upgrade osm2pgrouting
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages have been kept back:
cgi-mapserver gdal-bin grass-core libgeos-c1 libgeos-dev libmapserver
libqgis1.8.0 linux-generic
linux-headers-generic linux-image-generic mapserver-bin php5-mapscript
postgis python-gdal python-mapscript
python-qgis python-qgis-common qgis qgis-common qgis-plugin-grass
qgis-plugin-grass-common qgis-providers
qgis-providers-common texmaker
The following packages will be upgraded:
apparmor apparmor-utils cmake cmake-curses-gui cmake-data dh-apparmor
gnome-control-center
gnome-control-center-data libapparmor-perl libapparmor1
libgnome-control-center1 libpci3 osm2pgrouting pciutils
postgresql-9.1-pgrouting
15 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
Need to get 9,879 kB of archives.
After this operation, 1,852 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main apparmor
amd64 2.7.102-0ubuntu3.8 [357 kB]
Get:2 http://ppa.launchpad.net/georepublic/pgrouting-unstable/ubuntu/
precise/main cmake-curses-gui amd64 2.8.9-0ubuntu1~ubuntu12.04.1~ppa1 [1,375
kB]
Get:3 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main pciutils
amd64 1:3.1.8-2ubuntu6 [259 kB]
Get:4 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main libpci3
amd64 1:3.1.8-2ubuntu6 [25.9 kB]
Get:5 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main libapparmor1
amd64 2.7.102-0ubuntu3.8 [37.7 kB]
Get:6 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main
libapparmor-perl amd64 2.7.102-0ubuntu3.8 [30.1 kB]
Get:7 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main
apparmor-utils amd64 2.7.102-0ubuntu3.8 [112 kB]
Get:8 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main
libgnome-control-center1 amd64 1:3.4.2-0ubuntu0.12 [78.7 kB]
Get:9 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main
gnome-control-center-data all 1:3.4.2-0ubuntu0.12 [1,121 kB]
Get:10 http://ppa.launchpad.net/georepublic/pgrouting-unstable/ubuntu/
precise/main cmake amd64 2.8.9-0ubuntu1~ubuntu12.04.1~ppa1 [4,711 kB]
Get:11 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main
gnome-control-center amd64 1:3.4.2-0ubuntu0.12 [661 kB]
Get:12 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main dh-apparmor
all 2.7.102-0ubuntu3.8 [8,966 B]
Get:13 http://ppa.launchpad.net/georepublic/pgrouting-unstable/ubuntu/
precise/main cmake-data all 2.8.9-0ubuntu1~ubuntu12.04.1~ppa1 [806 kB]
Get:14 http://ppa.launchpad.net/georepublic/pgrouting-unstable/ubuntu/
precise/main postgresql-9.1-pgrouting amd64 2.0.0-rc1-ppa20~precise1 [244
kB]
Get:15 http://ppa.launchpad.net/georepublic/pgrouting-unstable/ubuntu/
precise/main osm2pgrouting amd64 2.0.0-beta-ppa4 [52.5 kB]
Fetched 9,879 kB in 1s (5,245 kB/s)
Preconfiguring packages …
(Reading database … 486462 files and directories currently installed.)
Preparing to replace apparmor 2.7.102-0ubuntu3.7 (using
…/apparmor_2.7.102-0ubuntu3.8_amd64.deb) …
Unpacking replacement apparmor …
Preparing to replace pciutils 1:3.1.8-2ubuntu5 (using
…/pciutils_1%3a3.1.8-2ubuntu6_amd64.deb) …
Unpacking replacement pciutils …
Preparing to replace libpci3 1:3.1.8-2ubuntu5 (using
…/libpci3_1%3a3.1.8-2ubuntu6_amd64.deb) …
Unpacking replacement libpci3 …
Preparing to replace libapparmor1 2.7.102-0ubuntu3.7 (using
…/libapparmor1_2.7.102-0ubuntu3.8_amd64.deb) …
Unpacking replacement libapparmor1 …
Preparing to replace libapparmor-perl 2.7.102-0ubuntu3.7 (using
…/libapparmor-perl_2.7.102-0ubuntu3.8_amd64.deb) …
Unpacking replacement libapparmor-perl …
Preparing to replace apparmor-utils 2.7.102-0ubuntu3.7 (using
…/apparmor-utils_2.7.102-0ubuntu3.8_amd64.deb) …
Unpacking replacement apparmor-utils …
Preparing to replace cmake-curses-gui 2.8.7-0ubuntu5 (using
…/cmake-curses-gui_2.8.9-0ubuntu1~ubuntu12.04.1~ppa1_amd64.deb) …
Unpacking replacement cmake-curses-gui …
Preparing to replace cmake 2.8.7-0ubuntu5 (using
…/cmake_2.8.9-0ubuntu1~ubuntu12.04.1~ppa1_amd64.deb) …
Unpacking replacement cmake …
Preparing to replace cmake-data 2.8.7-0ubuntu5 (using
…/cmake-data_2.8.9-0ubuntu1~ubuntu12.04.1~ppa1_all.deb) …
Unpacking replacement cmake-data …
Preparing to replace libgnome-control-center1 1:3.4.2-0ubuntu0.11 (using
…/libgnome-control-center1_1%3a3.4.2-0ubuntu0.12_amd64.deb) …
Unpacking replacement libgnome-control-center1 …
Preparing to replace gnome-control-center-data 1:3.4.2-0ubuntu0.11 (using
…/gnome-control-center-data_1%3a3.4.2-0ubuntu0.12_all.deb) …
Unpacking replacement gnome-control-center-data …
Preparing to replace gnome-control-center 1:3.4.2-0ubuntu0.11 (using
…/gnome-control-center_1%3a3.4.2-0ubuntu0.12_amd64.deb) …
Unpacking replacement gnome-control-center …
Preparing to replace postgresql-9.1-pgrouting 1.05-1~precise2 (using
…/postgresql-9.1-pgrouting_2.0.0-rc1-ppa20~precise1_amd64.deb) …
Unpacking replacement postgresql-9.1-pgrouting …
dpkg: error processing
/var/cache/apt/archives/postgresql-9.1-pgrouting_2.0.0-rc1-ppa20~precise1_amd64.deb
(–unpack):
trying to overwrite ‘/usr/lib/postgresql/9.1/lib/librouting_dd.so’, which
is also in package postgresql-9.1-pgrouting-dd 1.05-1~precise2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to replace dh-apparmor 2.7.102-0ubuntu3.7 (using
…/dh-apparmor_2.7.102-0ubuntu3.8_all.deb) …
Unpacking replacement dh-apparmor …
Preparing to replace osm2pgrouting 0.1-6 (using
…/osm2pgrouting_2.0.0-beta-ppa4_amd64.deb) …
Unpacking replacement osm2pgrouting …
Processing triggers for man-db …
Processing triggers for ureadahead …
ureadahead will be reprofiled on next reboot
Processing triggers for hicolor-icon-theme …
Processing triggers for bamfdaemon …
Rebuilding /usr/share/applications/bamf.index…
Processing triggers for desktop-file-utils …
Processing triggers for gnome-menus …
Errors were encountered while processing:

/var/cache/apt/archives/postgresql-9.1-pgrouting_2.0.0-rc1-ppa20~precise1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


View this message in context: http://pgrouting-users.974093.n3.nabble.com/pgrouting-users-OSM2pgRouting-failling-silently-tp4025288p4025293.html

Sent from the pgRouting-users mailing list archive at Nabble.com.


Pgrouting-users mailing list
Pgrouting-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-users


Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de
Web: http://georepublic.de

Thank you Daniel, that worked. I'll try to import the data again.

Luís

--
View this message in context: http://pgrouting-users.974093.n3.nabble.com/pgrouting-users-OSM2pgRouting-failling-silently-tp4025288p4025298.html
Sent from the pgRouting-users mailing list archive at Nabble.com.

Hi again Daniel,

I think this only replaced one problem for another. I tried to recreate a
routing database to import again the data but the /usr/share/postlbs folder
no longer exists. Thinking that it might be missing due to packages lacking
I tried to reinstalled them, but I get errors with both (see below). So now
I have osm2pgrouting working but no pgrounting...

Luís

$ sudo apt-get install postgresql-9.1-pgrouting-tsp
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed
  postgresql-9.1-pgrouting-tsp
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
Need to get 0 B/12.0 kB of archives.
After this operation, 76.8 kB of additional disk space will be used.
(Reading database ... 486495 files and directories currently installed.)
Unpacking postgresql-9.1-pgrouting-tsp (from
.../postgresql-9.1-pgrouting-tsp_1.05-1~precise2_amd64.deb) ...
dpkg: error processing
/var/cache/apt/archives/postgresql-9.1-pgrouting-tsp_1.05-1~precise2_amd64.deb
(--unpack):
trying to overwrite '/usr/lib/postgresql/9.1/lib/librouting_tsp.so', which
is also in package postgresql-9.1-pgrouting 2.0.0-rc1-ppa20~precise1
Errors were encountered while processing:

/var/cache/apt/archives/postgresql-9.1-pgrouting-tsp_1.05-1~precise2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

$ sudo apt-get install postgresql-9.1-pgrouting-dd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed
  postgresql-9.1-pgrouting-dd
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
Need to get 0 B/69.6 kB of archives.
After this operation, 253 kB of additional disk space will be used.
(Reading database ... 486495 files and directories currently installed.)
Unpacking postgresql-9.1-pgrouting-dd (from
.../postgresql-9.1-pgrouting-dd_1.05-1~precise2_amd64.deb) ...
dpkg: error processing
/var/cache/apt/archives/postgresql-9.1-pgrouting-dd_1.05-1~precise2_amd64.deb
(--unpack):
trying to overwrite '/usr/lib/postgresql/9.1/lib/librouting_dd.so', which
is also in package postgresql-9.1-pgrouting 2.0.0-rc1-ppa20~precise1
Errors were encountered while processing:

/var/cache/apt/archives/postgresql-9.1-pgrouting-dd_1.05-1~precise2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

--
View this message in context: http://pgrouting-users.974093.n3.nabble.com/pgrouting-users-OSM2pgRouting-failling-silently-tp4025288p4025299.html
Sent from the pgRouting-users mailing list archive at Nabble.com.

On Tue, Sep 3, 2013 at 12:24 AM, Luís de Sousa <luis.a.de.sousa@gmail.com>wrote:

Hi again Daniel,

I think this only replaced one problem for another. I tried to recreate a
routing database to import again the data but the /usr/share/postlbs folder
no longer exists. Thinking that it might be missing due to packages lacking
I tried to reinstalled them, but I get errors with both (see below). So now
I have osm2pgrouting working but no pgrounting...

Luís

Hi Luís,

You have installed the new pgRouting 2.0, which contains many changes and
there might be lot of outdated documentation now available in internet.
It probably helps to read the new documentation. It will answer most of
your questions: http://docs.pgrouting.org/

Daniel

$ sudo apt-get install postgresql-9.1-pgrouting-tsp
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed
  postgresql-9.1-pgrouting-tsp
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
Need to get 0 B/12.0 kB of archives.
After this operation, 76.8 kB of additional disk space will be used.
(Reading database ... 486495 files and directories currently installed.)
Unpacking postgresql-9.1-pgrouting-tsp (from
.../postgresql-9.1-pgrouting-tsp_1.05-1~precise2_amd64.deb) ...
dpkg: error processing

/var/cache/apt/archives/postgresql-9.1-pgrouting-tsp_1.05-1~precise2_amd64.deb
(--unpack):
trying to overwrite '/usr/lib/postgresql/9.1/lib/librouting_tsp.so', which
is also in package postgresql-9.1-pgrouting 2.0.0-rc1-ppa20~precise1
Errors were encountered while processing:

/var/cache/apt/archives/postgresql-9.1-pgrouting-tsp_1.05-1~precise2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

$ sudo apt-get install postgresql-9.1-pgrouting-dd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed
  postgresql-9.1-pgrouting-dd
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
Need to get 0 B/69.6 kB of archives.
After this operation, 253 kB of additional disk space will be used.
(Reading database ... 486495 files and directories currently installed.)
Unpacking postgresql-9.1-pgrouting-dd (from
.../postgresql-9.1-pgrouting-dd_1.05-1~precise2_amd64.deb) ...
dpkg: error processing

/var/cache/apt/archives/postgresql-9.1-pgrouting-dd_1.05-1~precise2_amd64.deb
(--unpack):
trying to overwrite '/usr/lib/postgresql/9.1/lib/librouting_dd.so', which
is also in package postgresql-9.1-pgrouting 2.0.0-rc1-ppa20~precise1
Errors were encountered while processing:

/var/cache/apt/archives/postgresql-9.1-pgrouting-dd_1.05-1~precise2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

--
View this message in context:
http://pgrouting-users.974093.n3.nabble.com/pgrouting-users-OSM2pgRouting-failling-silently-tp4025288p4025299.html
Sent from the pgRouting-users mailing list archive at Nabble.com.
_______________________________________________
Pgrouting-users mailing list
Pgrouting-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-users

--
Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de
Web: http://georepublic.de

Hi again Daniel, thank you for driving me through this. With the manual
things got clear and now I have the topology in the database.

I hope we can have an official 2.0.0 release soon. Regards,

Luís

P.S.: the manual is missing a table of contents.

--
View this message in context: http://pgrouting-users.974093.n3.nabble.com/pgrouting-users-OSM2pgRouting-failling-silently-tp4025288p4025301.html
Sent from the pgRouting-users mailing list archive at Nabble.com.