Re: [Arches] Upgrading to a specific version of Arches - 4.4.1 (not the latest 4.4.2 version)

2019-10-03 Thread Cyrus Hiatt
Hi Tom -

One of the challenges for upgrading from 4.1.1 will be upgrading your
project(s). This is because at version 4.2 we switched from Bower to Yarn
for js dependencies because bower was getting deprecated. As Adam has
mentioned, each version of Arches has the upgrade process outlined in the
release notes: https://github.com/archesproject/arches/tree/master/releases.
You could go from version to version following the upgrade instructions for
each version. Alternatively, you could try the process below which is a bit
shorter. I test the upgrade from version to version with each release, so
it should go smoothly. I haven't tested the shortcut process below, but I
think it should be fine. In either case, there are quite a few steps going
from 4.1 to 4.4, so I would recommend creating a database backup and web
server snapshot (if possible) before getting started.

*1. upgrade to version 4.3.1:*

pip install arches==4.3.1 --upgrade --no-binary :all:
pip uninstall pycryptodome, rdflib-jsonld
pip install pycryptodome django-oauth-toolkit==1.1.2
PyLD[requests]==1.0.3 pyprind==2.11.2

python manage.py migrate
python manage.py es delete_indexes
python manage.py es setup_indexes
python manage.py es index_database


*2. follow the project upgrade steps in the 4.2.0 release notes starting
with the yarn install:*

https://github.com/archesproject/arches/blob/master/releases/4.2.0.md#installing-yarn

*3. Then follow the project upgrade steps for version 4.3.1:*

https://github.com/archesproject/arches/blob/master/releases/4.3.1.md#upgrading-an-arches-project

*4. Upgrade to version 4.4.1:*

pip install arches==4.4.1 --upgrade --no-binary :all:
python manage.py migrate
python manage.py es delete_indexes
python manage.py es setup_indexes
python manage.py es index_database


*5. Then complete the project upgrades for 4.4.1:*

https://github.com/archesproject/arches/blob/master/releases/4.4.1.md#upgrading-an-arches-project

Hope that helps and that your upgrade goes smoothly. Let me know if you
have any questions.

- Cyrus



On Thu, Oct 3, 2019 at 9:41 AM Adam Cox  wrote:

