Bug#899345: sumo: Should include data directory in package

Wookey wookey at wookware.org
Thu Mar 21 03:10:55 GMT 2019


I have just come across this problem too.

If you run the osmWebWizard.poy script to generate a scenario:
SUMO_HOME=/usr/share/sumo /usr/share/sumo/tools/osmWebWizard.py

it gives an error when you click on 'Generate scenario':
Converting map data
Usage: osmWebWizard.py [options]

osmWebWizard.py: error: typemap file "/usr/share/sumo/data/typemap/osmPolyconvert.typ.xml" not found
Traceback (most recent call last):
  File "/usr/share/sumo/tools/osmWebWizard.py", line 379, in build
    builder.build()
  File "/usr/share/sumo/tools/osmWebWizard.py", line 187, in build
    osmBuild.build(options)
  File "/usr/share/sumo/tools/osmBuild.py", line 68, in build
    optParser.error('typemap file "%s" not found' % options.typemap)
  File "/usr/lib/python2.7/optparse.py", line 1584, in error
    self.exit(2, "%s: error: %s\n" % (self.get_prog_name(), msg))
  File "/usr/lib/python2.7/optparse.py", line 1574, in exit
    sys.exit(status)

And indeed, /usr/share/sumo/data/typemap/osmPolyconvert.typ.xml is not present.
but there is a data/typemap/osmPolyconvert.typ.xml in the source tree.
Looks like that data dir should just go in /usr/share/sumo along with the tools stuff.

Just copying those files into that location does indeed make the script work.

This packaging patch fixes it:

--- debian/sumo-tools.install~	2019-03-21 03:07:15.140691866 +0000
+++ debian/sumo-tools.install	2019-03-20 03:51:22.637332398 +0000
@@ -1 +1,2 @@
 tools/ usr/share/sumo
+data/ usr/share/sumo

However I see that this is already in the 1.1 now in testing, so I guess I should try that instead.

Wookey
-- 
Principal hats:  Linaro, Debian, Wookware, ARM
http://wookware.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20190321/6ce6180b/attachment.sig>


More information about the debian-science-maintainers mailing list