Hi Adam, Yes I've made a new one. The file "rivers.json" was loaded without any problem.
Thanks, I'll try to edit the file and correct the errors. quinta-feira, 18 de Janeiro de 2018 às 18:04:17 UTC, Adam Cox escreveu: > > FYI I just tested loading the sql from that repo example and then loading > the tile layer with the config file that's in there, and the layer loaded > correctly. > > On Thu, Jan 18, 2018 at 9:59 AM, Adam Cox <mr.ad...@gmail.com > <javascript:>> wrote: > >> Hi David, are you using a config file from the repo, or have you made a >> new one? From looking at the error, it seems like the config file you are >> using may have [ ] in the outermost position instead of { }, but the config >> files in that repo do look fine to me. >> >> Adam >> >> On Thu, Jan 18, 2018 at 9:13 AM, David Lopes <cim...@gmail.com >> <javascript:>> wrote: >> >>> Hi, >>> >>> I've been trying to add .sql and .json files to the data base without >>> success (https://github.com/legiongis/arches4-geo-examples) >>> >>> I get the following message: >>> >>> operation: add_tileserver_layer >>> package: arches >>> Traceback (most recent call last): >>> File "manage.py", line 27, in <module> >>> execute_from_command_line(sys.argv) >>> File >>> "/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py", >>> >>> line 364, in execute_from_command_line >>> utility.execute() >>> File >>> "/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py", >>> >>> line 356, in execute >>> self.fetch_command(subcommand).run_from_argv(self.argv) >>> File >>> "/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/django/core/management/base.py", >>> >>> line 283, in run_from_argv >>> self.execute(*args, **cmd_options) >>> File >>> "/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/django/core/management/base.py", >>> >>> line 330, in execute >>> output = self.handle(*args, **options) >>> File >>> "/home/ubuntu/Projects/arches/arches/management/commands/packages.py", line >>> 188, in handle >>> self.add_tileserver_layer(options['layer_name'], >>> options['mapnik_xml_path'], options['layer_icon'], options['is_basemap'], >>> options['tile_config_path']) >>> File >>> "/home/ubuntu/Projects/arches/arches/management/commands/packages.py", line >>> 908, in add_tileserver_layer >>> config = config_data["config"] >>> TypeError: list indices must be integers, not str >>> >>> >>> Can you tell what's wrong? >>> >>> Thanks >>> >>> -- >>> -- To post, send email to arches...@googlegroups.com <javascript:>. To >>> unsubscribe, send email to archesprojec...@googlegroups.com >>> <javascript:>. For more information, visit >>> https://groups.google.com/d/forum/archesproject?hl=en >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Arches Project" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to archesprojec...@googlegroups.com <javascript:>. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> > -- -- To post, send email to archesproject@googlegroups.com. To unsubscribe, send email to archesproject+unsubscr...@googlegroups.com. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en --- You received this message because you are subscribed to the Google Groups "Arches Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to archesproject+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.