> Hi Tom, one other thought, sometimes I like to just create a brand new
> virtual environment and install the new version in there, leaving the
> existing on as is. Then you can switch which environment is used by your
> app in your apache config (if that's how you're serving it), etc, and you
> can switch back if something goes wrong with the pip installation process
> (which, frankly, is unlikely).
>
> As for other actions to take, it's possible you will need to run
> migrations in your project. I'd recommend looking back through release
> notes for the incremental versions between 4.1.1 and 4.4.1, which can be
> found on this forum.
>
> Adam
>
> On Thu, Oct 3, 2019 at 11:19 AM Alexei Peters  wrote:
>
>> Hi Tom,
>> The pip command to install a specific version should be this `pip install
>> myPackage=={version num}
>> So for Arches that should be:
>>
>> ‘pip install arches==4.4.1 --upgrade --no-binary :all:’
>>
>> Cheers,
>> Alexei
>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>
>>
>> On Thu, Oct 3, 2019 at 5:36 AM Shewring, Tom <
>> tom.shewr...@historicengland.org.uk> wrote:
>>
>>> Hi,
>>>
>>>
>>>
>>> We have an Arches deployment at 4.1.1, I wish to upgrade this
>>> environment to *4.4.1* (not the latest 4.4.2 release).
>>>
>>>
>>>
>>> 1)  Can you advise on the specific command to do this since ‘pip
>>> install arches --upgrade --no-binary :all:’ will install 4.4.2
>>>
>>> 2)  Are there any other steps that I will need to take when
>>> upgrading from 4.1.1 to 4.4.1
>>>
>>>
>>>
>>> Many thanks
>>>
>>>
>>>
>>> Tom Shewring
>>>
>>> GIS Systems Developer
>>>
>>> IMT Development Centre
>>>
>>> Historic England
>>>
>>>
>>> [image: Historic England Logo] 
>>>
>>> We are the public body that helps people care for, enjoy and celebrate
>>> England's spectacular historic environment, from beaches and battlefields
>>> to parks and pie shops.
>>> Follow us:  Facebook   |
>>> Twitter   |  Instagram
>>>  Sign up to our
>>> newsletter
>>> 
>>>
>>>
>>> This e-mail (and any attachments) is confidential and may contain
>>> personal views which are not the views of Historic England unless
>>> specifically stated. If you have received it in error, please delete it
>>> from your system and notify the sender immediately. Do not use, copy or
>>> disclose the information in any way nor act in reliance on it. Any
>>> information sent to Historic England may become publicly available. We
>>> respect your privacy and the use of your information. Please read our full 
>>> privacy
>>> policy  for
>>> more information.

[Arches] Problem loading overlay maps

2019-10-03 Thread David Osborne
Hi all

We need to load some overlay maps for our project and have so far been 
unsuccessful. I'm following the instructions at 
https://arches.readthedocs.io/en/stable/creating-new-map-layers/#tileserver-mapnik-layers
 to 
try to load a couple of georeferenced TIFF files. The maps load 
successfully in QGIS, so we have confidence that they are correctly 
georeferenced. 

Adapting the XML shown on that page, I have the following for one of the 
maps:


  
raster

  gdal
  /home/ubuntu/Maps/Jersey_25K_BGS_Geology.tif
  0

  
  

  
  

  


which is loaded using the command

python manage.py packages -o add_tileserver_layer -m 
"/home/ubuntu/Maps/Jersey_25K_BGS_Geology.xml" -n "Geology"

The layer name Geology then appears in the list of overlays but nothing 
appears when the layer is enabled.

I have tried adding projection parameters to the opening Map tag



and these are correct, as far as we can tell. If we change the 
background-color parameter to "white" or "black", the layer colour changes 
as expected.

These maps are complete in one file but we do have another map which is 
tiled in separate files: would we need to use a separate tile-server to use 
that?

I expect we've missed something simple but any help or advice would be 
appreciated!

Thanks
David

-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/8edba7c6-4bca-4b83-9abb-3091dce2f8c3%40googlegroups.com.


[Arches] Database Technician job (MarEA project) posted on ArchesProject.org

2019-10-03 Thread Alina Myklebust
Good day all,

Do you know we have a Bids and Jobs Announcements 
page on ArchesProject.org? 
 Earlier this year, we started this page to post Arches-related bids (e.g. 
RFP, RFQ, Tender, etc.) and jobs.

*Recently, we added a job announcement for a Database Technician, 
Archaeology to work as part of the MarEA project 
 at the University of Southampton.  The 
application deadline is Wednesday, October 9, 2019. *

For more info, visit our Bids and Jobs page 
 or go directly to the job 
posting here:

https://jobs.soton.ac.uk/Vacancy.aspx?ref=1178119AR


Cheers,

Alina
The Arches Team 

-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/eca967ec-681e-458f-b734-5e4c3caf7efa%40googlegroups.com.


Re: [Arches] Upgrading to a specific version of Arches - 4.4.1 (not the latest 4.4.2 version)

2019-10-03 Thread Adam Cox
Hi Tom, one other thought, sometimes I like to just create a brand new
virtual environment and install the new version in there, leaving the
existing on as is. Then you can switch which environment is used by your
app in your apache config (if that's how you're serving it), etc, and you
can switch back if something goes wrong with the pip installation process
(which, frankly, is unlikely).

As for other actions to take, it's possible you will need to run migrations
in your project. I'd recommend looking back through release notes for the
incremental versions between 4.1.1 and 4.4.1, which can be found on this
forum.

Adam

On Thu, Oct 3, 2019 at 11:19 AM Alexei Peters  wrote:

> Hi Tom,
> The pip command to install a specific version should be this `pip install
> myPackage=={version num}
> So for Arches that should be:
>
> ‘pip install arches==4.4.1 --upgrade --no-binary :all:’
>
> Cheers,
> Alexei
> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>
>
> On Thu, Oct 3, 2019 at 5:36 AM Shewring, Tom <
> tom.shewr...@historicengland.org.uk> wrote:
>
>> Hi,
>>
>>
>>
>> We have an Arches deployment at 4.1.1, I wish to upgrade this environment
>> to *4.4.1* (not the latest 4.4.2 release).
>>
>>
>>
>> 1)  Can you advise on the specific command to do this since ‘pip
>> install arches --upgrade --no-binary :all:’ will install 4.4.2
>>
>> 2)  Are there any other steps that I will need to take when
>> upgrading from 4.1.1 to 4.4.1
>>
>>
>>
>> Many thanks
>>
>>
>>
>> Tom Shewring
>>
>> GIS Systems Developer
>>
>> IMT Development Centre
>>
>> Historic England
>>
>>
>> [image: Historic England Logo] 
>>
>> We are the public body that helps people care for, enjoy and celebrate
>> England's spectacular historic environment, from beaches and battlefields
>> to parks and pie shops.
>> Follow us:  Facebook   |
>> Twitter   |  Instagram
>>  Sign up to our
>> newsletter
>> 
>>
>>
>> This e-mail (and any attachments) is confidential and may contain
>> personal views which are not the views of Historic England unless
>> specifically stated. If you have received it in error, please delete it
>> from your system and notify the sender immediately. Do not use, copy or
>> disclose the information in any way nor act in reliance on it. Any
>> information sent to Historic England may become publicly available. We
>> respect your privacy and the use of your information. Please read our full 
>> privacy
>> policy  for
>> more information.
>>
>>
>> --
>> -- 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/archesproject/4236dfe5e1b54308b93b8ba2d6e7c9cc%40SVMEX02.english-heritage.org.uk
>> 
>> .
>>
> --
> -- 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/archesproject/CA%2BZLqy8oUEOsJoaPMWpip-ac3woMbTMCFxzRhg-PAdE6qoCA-g%40mail.gmail.com
> 
> .
>

