Hi Adam, Tried installing Pillow, version installed is 6.0.0. Then I ran the export_resources command again. Still produced the same export files with empty resources file.
Regards, Joel On Sunday, April 21, 2019 at 8:50:38 AM UTC+8, Adam Cox wrote: > > Hi Joel, if you have the new virtual environment activated you want have > to change the settings file at all. > > The PIL error indicates that that python library (and potentially others) > didn't install correctly... Not sure why. You could try pip installing PIL. > I can't look it up right now but it may be actually be called Pillow in pip. > > Adam > > On Sat, Apr 20, 2019, 7:37 PM Joel Aldor <[email protected] <javascript:>> > wrote: > >> Hi Adam, >> >> I'd like to think we need to explicitly point the settings.py to our >> phm2app instance in order for the export_resources command to run properly, >> but I'm not sure which parts I will need to edit, apart from the DATABASES >> settings. You think this might be the problem? >> >> Regards, >> >> Joel >> >> On Sunday, April 21, 2019 at 8:25:41 AM UTC+8, Joel Aldor wrote: >>> >>> Hi Adam, >>> >>> I tried to install arches v3.1.2 and pointed the instance into our >>> existing database on settings.py, then I ran the export_resources command, >>> which produced those export files. However, the console update gave me this >>> info: >>> >>> (ENV4)ubuntu@PHMARCHES3PROD:~/Projects/phmapp312test$ python manage.py >>> packages -o export_resources -d v3fullexport.json >>> operation: export_resources >>> package: phmapp312test >>> Writing 5290 HERITAGE_RESOURCE.E18 resources >>> No module named PIL : 5290 >>> Writing 3712 INFORMATION_RESOURCE.E73 resources >>> No module named PIL : 3712 >>> Writing 2 ACTIVITY.E7 resources >>> No module named PIL : 2 >>> Writing 4 HISTORICAL_EVENT.E5 resources >>> No module named PIL : 4 >>> Writing 7 HERITAGE_RESOURCE_GROUP.E27 resources >>> No module named PIL : 7 >>> Writing 8 ACTOR.E39 resources >>> No module named PIL : 8 >>> >>> When I checked the v3fullexport.json file it was almost empty. All it >>> has inside the file is this string: >>> >>> {"resources":[]} >>> >>> The v3fullexport.relations file is full of all the relationships. >>> >>> I have a feeling I might be missing something here. Please let me know >>> what I should do further. Thank you. >>> >>> Regards, >>> >>> Joel >>> >>> >>> On Saturday, April 20, 2019 at 8:59:12 PM UTC+8, Adam Cox wrote: >>>> >>>> Hi Joel, indeed, exporting the v3 resources is a crucial step in the >>>> migration process!! >>>> >>>> I'm unable to look into this deeply right now but I have a feeling that >>>> this means you don't have the latest version of Arches 3, which is 3.1.2. >>>> When I can, I'll look back through the version history and see where that >>>> command was introduced. >>>> >>>> I'm the meantime, you could create a new virtual environment and >>>> explicitly install arches 3.1.2 into that environment with >>>> >>>> pip install arches==3.1.2 >>>> >>>> Then activate that new environment and try exporting again. This would >>>> leave your old env untouched. >>>> >>>> Adam >>>> >>>> On Sat, Apr 20, 2019, 6:23 AM Joel Aldor <[email protected]> wrote: >>>> >>>>> Hi all, >>>>> >>>>> We're supposed to migrate our v3 data into v4 this Easter weekend using >>>>> the instructions from this link >>>>> <https://arches.readthedocs.io/en/stable/exporting-v3-data/>, but we >>>>> ran into a problem. Apparently, our v3 instance doesn't have the >>>>> export_resources option when we execute this command: >>>>> >>>>> (ENV)ubuntu@PHMARCHES3PROD:~/Projects/phm2app$ python manage.py >>>>> packages -o export_resources -d v3fullexport.json >>>>> Usage: manage.py packages [options] >>>>> >>>>> manage.py: error: option -o: invalid choice: 'export_resources' (choose >>>>> from 'setup', 'install', 'setup_db', 'start_elasticsearch', >>>>> 'setup_elasticsearch', 'build_permissions', 'livereload', >>>>> 'load_resources', 'remove_resources', 'load_concept_scheme', >>>>> 'index_database', 'export_resource_graphs') >>>>> >>>>> How can I export the business data from here? >>>>> >>>>> Thank you, >>>>> >>>>> Joel >>>>> >>>>> -- >>>>> -- 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. >>>>> >>>> -- >> -- To post, send email to [email protected] <javascript:>. To >> unsubscribe, send email to [email protected] <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 [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- -- 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.
