Hi Vencislav, I was able to recreate this error when point the -c parameter to a file that was not json.
First things first, I take it you did not run the command literally, but instead replaced 'path_to_mapping_file' with an actual file path to a mapping file. If not, I would try that first (also don't forget a -d parameter for the destination of the outputted files). The mapping file serves as a kind of translator between your graphs and a csv file. The mapping file 'maps' data from the nodes in your graph to columns in your csv file. Each resource model you would like to export requires it's own mapping file. If you can access the graph manager from the UI, click on 'manage' then 'create mapping file' (two files are downloaded but for export you only need the .mapping file). Fill out the 'file_field_name' for each node in the mapping file, these 'file_field_names' will be the names of the columns in your csv export. In the mapping file, for concept nodes, there is an option 'concept_export_value', in your case I would set this to 'id' (it will make importing the data to another instance of arches easier). Once these properties are filled out in the .mapping file you are ready to use it for csv export. Run the command you ran before with a -d parameter being the destination file path and the -c parameter pointing to the mapping file you just created. You will need to do this for each type of resource you would like to export. Hope this helps, Ryan On Thursday, September 7, 2017 at 9:47:02 AM UTC-7, Vencislav Pirinski wrote: > > Hello, > I had arches 4.03b installed a while ago with some data in it. After the > release of v4.0 i tried to upgrade to it, but there were some errors. I > don't care about the installation itself, but the data in the database. > Now the command : > > python manage.py packages -o export_business_data -f 'csv' -c > 'path_to_mapping_file' > > gives error: ValueError: No JSON object could be decoded. > > I tried to copy the database directly from psql command line and import > them in another working arches v4.0, the import/export commands didn't give > any errors, but now arches crashes when opening the map. The resource > models are visible though. > > The data is not that important, but recovering it would be nice. > > Best regards, > Venci Pirinski > -- -- To post, send email to [email protected]. To unsubscribe, send email to [email protected]. 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