-- 
-- 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.
To view this discussion on the web visit 

Re: [Arches] Upgrading to a specific version of Arches - 4.4.1 (not the latest 4.4.2 version)

2019-10-03 Thread Alexei Peters
Hi Tom,
The pip command to install a specific version should be this `pip install
myPackage=={version num}
So for Arches that should be:

‘pip install arches==4.4.1 --upgrade --no-binary :all:’

Cheers,
Alexei
Director of Web Development - Farallon Geographics, Inc. - 971.227.3173


On Thu, Oct 3, 2019 at 5:36 AM Shewring, Tom <
tom.shewr...@historicengland.org.uk> wrote:

> Hi,
>
>
>
> We have an Arches deployment at 4.1.1, I wish to upgrade this environment
> to *4.4.1* (not the latest 4.4.2 release).
>
>
>
> 1)  Can you advise on the specific command to do this since ‘pip
> install arches --upgrade --no-binary :all:’ will install 4.4.2
>
> 2)  Are there any other steps that I will need to take when upgrading
> from 4.1.1 to 4.4.1
>
>
>
> Many thanks
>
>
>
> Tom Shewring
>
> GIS Systems Developer
>
> IMT Development Centre
>
> Historic England
>
>
> [image: Historic England Logo] 
>
> We are the public body that helps people care for, enjoy and celebrate
> England's spectacular historic environment, from beaches and battlefields
> to parks and pie shops.
> Follow us:  Facebook   |
> Twitter   |  Instagram
>  Sign up to our newsletter
> 
>
>
> This e-mail (and any attachments) is confidential and may contain personal
> views which are not the views of Historic England unless specifically
> stated. If you have received it in error, please delete it from your system
> and notify the sender immediately. Do not use, copy or disclose the
> information in any way nor act in reliance on it. Any information sent to
> Historic England may become publicly available. We respect your privacy and
> the use of your information. Please read our full privacy policy
>  for more
> information.
>
>
> --
> -- 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/archesproject/4236dfe5e1b54308b93b8ba2d6e7c9cc%40SVMEX02.english-heritage.org.uk
> 
> .
>

-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/CA%2BZLqy8oUEOsJoaPMWpip-ac3woMbTMCFxzRhg-PAdE6qoCA-g%40mail.gmail.com.


[Arches] Upgrading to a specific version of Arches - 4.4.1 (not the latest 4.4.2 version)

2019-10-03 Thread Shewring, Tom
Hi,

We have an Arches deployment at 4.1.1, I wish to upgrade this environment to 
4.4.1 (not the latest 4.4.2 release).


1)  Can you advise on the specific command to do this since ‘pip install 
arches --upgrade --no-binary :all:’ will install 4.4.2

2)  Are there any other steps that I will need to take when upgrading from 
4.1.1 to 4.4.1

Many thanks

Tom Shewring
GIS Systems Developer
IMT Development Centre
Historic England

[Historic England Logo]


We are the public body that helps people care for, enjoy and celebrate 
England's spectacular historic environment, from beaches and battlefields to 
parks and pie shops.
Follow us:  Facebook  |  
Twitter  |  
Instagram Sign up to our 
newsletter


This e-mail (and any attachments) is confidential and may contain personal 
views which are not the views of Historic England unless specifically stated. 
If you have received it in error, please delete it from your system and notify 
the sender immediately. Do not use, copy or disclose the information in any way 
nor act in reliance on it. Any information sent to Historic England may become 
publicly available. We respect your privacy and the use of your information. 
Please read our full privacy 
policy for more 
information.

-- 
-- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/4236dfe5e1b54308b93b8ba2d6e7c9cc%40SVMEX02.english-heritage.org.uk.