Problems loading HIP package in version 5.0 (Windows 10 installation)

85 views
Skip to first unread message

Bryan Alvey

unread,
Feb 27, 2020, 1:47:29 PM2/27/20
to Arches Project
Hi Everyone,

I've installed version 5.0 on my laptop  (Windows 10). 

Under 'Next Steps', I'm trying to load the HIP package specified in:

python manage.py packages -o load_package -s https://github.com/archesproject/arches4-example-pkg/archive/master.zip -db true

I note that in the address argument there is 'arches4-example'  and when I run the command I get:

SyntaxError: Missing parentheses in call to 'print'. Did you mean print("no match for this preflabel:",preflabel)?

- which I am informed may refer to Python 2.7 syntax.

So I guess what I'm asking is: Am I looking in the right place? Is there a HIP package for version 5?

Can anybody help?

Best wishes,



Bryan Alvey


Cyrus Hiatt

unread,
Feb 28, 2020, 1:18:17 PM2/28/20
to Bryan Alvey, Arches Project
Hi Bryan - 

Unfortunately that package has not been updated for v5, but it still may work with some small changes. I would download the entire package locally from github, unzip it and remove the contents of the functions, widgets, and datatypes folders within the extensions directory. Then try to reload package with the `-s` option of the load_package command pointed to your local version of the package.

Hope that helps,

Cyrus


 

--
-- To post, send email to arches...@googlegroups.com. To unsubscribe, send email to archesprojec...@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 archesprojec...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/archesproject/f3fa2144-c4a1-4739-bfde-70290433493f%40googlegroups.com.

Mahmoud Abdelrazek

unread,
Mar 12, 2020, 9:12:41 AM3/12/20
to Arches Project
Hi Cyrus, 

Thank you so much for your help. I am working with Bryan on the same project and I have a similar installation to his. I have tried removing the contents of the functions, widgets, and datatypes folders and then loading the package but I got this database error 

DETAIL:  Key (resourceclassfrom)=(99417384-b8fa-11e6-84a5-026d961c88e6) is not present in table "nodes".


I am not sure how to resolve it. It would be great if you could help on this. 

Thank you again,
Mahmoud 

On Friday, February 28, 2020 at 8:18:17 PM UTC+2, Cyrus Hiatt wrote:
Hi Bryan - 

Unfortunately that package has not been updated for v5, but it still may work with some small changes. I would download the entire package locally from github, unzip it and remove the contents of the functions, widgets, and datatypes folders within the extensions directory. Then try to reload package with the `-s` option of the load_package command pointed to your local version of the package.

Hope that helps,

Cyrus


 

On Thu, Feb 27, 2020 at 10:47 AM Bryan Alvey <bap...@gmail.com> wrote:
Hi Everyone,

I've installed version 5.0 on my laptop  (Windows 10). 

Under 'Next Steps', I'm trying to load the HIP package specified in:

python manage.py packages -o load_package -s https://github.com/archesproject/arches4-example-pkg/archive/master.zip -db true

I note that in the address argument there is 'arches4-example'  and when I run the command I get:

SyntaxError: Missing parentheses in call to 'print'. Did you mean print("no match for this preflabel:",preflabel)?

- which I am informed may refer to Python 2.7 syntax.

So I guess what I'm asking is: Am I looking in the right place? Is there a HIP package for version 5?

Can anybody help?

Best wishes,



Bryan Alvey


--
-- To post, send email to arches...@googlegroups.com. To unsubscribe, send email to arches...@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 arches...@googlegroups.com.

Cyrus Hiatt

unread,
Mar 23, 2020, 4:50:11 PM3/23/20
to Arches Project
Hi Mahmoud - 

Sorry for the late reply. If you still want to try loading a demo package, try this one: https://github.com/archesproject/arches-example-pkg

So the load command would be: 

python manage.py packages -o load_package -s https://github.com/archesproject/arches-example-pkg/archive/master.zip -db true

Bear in mind that if you run that command from your project it will recreate your database, so you'll lose any models that you may have created in the designer.

Hope that helps,

Cyrus 

Mahmoud Abdelrazek

unread,
Mar 25, 2020, 7:11:46 PM3/25/20
to Arches Project
Hi Cyrus, 

Thank you so much for your help. Yes, it did work. I tried on an empty project and loaded the models. I have noticed that the project only accepts a certain area around Lincoln UK even if I set the project extent to wider than this area. Does the package have an impact on the project extent? or zoom limitations? 
 
Thank you again, 
Mahmoud 

Cyrus Hiatt

unread,
Mar 26, 2020, 12:15:46 PM3/26/20
to Mahmoud Abdelrazek, Arches Project
Hi Mahmoud - 

The package does have an extent defined in the settings page. That extent defines the extent in search and is the default extent for any Arches Collector projects you create. However, when you are editing resources you may need a more specific extent for a particular resource type and node. Arches allows you to define that extent in the graph designer. In the package you have loaded each geojson-feature-collection node is assigned the map widget. You can see this if you go to the graph designer, select a node with the geojson-feature-collection datatype and look at the cards tab (see screenshot). You should find there are configs for the map widget on the right and you can change them to something more appropriate for your use case. 

image.png

I hope that explains the issue you are seeing.

Cheers,

Cyrus

-- To post, send email to arches...@googlegroups.com. To unsubscribe, send email to archesprojec...@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 archesprojec...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/archesproject/c06378d1-2940-467c-8942-ace2d05d6a80%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages