Re: [Arches] Re: Arches Community Forum launch scheduled for June 1st

2021-05-17 Thread Alexei Peters
Thanks Ed for welcoming everyone over the past 8 years and for creating
such a great way for people to introduce themselves and "break the ice"
with their singing in posts!
Cheers,
Alexei

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


On Mon, May 17, 2021 at 3:48 AM Edmund Lee <
edmund@historicengland.org.uk> wrote:

> Thanks for the shout-out Lindsay!  It's been enormous fun to read all the
> 'Signing posts' here since August 2013 (over 5,400 views :-). Thank you all
> for sharing your 'views out the window' in the last 8 years.
>
> I'm looking forward to joining the new Discourse community for Arches.
> It's always a bit of a bother having to digitally 'move house' as it were,
> but  the new Discourse community has some great additional features to help
> everyone to share their expertise and to learn from others.
>
> Hope I'll be seeing you all there.
>
> Ed
>
> On Thursday, May 13, 2021 at 10:29:27 PM UTC+1 Lindsey Gant wrote:
>
>> Hi everyone!
>>
>> We were so excited to see so many of you on today's community call. It's
>> also great to see that many of you are signing up to our new forum, which
>> is found here: https://community.archesproject.org
>>
>> If you were unable to attend today's meeting, we will have a recording
>> available by early next week.
>>
>> Please note that we will officially launch this new forum on June 1st,
>> 2021. At that point, we will freeze this Google Group and all new posts
>> should be directed to the Arches Community Forum
>>  hosted by Discourse. If you need
>> help registering, please review our Getting Started page
>> 
>> here.
>>
>> We would love for you all to head over to our new forum and introduce
>> yourself to the rest of us in the Arches Community. You can find the
>> introductions thread here
>> .
>>
>> We thought it would also be fun for everyone to share some of the
>> heritage sites or places you would like to visit once we are out of lock
>> down. You can join in on that conversation here
>> 
>> .
>> Let's give a shout-out to Ed Lee who kick-started the amazing Signing In
>> thread
>> 
>> we've had here on the Google Groups forum since 2013! Ed, we are happy you
>> continue to be a member of the Arches Community and we welcome you to
>> sign-in on our newest introductions thread
>> , as well!
>
> --
> -- 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/8b7ac54b-0adf-43d9-a601-6b2ddd4a762an%40googlegroups.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 
https://groups.google.com/d/msgid/archesproject/CA%2BZLqy-XAtnkZeVxX8j7pNy_QRUVgX73H-O6wDObE1Ogx%3DOH1g%40mail.gmail.com.


Re: [Arches] Re: Arches installation with database on a separate server

2021-05-12 Thread Alexei Peters
Hi Markus,
Have you set these settings in settings.py?
PG_SUPERUSER
PG_SUPERUSER_PW

These should be set to a user who can create a database in Postgres.
If you set those that should get you past the error above.
Cheers,
Alexei



On Thursday, April 22, 2021 at 3:04:41 PM UTC-7 Markus S. wrote:

> Hi all,
>
> Status update: no luck yet.
>
> I am currently trying to use *Azure Database for PostgreSQL server *with 
> a Private Endpoint that links the server to the same VNet where the app 
> server resides. SSL has been disabled on the db server. I have allowed all 
> IP address to contact the db server in the testing phase.
>
> On the app server, I am able connect to the db server using pgAdmin. I 
> also tested the db connection successfully using a Python script that 
> utilizes psycopg2 and sslmode=require (even though SSL is disabled). (See 
> at 
> https://docs.microsoft.com/en-us/azure/postgresql/flexible-server/connect-python
> .)
>
> Now, the db server only allows Postgre version up to 11. Arches needs 
> version 12. There is a "flexible" version of the server that goes to 12 but 
> it's a preview/beta version and I ran into some other issues with it, so I 
> discarded that route. Perhaps the version discrepancy is my issue at the 
> moment?
>
> When running *setup_db*, I get this error . So, I've actually only made 
> backward progress because now I only get to line 30, haha! I think I'll 
> give this a little break and try again another time, starting from scratch. 
> Thank you for all your suggestions so far.
>
> (ENV) C:\Projects\arches_parks>python manage.py setup_db
> Are you sure you want to destroy and rebuild your database? [y/N] y
> Traceback (most recent call last):
>   File "manage.py", line 30, in 
> execute_from_command_line(sys.argv)
>   File 
> "C:\Projects\ENV\lib\site-packages\django\core\management\__init__.py", 
> line 381, in execute_from_command_line
> utility.execute()
>   File 
> "C:\Projects\ENV\lib\site-packages\django\core\management\__init__.py", 
> line 375, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File "C:\Projects\ENV\lib\site-packages\django\core\management\base.py", 
> line 323, in run_from_argv
> self.execute(*args, **cmd_options)
>   File "C:\Projects\ENV\lib\site-packages\django\core\management\base.py", 
> line 364, in execute
> output = self.handle(*args, **options)
>   File 
> "C:\Projects\ENV\lib\site-packages\arches\management\commands\setup_db.py", 
> line 52, in handle
> self.setup_db()
>   File 
> "C:\Projects\ENV\lib\site-packages\arches\management\commands\setup_db.py", 
> line 180, in setup_db
> conninfo = self.get_connection()
>   File 
> "C:\Projects\ENV\lib\site-packages\arches\management\commands\setup_db.py", 
> line 103, in get_connection
> cancreate = cursor.fetchone()[0]
> TypeError: 'NoneType' object is not subscriptable
>
> On Tuesday, April 20, 2021 at 12:41:48 PM UTC-7 mr.ad...@gmail.com wrote:
>
>> Also, it looks like the failure comes on this specific line 
>> https://github.com/archesproject/arches/blob/master/arches/management/commands/setup_db.py#L137.
>>  
>> As I recall, that line cleans up existing connections, but it is not 
>> technically necessary for the process if you don't have other connections 
>> to the database. So you could also try simply commenting out that line 
>> before running the command and seeing what happens.
>>
>> Adam
>>
>> On Tue, Apr 20, 2021 at 3:33 AM andrew...@historicengland.org.uk <
>> andrew...@historicengland.org.uk> wrote:
>>
>>> Markus, we are running a duel Azure server setup on Windows with no 
>>> issues - but only at 5.0. 
>>>
>>> As we are running it in a private network we've not needed to enable SSL 
>>> but for a side project I have connected it up to Azure Database for 
>>> Postgresql Server instance and I have to add  the sslmode option to the DB 
>>> connection string.
>>>
>>> DATABASES = {
>>> "default": {
>>> "ENGINE": "django.contrib.gis.db.backends.postgis",
>>> "NAME": get_env_variable("PGDBNAME"),
>>> "USER": get_env_variable("PGUSERNAME"),
>>> "PASSWORD": get_env_variable("PGPASSWORD"),
>>> "HOST": get_env_variable("PGHOST"),
>>> "PORT": get_env_variable("PGPORT"),
>>> "POSTGIS_TEMPLATE": "template_postgis",
>>> "OPTIONS": {
>>> "sslmode": get_env_variable("PGSSLMODE") #needs to use '
>>> *require*' if connecting to Azure Database for Postgresql
>>> },
>>> }
>>> }
>>>
>>> If you can, perhaps test with SSL disabled so you can isolate the issue 
>>> further.
>>>
>>> On Tuesday, April 20, 2021 at 12:56:09 AM UTC+1 Markus S. wrote:
>>>
 Hi,

 Thanks for all the tips. After a fresh install, when I run *setup_db*, 
 I still get the following error, pasted below.

 On the app server, I can connect to the database server without issue 
 using pgAdmin. I have created the blank db for Arches there, as per Ryan's 

Re: [Arches] Re: register and present resource information in multiple languages

2021-03-18 Thread Alexei Peters
Hi Anjo,
As for your question about contributing to the project please see the
documentation found here:
https://arches.readthedocs.io/en/stable/overview/#contributing-to-arches
Hopefully that points you in the right direction.
Cheers,
Alexei


On Wed, Mar 17, 2021 at 10:38 AM anjo.we...@gmail.com <
anjo.weichbr...@gmail.com> wrote:

> Hi Dennis,
>
> Many thanks for your reply and many thanks for all the great work.
> Apart from representing the search results names, multi-language seems to
> work very nicely with everything that can fit into thesauri of the
> Reference Data Manager. But of course, that is not applicable for all
> attributes.
>
> In the regions where I am active, multi-language support is a requirement,
> and many projects cannot be implemented without that feature. I understand
> funding such requests is important. Are there procedures for voting on
> feature requests, getting feedback on the financial needs, and
> crowdsourcing funding and other means of contributions?
>
> With regards to multi-language support being implemented in the future:
> What are the recommendations for building resource models to increase the
> chance of feature-compatibility.
>
> Many thanks,
> Anjo
>
> PS: Although I am not a developer, I would like to contribute to the
> project regularly in the future. I would appreciate any advice from you and
> the community in that direction.
>
> On Tuesday, March 16, 2021 at 11:03:58 PM UTC+1 Dennis Wuthrich wrote:
>
>> Hi Anjo,
>>
>> With 5.1, search does not automatically use the "location" language to
>> return results.   We are currently thinking about extending multi-language
>> support to search (and to string nodes) to better match your expected
>> result.  There is a growing desire among Arches users to fully support
>> multiple languages, and if this effort is funded we hope that users like
>> you will share their use cases for working with multi-lingual data.
>>
>> Cheers,
>> Dennis
>>
>> On Monday, March 15, 2021 at 1:50:11 AM UTC-7 anjo.we...@gmail.com wrote:
>>
>>>
>>> Hi,
>>>
>>> I would like to register and present resource information in multiple
>>> languages using CIDOC-CRM and the improved support for localization
>>> starting with Arches 5.1
>>>
>>> I built the model with the following structure:
>>>
>>> Resource Model (E18 Physical thing)
>>> |__ Resource Name (E41 Appellation)
>>>   |__ Language (E33 Linguistic Object)
>>>  |__Language Type (E56 Language)
>>>
>>> "Resource Name" has the data type "string". For the "Language Type" I
>>> assign the data type "concept" and select the "language" collection from
>>> the *"*Reference Data Manager".
>>>
>>> Procedure:
>>> Resource Model is added with names in corresponding languages.
>>>
>>> Expected output:
>>> Searching for resource name defined in language A while having selected
>>> the locale A gives back the name in language A.
>>>
>>> Real output:
>>> Searching for resource name defined in language A while having selected
>>> the locale A gives back the name in the language it was first created in.
>>>
>>> Does my approach make sense? What am I missing? Is there a better
>>> solution to achieve the described goal?
>>>
>>> Many thanks for your help,
>>> Anjo
>>>
>>>
>>>
>>> --
> -- 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/e3130664-9b0b-4937-8167-dbbd913b7e3an%40googlegroups.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 
https://groups.google.com/d/msgid/archesproject/CA%2BZLqy94rQ4dGuaWkU1nJ1%2B27csRYMvirCUzehMH1RMUy1rCSw%40mail.gmail.com.


Re: [Arches] Re: Error when trying to start celery

2021-02-12 Thread Alexei Peters
Hi Angela,
Sorry, I see now what you're talking about.  I wasn't looking at the
management command.  So, having that set to use the ELASTICSEARCH_PREFIX is
probably a mistake.
Instead of running the command you can run what the command runs.

"celery -A {your project name} worker -l info"

That should work.
Cheers,
-Alexei

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


On Thu, Feb 11, 2021 at 5:34 PM Angela Labrador  wrote:

> Hi Alexei,
>
> Thanks but I copied the celery.py file from the Arches template folder so
> it already had those lines in it. My file now looks like yours from the
> earlier reply.
>
> The issue is that the actual management command that starts celery never
> uses that app variable. Instead it uses the elastic search prefix — see
> lines 41 and 43. Because my elastic search prefix is different from my app
> name, I get an error.  Can you please try retesting by setting your elastic
> search prefix setting to something that doesn’t equal your project name to
> see if you hit the same error as me?
>
> Thanks,
> Angela
>
> On Thu, Feb 11, 2021 at 8:04 PM Alexei Peters  wrote:
>
>> Hi Angela,
>> After you copy that file over, you'll need to edit a couple of lines in
>> that file:
>>
>> THESE LINES:
>> os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
>> app = Celery("arches")
>>
>> SHOULD CHANGE TO THIS:
>> os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{my project
>> name}.settings")
>> app = Celery("{my project name}")
>>
>> Hope that helps!
>> -Alexei
>>
>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>
>>
>> On Wed, Feb 10, 2021 at 12:22 PM Angela Labrador 
>> wrote:
>>
>>> Hi Alexei,
>>>
>>> I'm back! I have copied the new celery.py file over into my project
>>> directory as suggested above, however, I still get the same error.
>>> Error:
>>> Unable to load celery application.
>>> The module XXX was not found.
>>>
>>> where XXX = {settings.ELASTICSEARCH_PREFIX}
>>>
>>> The only celery management command
>>> <https://github.com/archesproject/arches/blob/stable/5.1.x/arches/management/commands/celery.py>
>>> that I have is in the arches/arches/management/commands/ directory, and I
>>> see that is using the elasticsearch_prefix variable on lines 41 and 43 and
>>> not the project name. When I edit those lines manually and change them to
>>> use my project's name, I can run the command fine.
>>>
>>> Am I supposed to have a separate celery management command within my
>>> project folder or is this a bug with the arches management command?
>>>
>>> Thanks,
>>> Angela
>>>
>>>
>>> On Friday, January 29, 2021 at 5:44:25 PM UTC-5 Alexei Peters wrote:
>>>
>>>> Hi Angela,
>>>> It looks like you identified the issue.  Older projects weren't created
>>>> with that celery file and that explains the problem you're seeing.
>>>> Copying that file over to your project should solve the problem.
>>>> This was most likely an oversight in our upgrade announcement (although
>>>> I can't be sure).  I'm actually not sure how/if this should be documented.
>>>> Suggestions are welcome there!  :)
>>>> Glad we solved this!
>>>> Cheers,
>>>> Alexei
>>>>
>>>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>>> <(971)%20227-3173>
>>>>
>>>> On Fri, Jan 29, 2021 at 12:17 PM Angela Labrador 
>>>> wrote:
>>>>
>>>>> Hi Alexei,
>>>>>
>>>>> Yep, I'm running the command local to where the manage.py file is
>>>>> located (running the command just like any other python manage.py command
>>>>> with no dir in front of the command).
>>>>>
>>>>> But -- I think you just identified the problem! I do not have a
>>>>> celery.py file within my-project folder besides the celery.py files in
>>>>> media/packages/arches. This is a project that has been migrated from 4.0
>>>>> through the major versions over some time. So, maybe it never created the
>>>>> celery.py file during one of those migrations?
>>>>>
>>>>> I jumped on another virtual machine and installed a brand new arches
>>>>> 5.1 project, and it did create a celery.py file with my project 

Re: [Arches] Re: Error when trying to start celery

2021-02-11 Thread Alexei Peters
Hi Angela,
After you copy that file over, you'll need to edit a couple of lines in
that file:

THESE LINES:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
app = Celery("arches")

SHOULD CHANGE TO THIS:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{my project
name}.settings")
app = Celery("{my project name}")

Hope that helps!
-Alexei

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


On Wed, Feb 10, 2021 at 12:22 PM Angela Labrador  wrote:

> Hi Alexei,
>
> I'm back! I have copied the new celery.py file over into my project
> directory as suggested above, however, I still get the same error.
> Error:
> Unable to load celery application.
> The module XXX was not found.
>
> where XXX = {settings.ELASTICSEARCH_PREFIX}
>
> The only celery management command
> <https://github.com/archesproject/arches/blob/stable/5.1.x/arches/management/commands/celery.py>
> that I have is in the arches/arches/management/commands/ directory, and I
> see that is using the elasticsearch_prefix variable on lines 41 and 43 and
> not the project name. When I edit those lines manually and change them to
> use my project's name, I can run the command fine.
>
> Am I supposed to have a separate celery management command within my
> project folder or is this a bug with the arches management command?
>
> Thanks,
> Angela
>
>
> On Friday, January 29, 2021 at 5:44:25 PM UTC-5 Alexei Peters wrote:
>
>> Hi Angela,
>> It looks like you identified the issue.  Older projects weren't created
>> with that celery file and that explains the problem you're seeing.
>> Copying that file over to your project should solve the problem.
>> This was most likely an oversight in our upgrade announcement (although I
>> can't be sure).  I'm actually not sure how/if this should be documented.
>> Suggestions are welcome there!  :)
>> Glad we solved this!
>> Cheers,
>> Alexei
>>
>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>> <(971)%20227-3173>
>>
>> On Fri, Jan 29, 2021 at 12:17 PM Angela Labrador 
>> wrote:
>>
>>> Hi Alexei,
>>>
>>> Yep, I'm running the command local to where the manage.py file is
>>> located (running the command just like any other python manage.py command
>>> with no dir in front of the command).
>>>
>>> But -- I think you just identified the problem! I do not have a
>>> celery.py file within my-project folder besides the celery.py files in
>>> media/packages/arches. This is a project that has been migrated from 4.0
>>> through the major versions over some time. So, maybe it never created the
>>> celery.py file during one of those migrations?
>>>
>>> I jumped on another virtual machine and installed a brand new arches 5.1
>>> project, and it did create a celery.py file with my project name as you
>>> pasted.
>>>
>>> Just for reference, on my migrated project, running
>>> find -iname celery.py
>>>
>>> results in:
>>>
>>> ./[my-project]/[my-project]/media/packages/arches/arches/management/commands/celery.py
>>> ./[my-project]/[my-project]/media/packages/arches/arches/celery.py
>>>
>>> ./[my-project]/static/packages/arches/tests/fixtures/testing_prj/testing_prj/celery.py
>>>
>>> ./[my-project]/static/packages/arches/arches/management/commands/celery.py
>>> ./[my-project]/static/packages/arches/arches/celery.py
>>> ./env/lib/python3.7/site-packages/celery/bin/celery.py
>>> ./arches/tests/fixtures/testing_prj/testing_prj/celery.py
>>> ./arches/arches/management/commands/celery.py
>>> ./arches/arches/celery.py
>>>
>>> So, should I just copy the contents of the celery.py file from the fresh
>>> project to my migrated project? And do you think this is an anomaly or a
>>> "feature" of migrating from much earlier versions? If the latter, should we
>>> add something to the docs to cover this?
>>>
>>> Thank you for sticking with this,
>>> Angela
>>>
>>>
>>>
>>> On Friday, January 29, 2021 at 2:39:06 PM UTC-5 Alexei Peters wrote:
>>>
>>>> Hi Angela,
>>>> Just to be clear the command should be run from the directory where the
>>>> "manage.py" file is located.
>>>> EG: you CAN'T do this --> python somedir/manage.py celery start
>>>>
>>>> Also, does your celery file look something like this?
>>>>
>>>> from __future__ import abs

Re: [Arches] Re: Error when trying to start celery

2021-01-29 Thread Alexei Peters
Hi Angela,
It looks like you identified the issue.  Older projects weren't created
with that celery file and that explains the problem you're seeing.
Copying that file over to your project should solve the problem.
This was most likely an oversight in our upgrade announcement (although I
can't be sure).  I'm actually not sure how/if this should be documented.
Suggestions are welcome there!  :)
Glad we solved this!
Cheers,
Alexei

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


On Fri, Jan 29, 2021 at 12:17 PM Angela Labrador  wrote:

> Hi Alexei,
>
> Yep, I'm running the command local to where the manage.py file is located
> (running the command just like any other python manage.py command with no
> dir in front of the command).
>
> But -- I think you just identified the problem! I do not have a celery.py
> file within my-project folder besides the celery.py files in
> media/packages/arches. This is a project that has been migrated from 4.0
> through the major versions over some time. So, maybe it never created the
> celery.py file during one of those migrations?
>
> I jumped on another virtual machine and installed a brand new arches 5.1
> project, and it did create a celery.py file with my project name as you
> pasted.
>
> Just for reference, on my migrated project, running
> find -iname celery.py
>
> results in:
>
> ./[my-project]/[my-project]/media/packages/arches/arches/management/commands/celery.py
> ./[my-project]/[my-project]/media/packages/arches/arches/celery.py
>
> ./[my-project]/static/packages/arches/tests/fixtures/testing_prj/testing_prj/celery.py
> ./[my-project]/static/packages/arches/arches/management/commands/celery.py
> ./[my-project]/static/packages/arches/arches/celery.py
> ./env/lib/python3.7/site-packages/celery/bin/celery.py
> ./arches/tests/fixtures/testing_prj/testing_prj/celery.py
> ./arches/arches/management/commands/celery.py
> ./arches/arches/celery.py
>
> So, should I just copy the contents of the celery.py file from the fresh
> project to my migrated project? And do you think this is an anomaly or a
> "feature" of migrating from much earlier versions? If the latter, should we
> add something to the docs to cover this?
>
> Thank you for sticking with this,
> Angela
>
>
>
> On Friday, January 29, 2021 at 2:39:06 PM UTC-5 Alexei Peters wrote:
>
>> Hi Angela,
>> Just to be clear the command should be run from the directory where the
>> "manage.py" file is located.
>> EG: you CAN'T do this --> python somedir/manage.py celery start
>>
>> Also, does your celery file look something like this?
>>
>> from __future__ import absolute_import, unicode_literals
>> import os
>> from celery import Celery
>>
>> os.environ.setdefault('DJANGO_SETTINGS_MODULE', '{project_name}.settings'
>> )
>> app = Celery('{project_name}')
>> app.config_from_object('django.conf:settings', namespace='CELERY')
>> app.autodiscover_tasks()
>>
>>
>> where {project_name} is the name of the directory where your project
>> exists
>>
>> Cheers,
>> Alexei
>>
>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>> <(971)%20227-3173>
>> On Wed, Jan 27, 2021 at 7:31 AM Angela Labrador  wrote:
>>
>>> Hi Alexei,
>>>
>>> Correct. I am running python manage.py celery start from within
>>> [my_project] folder, as per docs
>>> <https://arches.readthedocs.io/en/stable/task-management/?highlight=celery#running-celery>,
>>> which results in the
>>> Error:
>>> Unable to load celery application.
>>> The module [ my settings.ELASTICSEARCH_PREFIX ] was not found.
>>>
>>> My project folder structure is standard -- no renaming of anything.
>>>
>>> Thanks,
>>> Angela
>>> On Tuesday, January 26, 2021 at 3:44:15 PM UTC-5 Alexei Peters wrote:
>>>
>>>> Hi Angela,
>>>> I assume that you're running the "python manage.py celery start"
>>>> command from your project and not from the root of the Arches code base
>>>> correct?
>>>> The command also assumes that you haven't rename your folders in your
>>>> project directory.
>>>> -Alexei
>>>>
>>>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>>> <(971)%20227-3173>
>>>>
>>>>
>>>> On Mon, Jan 25, 2021 at 11:35 AM Angela Labrador 
>>>> wrote:
>>>>
>>>>> Hi Lindsay,
>>>>>
>>>>> Thanks for checking in -- no, I have

Re: [Arches] Re: Error when trying to start celery

2021-01-29 Thread Alexei Peters
Hi Angela,
Just to be clear the command should be run from the directory where the
"manage.py" file is located.
EG: you CAN'T do this --> python somedir/manage.py celery start

Also, does your celery file look something like this?

from __future__ import absolute_import, unicode_literals
import os
from celery import Celery

os.environ.setdefault('DJANGO_SETTINGS_MODULE', '{project_name}.settings')
app = Celery('{project_name}')
app.config_from_object('django.conf:settings', namespace='CELERY')
app.autodiscover_tasks()


where {project_name} is the name of the directory where your project exists

Cheers,
Alexei

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


On Wed, Jan 27, 2021 at 7:31 AM Angela Labrador  wrote:

> Hi Alexei,
>
> Correct. I am running python manage.py celery start from within
> [my_project] folder, as per docs
> <https://arches.readthedocs.io/en/stable/task-management/?highlight=celery#running-celery>,
> which results in the
> Error:
> Unable to load celery application.
> The module [ my settings.ELASTICSEARCH_PREFIX ] was not found.
>
> My project folder structure is standard -- no renaming of anything.
>
> Thanks,
> Angela
> On Tuesday, January 26, 2021 at 3:44:15 PM UTC-5 Alexei Peters wrote:
>
>> Hi Angela,
>> I assume that you're running the "python manage.py celery start"
>> command from your project and not from the root of the Arches code base
>> correct?
>> The command also assumes that you haven't rename your folders in your
>> project directory.
>> -Alexei
>>
>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>> <(971)%20227-3173>
>>
>>
>> On Mon, Jan 25, 2021 at 11:35 AM Angela Labrador 
>> wrote:
>>
>>> Hi Lindsay,
>>>
>>> Thanks for checking in -- no, I haven't really solved it. I've got a
>>> workaround, but would appreciate any ideas or explanations so I can
>>> understand how celery is supposed to be configured (or so that we can
>>> update the docs if they need to be edited).
>>>
>>> Angela
>>>
>>>
>>> On Tuesday, January 19, 2021 at 7:48:47 PM UTC-5 Lindsey Gant wrote:
>>>
>>>> Hi Angela,
>>>>
>>>> Were you able to find a solution to your celery error? If not, let me
>>>> see if someone in the group can follow up.
>>>>
>>>> Thanks,
>>>>
>>>> Lindsey
>>>> GCI Arches Project Team
>>>>
>>>> On Thursday, January 14, 2021 at 2:30:56 PM UTC-8 ala...@gmail.com
>>>> wrote:
>>>>
>>>>> Hello all,
>>>>>
>>>>> I'm testing an upgrade to Arches 5.1 and have hit a stumbling block
>>>>> with trying to get celery running. I've followed the directions on
>>>>> the doc
>>>>> <https://arches.readthedocs.io/en/stable/task-management/?highlight=celery#running-celery>,
>>>>> and have RabbitMQ installed and my settings.py file updated. I did not
>>>>> create a tasks.py file within my project folder because the docs imply 
>>>>> this
>>>>> is only needed if I need to add additional tasks for my project (I just
>>>>> need the default Arches tasks).
>>>>>
>>>>> When I run python manage.py celery start from within my virtualenv, I
>>>>> get
>>>>>
>>>>> Error:
>>>>> Unable to load celery application.
>>>>> The module XXX was not found.
>>>>>
>>>>> where XXX = my settings.ELASTICSEARCH_PREFIX
>>>>>
>>>>> However, when I edit the celery.py management command to use
>>>>> cmd = f"celery -A *arches* worker -B -l info"
>>>>> instead of settings.ELASTICSEARCH_PREFIX, celery starts up and
>>>>> connects to rabbitmq.
>>>>>
>>>>> I'm wondering why that management command is using the ES prefix and
>>>>> what I could be missing in my own project config that is causing this.
>>>>>
>>>>> Thanks,
>>>>> Angela
>>>>>
>>>> --
>>> -- 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 u

Re: [Arches] Re: Error when trying to start celery

2021-01-26 Thread Alexei Peters
Hi Angela,
I assume that you're running the "python manage.py celery start"
command from your project and not from the root of the Arches code base
correct?
The command also assumes that you haven't rename your folders in your
project directory.
-Alexei

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


On Mon, Jan 25, 2021 at 11:35 AM Angela Labrador  wrote:

> Hi Lindsay,
>
> Thanks for checking in -- no, I haven't really solved it. I've got a
> workaround, but would appreciate any ideas or explanations so I can
> understand how celery is supposed to be configured (or so that we can
> update the docs if they need to be edited).
>
> Angela
>
>
> On Tuesday, January 19, 2021 at 7:48:47 PM UTC-5 Lindsey Gant wrote:
>
>> Hi Angela,
>>
>> Were you able to find a solution to your celery error? If not, let me see
>> if someone in the group can follow up.
>>
>> Thanks,
>>
>> Lindsey
>> GCI Arches Project Team
>>
>> On Thursday, January 14, 2021 at 2:30:56 PM UTC-8 ala...@gmail.com wrote:
>>
>>> Hello all,
>>>
>>> I'm testing an upgrade to Arches 5.1 and have hit a stumbling block with
>>> trying to get celery running. I've followed the directions on the doc
>>> ,
>>> and have RabbitMQ installed and my settings.py file updated. I did not
>>> create a tasks.py file within my project folder because the docs imply this
>>> is only needed if I need to add additional tasks for my project (I just
>>> need the default Arches tasks).
>>>
>>> When I run python manage.py celery start from within my virtualenv, I
>>> get
>>>
>>> Error:
>>> Unable to load celery application.
>>> The module XXX was not found.
>>>
>>> where XXX = my settings.ELASTICSEARCH_PREFIX
>>>
>>> However, when I edit the celery.py management command to use
>>> cmd = f"celery -A *arches* worker -B -l info"
>>> instead of settings.ELASTICSEARCH_PREFIX, celery starts up and connects
>>> to rabbitmq.
>>>
>>> I'm wondering why that management command is using the ES prefix and
>>> what I could be missing in my own project config that is causing this.
>>>
>>> Thanks,
>>> Angela
>>>
>> --
> -- 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/17891260-c650-469a-bdff-9e68f9b5b462n%40googlegroups.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 
https://groups.google.com/d/msgid/archesproject/CA%2BZLqy838tPV3W3r5ZGS23d4SFGKNCLGcN7Zq1ne7G9Tty310w%40mail.gmail.com.


Re: [Arches] Importing dates earlier than 1970-01-01

2021-01-21 Thread Alexei Peters
Hi Markus,
I just created a small graph based on your example.  I allowed for multiple
values for the Evaluation Card.
With that setup, I was able to import a csv file structured exactly like
the one you specify above without any issue.

Have you tried creating a date older than 1970 via the UI?  If so did that
work?
If you can do that, maybe you should try exporting your data to see if the
format of the csv is the same as what you're trying to import.

FYI I didn't need to specify resource ids as UUIDs for the import to work.
Cheers,
Alexei

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


On Tue, Dec 15, 2020 at 3:35 PM Markus S.  wrote:

> Hi,
>
> I ran into a bit of a curious issue while importing dates from a CSV file
> to a date field or fields in Arches v5.1.
>
> The CSV file looks roughly like this:
>
> *ResourceID,Period of Significance From Date,Period of Significance To
> Date*
> 3215,1985-01-01,1986-01-01
> 3215,1964-01-01,1965-01-01
>
> For any date before 1970-01-01, Arches import function (append to an
> existing record) produces Error #22: "invalid argument or is not a
> prefLabel in the given collection". Since it's a date import, not a
> concept, we can interpret this as "invalid argument". From the above
> sample, only the first row would get imported because the dates included
> are later than 1970-01-01 (which is the Unix epoch date, weirdly).
>
> In the Cards, the Minimum Date has been left empty. I also tried a minimum
> date a few hundred years back - did not make a difference.
>
> In the Resource Model, the branch is a simple one. Something like this:
>
>- DEMO model (E18)
>- Evaluation (E13) (semantic)
>   - Period of Significance (E52)  (semantic)
> - *Period of Significance From Date (E49) (date ISO-8601)*
> - *Period of Significance To Date (E49) (date ISO-8601)*
>
>
> Any advice?
>
> --
> -- 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/3336c6e1-e9ad-4e86-8861-97a16c26d6cbn%40googlegroups.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 
https://groups.google.com/d/msgid/archesproject/CA%2BZLqy-LRs6eMdpq%2Bv7JCtQiCqqiwPPJBAUaPaSeig1FoqO2ng%40mail.gmail.com.


[Arches] Re: Importing dates earlier than 1970-01-01

2021-01-20 Thread Alexei Peters
Hi Markus,
Let me check to see what is going on here and I'll try and get back to you 
soon.
Cheers,
Alexei

On Wednesday, January 20, 2021 at 2:19:50 PM UTC-8 Markus S. wrote:

> Hi Lindsey,
>
> No, I still cannot import dates earlier than 1970-01-01. It has not been a 
> huge issue since we are only building towards a demo site, but it would 
> need to be resolved sooner or later.
>
> Markus
>
> On Tuesday, January 19, 2021 at 4:51:47 PM UTC-8 Lindsey Gant wrote:
>
>> Hi Markus,
>>
>> Thanks for your message. I see that your question has not been answered 
>> yet. Have you had any success importing dates from a CSV file? If not, 
>> let me see if someone in the group can follow up. 
>>
>> Thanks,
>>
>> Lindsey
>> GCI Arches Project Team
>>
>> On Tuesday, December 15, 2020 at 3:35:30 PM UTC-8 Markus S. wrote:
>>
>>> Hi,
>>>
>>> I ran into a bit of a curious issue while importing dates from a CSV 
>>> file to a date field or fields in Arches v5.1.
>>>
>>> The CSV file looks roughly like this:
>>>
>>> *ResourceID,Period of Significance From Date,Period of Significance To 
>>> Date*
>>> 3215,1985-01-01,1986-01-01
>>> 3215,1964-01-01,1965-01-01
>>>
>>> For any date before 1970-01-01, Arches import function (append to an 
>>> existing record) produces Error #22: "invalid argument or is not a 
>>> prefLabel in the given collection". Since it's a date import, not a 
>>> concept, we can interpret this as "invalid argument". From the above 
>>> sample, only the first row would get imported because the dates included 
>>> are later than 1970-01-01 (which is the Unix epoch date, weirdly).
>>>
>>> In the Cards, the Minimum Date has been left empty. I also tried a 
>>> minimum date a few hundred years back - did not make a difference.
>>>
>>> In the Resource Model, the branch is a simple one. Something like this:
>>>
>>>- DEMO model (E18)
>>>- Evaluation (E13) (semantic)
>>>   - Period of Significance (E52)  (semantic)
>>> - *Period of Significance From Date (E49) (date ISO-8601)*
>>> - *Period of Significance To Date (E49) (date ISO-8601)*
>>>  
>>>
>>> Any advice?
>>>
>>

-- 
-- 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/6c4aeee4-c179-4e1d-ac88-2e615d7a9c1dn%40googlegroups.com.


Re: [Arches] Re: Arches 5.1.0 released

2021-01-05 Thread Alexei Peters
Hi kubalobo@gmail,
It looks like the error message you received is because you have geometric
coordinates that are integers mixed with coordinates that are decimals.
Elasticsearch (ES) dynamically maps incoming fields based on the first
document indexed.  It appears that the first document had integer based
coordinates and then in a subsequent document decimal based coordinates
were being saved.  ES will complain about this.  I would try and fix your
geo data such that all coordinates are floats.
The reason `python manage.py es index_database` worked is because the
mappings were preserved by that command and what was stored in ES were
evidently correct, but this was not the case when the mappings were remade
during the "reindex_database" command.
I hope that explains the issue somewhat.
Cheers,
Alexei


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


On Sun, Jan 3, 2021 at 6:42 AM kuba...@gmail.com  wrote:

> Hi,
> I also upgraded to version 5.1.0 - I have only small trouble with elastic
> search reindexing.
> {'type': 'illegal_argument_exception', 'reason': 'mapper
> [tiles.data.3a9f46c0-f538-11ea-ac6d-9fb7e90de197.features.geometry.coordinates]
> cannot be changed from type [long] to [float]'}
> Using:
> python manage.py es index_database
> instead of:
> python manage.py es reindex_database
> did the job so I propose to change that in upgrade instruction:
> https://github.com/archesproject/arches/blob/stable/5.1.x/releases/5.1.0.md
>
> Best regards!
>
> środa, 25 listopada 2020 o 00:45:25 UTC+1 Markus S. napisał(a):
>
>> This suggestion turned out to be correct. Thank you!
>>
>> On Thursday, October 29, 2020 at 3:47:09 PM UTC-7 Cyrus Hiatt wrote:
>>
>>> Thanks Markus,
>>>
>>> I'm glad you got things working. I'm not sure what went wrong with your
>>> JS dependency installation. Can you confirm that you ran `yarn install`
>>> from the directory with your package.json file rather than the one with
>>> manage.py? You probably did it correctly, but running yarn from the
>>> manage.py directory is an easy mistake to make..
>>>
>>> Thanks,
>>>
>>> Cyrus
>>>
>>> On Thu, Oct 29, 2020 at 3:24 PM Markus S.  wrote:
>>>
 Hi all,

 Congrats and thank you for a new version! We just performed an upgrade
 from v5 to v5.1 to give it a whirl. It's now working fine, and we are
 excited to see the new features (including language switcher!), but we had
 the following issue during installation:

 The new or upgraded JS dependencies were missing from the /media folder
 after the upgrade. We had performed the package.json change as per the
 instructions and had run 'yarn install' after deleting the yarn.lock file.
 The assumption was that this was going to take care of the JS dependencies,
 downloading and placing them in the appropriate directories. However, when
 loading the Arches' Search page, the web browser was complaining about
 missing JS files - the very ones that were updated or new. We resorted to
 downloading the missing JS files and placing them in the appropriate
 directories manually, which fixed the issue.

 What should we have done differently? This was on a Windows server.

 Markus

 On Wednesday, October 28, 2020 at 2:04:27 PM UTC-7 ostec...@gmail.com
 wrote:

> Hi Everyone,
>
> Yes, I would like to second Mr. Cox and congratulate the Arches
> Project team and community to just put out another sprint release of the
> wonderful and growing Arches ecosystem!
>
> Thanks very much for the great work!
>
> Best regards,
>
> Woody Chao at Ostechman Systems
> in...@ostechman.com
>
> P.S. Personally, I came from Cambodia which is a place once hosted an
> instance of human civilization in Southeast Asia. I am not an antiquarian
> or archaeologist but drawn to this area because literally cultural
> artifacts are still incidentally appearing and discovered by villagers and
> farmers almost on a daily basis, tl say nothing about the ones littering
> around on the Earth surface  areas in the country. I happened to start
> working in IT after schooling in sociology. So, these days I am spending
> some time with CRM materials and maintaining an installation of Arches for
> such a personal study of the tools and technologies invovled CHM.
> https://arc.kumroo.com.
>
> On Wed, Oct 28, 2020, 8:18 AM Adam Cox  wrote:
>
>> Nice work all! The upgrade steps look good and thorough :)
>>
>> We'll have a big update to the documentation very soon, so stay
>> tuned. I think we should also make sure to set up clear links to these
>> release notes.
>>
>> Adam
>>
>> On Tuesday, October 27, 2020 at 5:14:38 PM UTC-5 Cyrus Hiatt wrote:
>>
>>> The Arches team is happy to announce the 5.1.0 release which
>>> includes a number of important new features and bug fixes:
>>>

Re: [Arches] Hiding Spatial Locations in the Report Template

2020-12-09 Thread Alexei Peters
Great creative solution Bryan!

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


On Wed, Dec 9, 2020 at 6:17 AM Bryan Alvey  wrote:

> Hi Alexei
>
> Thanks for getting back to me!
>
> I found the solution by choosing '*Tabbed Template*' for the report style
> for each of the models: In this way, I am able to choose which cards get to
> be displayed in each of the tabs - and I am able to omit the display of the
> card which has the spatial coordinates.
>
> For anyone else coming across this email, you can do this through the
> front end: You go to Arches Designer/[choose your resource model]/click on
> the resource model node and choose the Cards Tab.  This displays the Report
> Configuration options on the right of the screen, from where you can opt
> for the *Tabbed Template* option from the pull-down list.
>
> Have your tabbed options planned ahead, as you choose the rightmost tab
> first and move from the right-tab to the left, so you will probably be
> choosing the name and description last of all (but you might be able to
> move the tabs around anyway, I didn't figure that out).
>
> But once you know, easy-peasy!
>
> Thanks for all your help,
>
>
> Bryan
>
>
>
>
> On Wed, 9 Dec 2020 at 07:37, Alexei Peters  wrote:
>
>> Hi Bryan,
>> Right now the data for storing you coordinates is in 1 node and if the
>> permissions are set such that a specific group isn't allowed to see it,
>> then the flows to all the different ways that data could show up.  In this
>> case the map data and the coordinate data are derived from that same data
>> and must adhere to the same permissions.
>> What you want, really, is a hybrid approach.  You'd like to completely
>> restrict viewing of the raw coordinates but still allow a limited view of
>> the data via a map.  Is that right?
>> If that's the case, you might be able to achieve something like that via
>> a custom card component, or maybe even better, a custom map widget/template
>> that simply hides the coordinates in the report.
>> I might be a little out of my depth here someone like Rob Gaston, whom I
>> work with, might be able to answer this more definitively.
>> Cheers,
>> Alexei
>>
>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>
>>
>> On Thu, Nov 26, 2020 at 4:16 AM Bryan Alvey  wrote:
>>
>>>
>>> Hi Everyone,
>>>
>>> I feel this question must have been asked many times before, but I can’t
>>> seem to find a solution in the docs or in the forums, so here goes:
>>>
>>> I want anonymous users/specific user groups to be able to see the
>>> location points on the map but I want to limit how far they can zoom into
>>> the map, and I don’t want them to see the spatial location geometry
>>> displayed in the report template.
>>>
>>> So I have set up the default zoom limits in System Settings (System
>>> Settings/Default Map Settings/Map Zoom) and created the zoom limits for the
>>> user groups (from the /admin area, under MODELS / Group map settings (5.1)).
>>>
>>> However, when I try to limit the view of spatial locations for guest
>>> users through admin permissions, guests can’t see the points on the map;
>>> and when I try to limit the view through card permissions tab in the front
>>> end (Arches Designer/[Model Name]/Location/Spatial Location/Permissions
>>> tab) the same thing happens – they can either see nothing at all on the map
>>> and no coordinate display, or they can see the map data AND the coordinate
>>> information displayed in the report template.
>>>
>>> Has anyone a solution to this problem?
>>>
>>> Best wishes,
>>>
>>>
>>>
>>> Bryan
>>>
>>>
>>>
>>> --
>>> -- 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/449d0c3a-65d5-42d2-b6b0-2ca1e3f2693cn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/arches

Re: [Arches] Hiding Spatial Locations in the Report Template

2020-12-08 Thread Alexei Peters
Hi Bryan,
Right now the data for storing you coordinates is in 1 node and if the
permissions are set such that a specific group isn't allowed to see it,
then the flows to all the different ways that data could show up.  In this
case the map data and the coordinate data are derived from that same data
and must adhere to the same permissions.
What you want, really, is a hybrid approach.  You'd like to completely
restrict viewing of the raw coordinates but still allow a limited view of
the data via a map.  Is that right?
If that's the case, you might be able to achieve something like that via a
custom card component, or maybe even better, a custom map widget/template
that simply hides the coordinates in the report.
I might be a little out of my depth here someone like Rob Gaston, whom I
work with, might be able to answer this more definitively.
Cheers,
Alexei

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


On Thu, Nov 26, 2020 at 4:16 AM Bryan Alvey  wrote:

>
> Hi Everyone,
>
> I feel this question must have been asked many times before, but I can’t
> seem to find a solution in the docs or in the forums, so here goes:
>
> I want anonymous users/specific user groups to be able to see the location
> points on the map but I want to limit how far they can zoom into the map,
> and I don’t want them to see the spatial location geometry displayed in the
> report template.
>
> So I have set up the default zoom limits in System Settings (System
> Settings/Default Map Settings/Map Zoom) and created the zoom limits for the
> user groups (from the /admin area, under MODELS / Group map settings (5.1)).
>
> However, when I try to limit the view of spatial locations for guest users
> through admin permissions, guests can’t see the points on the map; and when
> I try to limit the view through card permissions tab in the front end
> (Arches Designer/[Model Name]/Location/Spatial Location/Permissions tab)
> the same thing happens – they can either see nothing at all on the map and
> no coordinate display, or they can see the map data AND the coordinate
> information displayed in the report template.
>
> Has anyone a solution to this problem?
>
> Best wishes,
>
>
>
> Bryan
>
>
>
> --
> -- 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/449d0c3a-65d5-42d2-b6b0-2ca1e3f2693cn%40googlegroups.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 
https://groups.google.com/d/msgid/archesproject/CA%2BZLqy8gwxzd4YCndb0pgtcHd6bEW2CoZnGRpg-zPCg%3DvKL%3D9g%40mail.gmail.com.


Re: [Arches] Graph Validation Error (you cannot modify a Resource Model with instances) - how do I find instances?

2020-10-15 Thread Alexei Peters
Hi Jude,
If you want to delete all the "Monument" instances just go to the graph
designer for that model.  Then select the "Manage" button in the upper left
corner.  That should give you an option to delete all instances of that
model.
I know it's obvious, but this is permanent.  There is no way to undo the
delete of all the instances.
Cheers,
Alexei

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


On Thu, Oct 15, 2020 at 1:12 AM manxnation...@gmail.com <
manxnationalherit...@gmail.com> wrote:

> Hello,
>
> We're starting to edit our data in Arches (only 6,000 records), can anyone
> help with this query.
>
> I need to change the resource-instance in the node 'Compiler
> (organisation)' from 'Person (Actor)' to 'Organisation (Actor)'.  (We
> needed to create the separate Resource Model 'Organisation (Actor)' to
> allow us to capture these records).  However, when I do this I get a Graph
> Validation Error and I cannot save the edit to the Resource Model.
>
> How do I find the 'instances saved' so I can edit or delete them, in order
> that I can then make the above change?
>
> Thanks, I'm sure there's a simple way, all part of us learning Arches here,
>
> Jude.
>
> --
> -- 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/d11411dd-dc45-4c7f-9629-34c10bbd3b96n%40googlegroups.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 
https://groups.google.com/d/msgid/archesproject/CA%2BZLqy9oWhvfK1cg74%3DfjPYSLw9nTEjCBe86hmcExbmQSic8Dg%40mail.gmail.com.


Re: [Arches] Re: V5 dependencies installation - postygres install problem

2020-09-21 Thread Alexei Peters
Hi Pat,
Could you submit a ticket about this and in the ticket add the
suggested fixes and maybe also add a link to this thread.
Thanks,
Alexei

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


On Sat, Sep 19, 2020 at 4:23 AM patlu...@gmail.com 
wrote:

> Hello Alina,
>
> Thanks for the reply. That link did not help with my problem, but thanks
> for taking the time to post it.
>
> I believe that, despite those messages, which are, after all, just
> warnings, the postgis extension got installed so have carried on with the
> installation.
>
> Installing postgres gave me a rude message that was cured by moving the
> line
>   wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc
> | sudo apt-key add -
> up one line to be before the line
>   sudo add-apt-repository "deb http://apt.postgresql.org/pub/repos/apt/
> $(lsb_release -sc)-pgdg main"
>
> I had a similar problem when the script tried to install couchdb, which
> was cured by moving the line
>wget --quiet -O - https://couchdb.apache.org/repo/bintray-pubkey.asc |
> sudo apt-key add -
> to before the line
>   sudo add-apt-repository "deb https://apache.bintray.com/couchdb-deb
> $(lsb_release -sc) main"
>
> The dependencies now all seem to be in place, ready to install Arches
> itself.
>
> If those changes are legitimate (I am new to linux so am floundering in
> the dark a bit) perhaps somebody would be kind enough to update the
> ubuntu_unstall.sh script on github.
>
> Best wishes,
> Pat
>
> On Thursday, September 17, 2020 at 11:58:03 PM UTC+1 Alina Myklebust wrote:
>
>> Hi Pat,
>>
>> I don't have first hand experience with Arches v5 install, so I hope
>> someone else here on the forum can pop in and help with your question.  I
>> do recall a similar install issue related to Postgres dependencies, so I
>> wanted to share the link to that post because it may help steer you in the
>> right direction:
>> https://groups.google.com/g/archesproject/c/eJNu_ROr5zk/m/S7jS7WcSAwAJ
>>
>> Please let us know if you've been able to get further along with your
>> install!
>>
>> Best,
>>
>> Alina
>>
>> On Tuesday, September 15, 2020 at 4:38:54 AM UTC-7 patlu...@gmail.com
>> wrote:
>>
>>> Hi folks,
>>>
>>> I am setting up an Arches v5  installation in a Vbox Virtual Machine on
>>> my laptop using the install script for Ubuntu 18.04 using the install
>>> script install_ubuntu.sh fetched from github.
>>>
>>> I got as far as the line:
>>> sudo -u postgres psql -d template_postgis -c "CREATE EXTENSION postgis;"
>>> and got the following:
>>>
>>> ***STARTS***
>>> WARNING:  nonstandard use of escape in a string literal
>>> LINE 5:  SELECT substring(version(), 'PostgreSQL ([0-9\.]+)') INTO p...
>>>  ^
>>> HINT:  Use the escape string syntax for escapes, e.g., E'\r\n'.
>>> QUERY:
>>> DECLARE
>>> pgver text;
>>> BEGIN
>>> SELECT substring(version(), 'PostgreSQL ([0-9\.]+)') INTO pgver;
>>>
>>> IF 120::text != ( SELECT CASE
>>> WHEN split_part(s,'.',1)::integer > 9
>>> THEN split_part(s,'.',1) || '0'
>>> ELSE
>>> split_part(s,'.', 1) || split_part(s,'.', 2)
>>> END
>>> FROM substring(version(), 'PostgreSQL ([0-9\.]+)') AS s )
>>> THEN
>>> RAISE EXCEPTION 'PostGIS built for PostgreSQL % cannot be loaded
>>> in PostgreSQL %',
>>> 12.0, pgver;
>>> END IF;
>>> END;
>>>
>>> WARNING:  nonstandard use of escape in a string literal
>>> LINE 13:   FROM substring(version(), 'PostgreSQL ([0-9\.]+)') AS s )
>>>  ^
>>> HINT:  Use the escape string syntax for escapes, e.g., E'\r\n'.
>>> QUERY:
>>> DECLARE
>>> pgver text;
>>> BEGIN
>>> SELECT substring(version(), 'PostgreSQL ([0-9\.]+)') INTO pgver;
>>>
>>> IF 120::text != ( SELECT CASE
>>> WHEN split_part(s,'.',1)::integer > 9
>>> THEN split_part(s,'.',1) || '0'
>>> ELSE
>>> split_part(s,'.', 1) || split_part(s,'.', 2)
>>> END
>>> FROM substring(version(), 'PostgreSQL ([0-9\.]+)') AS s )
>>> THEN
>>> RAISE EXCEPTION 'PostGIS built for PostgreSQL % cannot be loaded
>>> in PostgreSQL %',
>>> 12.0, pgver;
>>> END IF;
>>> END;
>>>
>>> WARNING:  nonstandard use of escape in a string literal
>>> LINE 1: SELECT substring(version(), 'PostgreSQL ([0-9\.]+)')
>>> ^
>>> HINT:  Use the escape string syntax for escapes, e.g., E'\r\n'.
>>> QUERY:  SELECT substring(version(), 'PostgreSQL ([0-9\.]+)')
>>> WARNING:  nonstandard use of escape in a string literal
>>> LINE 7:   FROM substring(version(), 'PostgreSQL ([0-9\.]+)') AS s )
>>> ^
>>> HINT:  Use the escape string syntax for escapes, e.g., E'\r\n'.
>>> QUERY:  SELECT 120::text != ( SELECT CASE
>>> WHEN split_part(s,'.',1)::integer > 9
>>> THEN split_part(s,'.',1) || '0'
>>> ELSE
>>> 

Re: [Arches] Changing the Default Search

2020-05-27 Thread Alexei Peters
Hi Martha,
If you want to replace the entire page with something custom, then you
could go to urls.py and redirect that url to your page.
-Alexei

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


On Tue, May 26, 2020 at 12:51 PM Martha S  wrote:

> Hi, all,
>
> I'm looking for the most appropriate place to change the default search in
> Arches. Would it be an override to urls.py, search.py or somewhere else?
> I'd like to catch it as early in the process as possible, so I can change
> it in a single place.
>
> Thanks,
> Martha
>
> --
> -- 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/65aa4732-c825-445b-aab9-1887ed5b2c30%40googlegroups.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 
https://groups.google.com/d/msgid/archesproject/CA%2BZLqy9UH0ZbJwQpBsL9g0VChcq%3Dq%3DjAoaRP95PdthORnmnnBA%40mail.gmail.com.


Re: [Arches] Re: Related card

2020-05-05 Thread Alexei Peters
Hi Mélina,
I think the simplest way to solve this would be to create a custom card
component (
https://arches.readthedocs.io/en/stable/functions-widgets-datatypes/#card-components)

that would hide certain nodes/widgets based on the value of other nodes.
This would have to all be in 1 card though, so the nodes would all have to
be in the same group.
Hope that helps.
Cheers,
Alexei

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


On Fri, May 1, 2020 at 5:53 AM Mélina Grandmont 
wrote:

> Hello,
>
> I am currently attempting to do the same thing. Have you found a way to do
> it?
>
> Thank you!
>
> Mélina
>
> On Monday, 26 November 2018 06:47:45 UTC-5, Matteo Orlando wrote:
>>
>> Hi,
>> is it possible to show different card according to the value of another
>> node, for example having two different concept list according to the value
>> of a boolean node?
>>
> --
> -- 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/5691f8f8-9c79-4998-8a8d-970cd3214cf4%40googlegroups.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 
https://groups.google.com/d/msgid/archesproject/CA%2BZLqy9T-dG0QU8Uj_rTSX231LA0%2Bay4Z9o1V27WQ_nWpFaTdw%40mail.gmail.com.


Re: [Arches] Multilingual Record Structure

2020-03-30 Thread Alexei Peters
Hi Elishai,
The Arches user interface can be localized via django's in-built
functionality (see: https://docs.djangoproject.com/en/2.2/topics/i18n/)
The business data on the other hand will only support the language that the
user chooses to work in.  For example, the name of a graph will be in
whatever language the users initially save the graph.
This goes for all hand entered data.
Hope that clarifies things,
Alexei



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


On Mon, Mar 30, 2020 at 7:38 AM Elishai Cohen 
wrote:

> Hi,
>
> i would like to get some advice from you.
> Do Arches support a multilingual record structure?
> if so, how could i implement it?
>
> Best regards and health,
> Elishai Cohen
>
> --
> -- 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/CAMRz0YPXiyan8-FX0rj%3DTHcML8rjuQHyu%3DfKU1r6hvoTafLr-w%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 
https://groups.google.com/d/msgid/archesproject/CA%2BZLqy8gBsiDFO364N4JhTbXVHcxHP12L8AJw%2BhYuPqwdu0GGA%40mail.gmail.com.


Re: [Arches] Re: Controlling order of indexing of resource types for Elasticsearch?

2020-03-23 Thread Alexei Peters
Hi David,
This is a bit of a hack, but would achieve what I believe you are looking
for.

   1.  Go to the graph editor for the resource type you want to re-index.
   2. From the "Manage" button in the top left, select "Functions"
   3. Select the "Define Resource Descriptors" from the left panel
   4. In the "Define Resource Descriptors" center panel click the
   "Re-Index" button in the top right corner.

This will effectively index all the resources of that type.  I'm unsure if
it will affect the ordering in the search results panel, but it's worth a
shot.
Cheers,
Alexei

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


On Mon, Mar 23, 2020 at 12:41 PM Alina Myklebust 
wrote:

> Hi David,
>
> Were you able to find a solution for this yet? I may recall a similar
> question in the past, so I'll run a search to see what comes up.
>
> Best,
>
> Alina
>
>
> On Tuesday, March 17, 2020 at 6:44:09 AM UTC-7, David Osborne wrote:
>>
>> I needed to re-index our database and now the search results sidebar on
>> the left of the search page shows the Information resources first. Is it
>> possible to have the Heritage Assets listed first? Running python
>> manage.py es index_resources the Information resources are processed
>> before Activity and Heritage Asset resources,
>>
>> In
>> ~/Projects/ENV/lib/python2.7/site-packages/arches/app/utils/index_database.py,
>> which is untimately called from python manage.py es index_resources,
>> there's a function index_resources_by_type which could be used to index
>> resources in a desired order but there's no obvious way to invoke it.
>>
>> (Arches 4.4.2, Ubuntu 16.04)
>>
>> 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/9c94d39b-1260-4630-b050-248814a1fe3a%40googlegroups.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 
https://groups.google.com/d/msgid/archesproject/CA%2BZLqy8k4VG_G9nYPhpLdg58JmLDP2Fq%2BsSaqGZ07wJPvd2rvw%40mail.gmail.com.


Re: [Arches] help deleting data model

2020-03-19 Thread Alexei Peters
Hi Lily,
Were you ever able to resolve your issue?
Also, we tried recreating the issue but were unsuccessful.  See: 
https://github.com/archesproject/arches/issues/5957#issuecomment-601397100
Can you give us any guidance on how to reproduce this error?
If not then we will just close this ticket for now.
Cheers,
Alexei


On Monday, March 9, 2020 at 11:55:58 AM UTC-7, Lily Pregill wrote:
>
> Thanks, Alexei. I'm not that familiar with the Arches db structure but 
> I'll see what I can accomplish with your suggestion.
>
> best,
> Lily
>
> On Wednesday, March 4, 2020 at 1:26:32 PM UTC-8, Alexei Peters wrote:
>>
>> Hi Lily,
>> It does look like deleting that concept is what is causing the problem 
>> with deleting the model.
>> This of course shouldn't be happening. 
>>
>> I created a ticket for this: 
>> https://github.com/archesproject/arches/issues/5957
>>
>> In the meantime, I think the only way to recover would be to recreate the 
>> concept that you deleted via the RDM.  Then update the primary key of the 
>> value associated to that new concept.
>> Then you should be able to delete your graph, assuming that there was 
>> only one concept deleted in the first place.
>>
>> Cheers,
>> Alexei
>>
>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>
>>
>> On Tue, Mar 3, 2020 at 4:15 PM Lily Pregill  wrote:
>>
>>> Hi Alexei,
>>>
>>> Thanks for having a look. This is what I'm seeing
>>>
>>> best,
>>> Lily
>>>
>>> ---
>>>
>>> Mar 03 09:41:09.941 [staging-arches-ruscha] arches 127.0.0.1 - - 
>>> [03/Mar/2020:17:41:09 +] “DELETE 
>>> /arches/ruscha/graph/f5ed3e88-550f-11ea-a96c-02ba3a331460/delete HTTP/1.0” 
>>> 500 27483 “https://staging-tools.getty.edu/arches/ruscha/graph/” 
>>> “Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:73.0) Gecko/20100101 
>>> Firefox/73.0”
>>> Mar 03 09:41:09.940 [staging-arches-ruscha] arches 
>>> arches.app.models.models.Value.DoesNotExist: Value matching query does not 
>>> exist.
>>> Mar 03 09:41:09.940 [staging-arches-ruscha] arches raise 
>>> self.model.DoesNotExist(
>>> Mar 03 09:41:09.940 [staging-arches-ruscha] arches File 
>>> “/web_root/ENV/lib/python3.8/site-packages/django/db/models/query.py”, line 
>>> 406, in get
>>> Mar 03 09:41:09.940 [staging-arches-ruscha] arches return 
>>> getattr(self.get_queryset(), name)(*args, **kwargs)
>>> Mar 03 09:41:09.940 [staging-arches-ruscha] arches File 
>>> “/web_root/ENV/lib/python3.8/site-packages/django/db/models/manager.py”, 
>>> line 82, in manager_method
>>> Mar 03 09:41:09.940 [staging-arches-ruscha] arches 
>>> self.value_lookup[valueid] = models.Value.objects.get(pk=valueid)
>>> Mar 03 09:41:09.940 [staging-arches-ruscha] arches File 
>>> “/web_root/arches/arches/app/datatypes/concept_types.py”, line 32, in 
>>> get_value
>>> Mar 03 09:41:09.940 [staging-arches-ruscha] arches new_val = 
>>> self.get_value(uuid.UUID(val))
>>> Mar 03 09:41:09.940 [staging-arches-ruscha] arches File 
>>> “/web_root/arches/arches/app/datatypes/concept_types.py”, line 275, in 
>>> get_display_value
>>> Mar 03 09:41:09.940 [staging-arches-ruscha] arches value = 
>>> datatype.get_display_value(tile, node)
>>> Mar 03 09:41:09.940 [staging-arches-ruscha] arches File 
>>> “/web_root/arches/arches/app/functions/primary_descriptors.py”, line 29, in 
>>> get_primary_descriptor_from_nodes
>>> Mar 03 09:41:09.940 [staging-arches-ruscha] arches return 
>>> PrimaryDescriptorsFunction.get_primary_descriptor_from_nodes(self, 
>>> functionConfig[0].config[descriptor])
>>> Mar 03 09:41:09.940 [staging-arches-ruscha] arches File 
>>> “/web_root/arches/arches/app/models/resource.py”, line 66, in get_descriptor
>>> Mar 03 09:41:09.940 [staging-arches-ruscha] arches return 
>>> self.get_descriptor(“name”)
>>> Mar 03 09:41:09.940 [staging-arches-ruscha] arches File 
>>> “/web_root/arches/arches/app/models/resource.py”, line 80, in displayname
>>> Mar 03 09:41:09.940 [staging-arches-ruscha] arches 
>>> self.save_edit(edit_type=“delete”, user=user, note=self.displayname)
>>> Mar 03 09:41:09.940 [staging-arches-ruscha] arches File 
>>> “/web_root/arches/arches/app/models/resource.py”, line 346, in delete
>>> Mar 03 09:41:09.940 [staging-arches-ruscha] arches resource.delete()
>>> Mar 03 09:41:09.940 [staging-arches-ruscha] arches File 
>>> “/w

Re: [Arches] Implementing Custom Search Filters in Arches 5

2020-03-16 Thread Alexei Peters
I believe that you should be able to put the components anywhere.  There's
a setting for that.  "SEARCH_COMPONENT_LOCATIONS"
Which reminds me, that we need to document this feature.


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


On Mon, Mar 16, 2020 at 12:40 PM Adam Cox  wrote:

> Hi Alexei, thanks for the response on this, I think it's all the info I
> need to get started in earnest. Can I place the filter anywhere in my
> project and then register it from there? That would be great, as I (think)
> it would mean that I would only have to migrate the core Arches js file
> that holds the code you referenced (query object) to my project in order to
> edit it. Does that sound right? I will likely add a migration to my project
> so that the new filter is registered that way, instead of following the
> package loading pattern.
>
> Thanks,
> Adam
>
> On Mon, Mar 16, 2020 at 2:18 PM Alexei Peters  wrote:
>
>> Hi Adam,
>> Everything you laid out is correct.  I"m sure you've already done this,
>> but looking at the existing components should be enlightening.
>> Because you have no UI, then your client side code should be pretty
>> simple.  All you should need to do is append your search parameter onto the
>> search url during initialization of the component.
>> Something like this:
>>
>> var queryObj = this.query();
>>> if(this.filter().length > 0){
>>> queryObj[componentName] = ko.toJSON(this.filter);
>>> } else {
>>> delete queryObj[componentName];
>>> }
>>> this.query(queryObj);
>>
>> Of course you'll need to be able to `RestoreState` of the component from
>> the url itself, but examples of this are in our existing components.
>>
>> You'll then need to handle for it on the backend.
>>
>> Cheers,
>> Alexei
>>
>>
>>
>> On Fri, Mar 13, 2020 at 12:04 PM Adam Cox  wrote:
>>
>>> Hello all,
>>>
>>> To migrate a project to arches 5, I need to reintegrate some custom
>>> search filters I had made in 4.4. The way search filters are implemented
>>> has been refactored in 5, so I could use a little guidance. The good thing
>>> is that I believe the way I have my custom filters set up will integrate
>>> well into the new pattern.
>>>
>>> From what I can tell, Arches 5 has individual search components that are
>>> registered in the database and whose logic is stored in arches/arches/
>>> app/search/*components*/. These components are typically linked to a
>>> knockout component which controls the UI (for the filters in my case, there
>>> will be no UI so hopefully that can be left blank). When a search is
>>> performed, these components are iterated and if one of them matches a
>>> filter that is included in the search request, then that filter is applied.
>>>
>>> Assuming all of that is correct, it seems like I would need to 1) create
>>> a new component (my_filter.py) and then register it. 2) inject a term into
>>> the request body behind the scenes (as I want the filter to apply to every
>>> search) which would activate the my_filter component.
>>>
>>> Any help with 1 or, especially, 2 would be appreciated. Of course, I
>>> would prefer to place this customization my own project and avoid changing
>>> anything in core Arches at all.
>>>
>>> Thanks,
>>> Adam
>>>
>>> --
>>> -- 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/01d9e3b9-b2dd-41d7-bb80-89f725618b42%40googlegroups.com
>>> <https://groups.google.com/d/msgid/archesproject/01d9e3b9-b2dd-41d7-bb80-89f725618b42%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>

-- 
-- 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%2BZLqy_Bk1ueK7s-xvk_pbz2A_B%2Bvt8PxU87QRQ-xg_AjFH4jg%40mail.gmail.com.


Re: [Arches] Implementing Custom Search Filters in Arches 5

2020-03-16 Thread Alexei Peters
Hi Adam,
Everything you laid out is correct.  I"m sure you've already done this, but
looking at the existing components should be enlightening.
Because you have no UI, then your client side code should be pretty
simple.  All you should need to do is append your search parameter onto the
search url during initialization of the component.
Something like this:

var queryObj = this.query();
> if(this.filter().length > 0){
> queryObj[componentName] = ko.toJSON(this.filter);
> } else {
> delete queryObj[componentName];
> }
> this.query(queryObj);

Of course you'll need to be able to `RestoreState` of the component from
the url itself, but examples of this are in our existing components.

You'll then need to handle for it on the backend.

Cheers,
Alexei



On Fri, Mar 13, 2020 at 12:04 PM Adam Cox  wrote:

> Hello all,
>
> To migrate a project to arches 5, I need to reintegrate some custom search
> filters I had made in 4.4. The way search filters are implemented has been
> refactored in 5, so I could use a little guidance. The good thing is that I
> believe the way I have my custom filters set up will integrate well into
> the new pattern.
>
> From what I can tell, Arches 5 has individual search components that are
> registered in the database and whose logic is stored in arches/arches/app/
> search/*components*/. These components are typically linked to a knockout
> component which controls the UI (for the filters in my case, there will be
> no UI so hopefully that can be left blank). When a search is performed,
> these components are iterated and if one of them matches a filter that is
> included in the search request, then that filter is applied.
>
> Assuming all of that is correct, it seems like I would need to 1) create a
> new component (my_filter.py) and then register it. 2) inject a term into
> the request body behind the scenes (as I want the filter to apply to every
> search) which would activate the my_filter component.
>
> Any help with 1 or, especially, 2 would be appreciated. Of course, I would
> prefer to place this customization my own project and avoid changing
> anything in core Arches at all.
>
> Thanks,
> Adam
>
> --
> -- 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/01d9e3b9-b2dd-41d7-bb80-89f725618b42%40googlegroups.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 
https://groups.google.com/d/msgid/archesproject/CA%2BZLqy-GM%2B2-7tycOQEWti4w-3yt%2BEDf79OfG%3Dj%2BQt0oKGeFtA%40mail.gmail.com.


Re: [Arches] New Python Script/Workflow for creating Nested Toggle-based Cards.

2020-03-16 Thread Alexei Peters
Hi Brendon,
I think that you could satisfy this with a custom card component.  I don't
think new data type is what you're looking for.
see
https://arches.readthedocs.io/en/stable/functions-widgets-datatypes/#card-components
Cheers,
Alexei

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


On Fri, Mar 13, 2020 at 1:13 PM Brendon Bangert  wrote:

> Howdy Arches Forum users,
>
> [image: Capture.PNG]Our dev team is currently looking into the
> plausibility of having nested card options that only appear when certain
> selections are made on a resource model. For example if I select this
> option screen capped. Is there a way to make additional sections, and card
> to appear only when this option is selected? From what I can gain this
> would be a new custom data type, that would require some coding/scripting
> knowledge to make happen. If there are any resources or additional
> information needed from myself I would be more than happy to provide.
>
> Thanks,
> Brendon
>
> --
> -- 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/08450f9c-aa49-45f9-91da-563ce300b067%40googlegroups.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 
https://groups.google.com/d/msgid/archesproject/CA%2BZLqy-2dZ3ogX-T6Xw6bsXsupWGOdkD0PCQX1kUUjDMMt6Xeg%40mail.gmail.com.


Re: [Arches] help deleting data model

2020-03-04 Thread Alexei Peters
y”,
> line 71, in view
> Mar 03 09:41:09.940 [staging-arches-ruscha] arches response =
> wrapped_callback(request, *callback_args, **callback_kwargs)
> Mar 03 09:41:09.940 [staging-arches-ruscha] arches File
> “/web_root/ENV/lib/python3.8/site-packages/django/core/handlers/base.py”,
> line 113, in _get_response
> Mar 03 09:41:09.940 [staging-arches-ruscha] arches response =
> self.process_exception_by_middleware(e, request)
> Mar 03 09:41:09.940 [staging-arches-ruscha] arches File
> “/web_root/ENV/lib/python3.8/site-packages/django/core/handlers/base.py”,
> line 115, in _get_response
> Mar 03 09:41:09.940 [staging-arches-ruscha] arches response =
> get_response(request)
> Mar 03 09:41:09.940 [staging-arches-ruscha] arches File
> “/web_root/ENV/lib/python3.8/site-packages/django/core/handlers/exception.py”,
> line 34, in inner
> Mar 03 09:41:09.940 [staging-arches-ruscha] arches Traceback (most recent
> call last):
> Mar 03 09:41:09.940 [staging-arches-ruscha] arches During handling of the
> above exception, another exception occurred:
> Mar 03 09:41:09.940 [staging-arches-ruscha] arches KeyError:
> UUID(‘f874a20e-795c-408e-ab80-b56101b4930c’)
> Mar 03 09:41:09.940 [staging-arches-ruscha] arches return
> self.value_lookup[valueid]
> Mar 03 09:41:09.940 [staging-arches-ruscha] arches File
> “/web_root/arches/arches/app/datatypes/concept_types.py”, line 30, in
> get_value
> Mar 03 09:41:09.940 [staging-arches-ruscha] arches Traceback (most recent
> call last):
> Mar 03 09:41:09.940 [staging-arches-ruscha] arches Internal Server Error:
> /arches/ruscha/graph/f5ed3e88-550f-11ea-a96c-02ba3a331460/delete
>
> On Tuesday, March 3, 2020 at 10:01:31 AM UTC-8, Alexei Peters wrote:
>>
>> Hi Lily,
>> Are you getting any error messages in the terminal running Arches, or any
>> messages in the arches.log file?
>> Cheers,
>> Alexei
>>
>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>
>>
>> On Mon, Mar 2, 2020 at 4:42 PM Lily Pregill  wrote:
>>
>>> Hi all,
>>>
>>> I have a data model that I'm trying to delete in a v.5 instance, but the
>>> system is preventing me from removing it. I suspect I deleted a concept and
>>> resource in the wrong order and there are data remnants lingering in the
>>> system. I've tried to Delete Instances under the Arches Designer --> Manage
>>> and I get the following:
>>>
>>> Request Failed...
>>>
>>>
>>> Sorry! The request failed. Please try again. Contact your system
>>> administrator if the problem persists.
>>>
>>>
>>> I get the same message when I go to Manage --> Delete Model.
>>>
>>>
>>> I currently don't have any resources in the system, but I would like to
>>> avoid wiping this instance and starting again. Any suggestions for things
>>> to try from the community would be most welcome.
>>>
>>>
>>> Thanks,
>>>
>>> Lily
>>>
>>> --
>>> -- 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.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/archesproject/08969c3a-5e61-4bd0-9dda-94e47c21d9b1%40googlegroups.com
>>> <https://groups.google.com/d/msgid/archesproject/08969c3a-5e61-4bd0-9dda-94e47c21d9b1%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
> -- 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/887c7b93-fcae-4c49-8a94-7c7144ec1a6d%40googlegroups.com
> <https://groups.google.com/d/msgid/archesproject/887c7b93-fcae-4c49-8a94-7c7144ec1a6d%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
-- 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%2BZLqy_r0Zt28Ju5GVAfZ_ym1VaMtauuTtvAXeLuzGDXqqPJJA%40mail.gmail.com.


Re: [Arches] help deleting data model

2020-03-03 Thread Alexei Peters
Hi Lily,
Are you getting any error messages in the terminal running Arches, or any
messages in the arches.log file?
Cheers,
Alexei

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


On Mon, Mar 2, 2020 at 4:42 PM Lily Pregill  wrote:

> Hi all,
>
> I have a data model that I'm trying to delete in a v.5 instance, but the
> system is preventing me from removing it. I suspect I deleted a concept and
> resource in the wrong order and there are data remnants lingering in the
> system. I've tried to Delete Instances under the Arches Designer --> Manage
> and I get the following:
>
> Request Failed...
>
>
> Sorry! The request failed. Please try again. Contact your system
> administrator if the problem persists.
>
>
> I get the same message when I go to Manage --> Delete Model.
>
>
> I currently don't have any resources in the system, but I would like to
> avoid wiping this instance and starting again. Any suggestions for things
> to try from the community would be most welcome.
>
>
> Thanks,
>
> Lily
>
> --
> -- 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/08969c3a-5e61-4bd0-9dda-94e47c21d9b1%40googlegroups.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 
https://groups.google.com/d/msgid/archesproject/CA%2BZLqy9MLE%3DqS-d45L2EJK0L9COBeiD4b2ZcW_WL2S53Y0a6_w%40mail.gmail.com.


Re: [Arches] Re: Programmatic management of resources?

2020-02-24 Thread Alexei Peters
Hi David,
I don't really have an ERD available, although someone on our team might.
I'll ask around.
-Alexei

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


On Mon, Feb 24, 2020 at 1:21 AM Andrew Jones <
andrew.jo...@historicengland.org.uk> wrote:

> I would recommend that you use the django model to delete the resources.
> Like you, we were not confident that we knew enough about the database
> structure to confidently execute SQL without leaving various elements all
> over the place. You also need to update the index etc.
>
> I would write a command that allows you to pass in a list of UUIDs (.json
> UUID list would be easiest) and use the django model functions to delete
> the Resource objects.  *The following command is TOTALLY untested* but is
> what I'm thinking about...
>
> import os
> import json
> from django.core.management.base import BaseCommand, CommandError
> from arches.app.models.resource import Resource
>
> class Command(BaseCommand):
>
> def add_arguments(self, parser):
>
> parser.add_argument('operation', nargs='?',
> choices=['delete_resources',],
> help='Operation Type; ' +
> '\'delete_resources\'=Deletes resources from the database')
>
> parser.add_argument('-s', '--source', action='store',
> dest='source', default='',
> help='Json file containing Resource instance UUIDs in an
> array')
>
> def handle(self, *args, **options):
> if options['operation'] == 'delete_resources':
> self.delete_resources(json_source=options['source'])
> def load_json(self, json_source):
> """
> json should be formatted ["",""]
> """
> json_data = open(json_source)
> return json.load(json_data)
>
> def delete_resources(self,json_source)
> uuids = load_json(json_source=source)
> resources_to_delete = Resource.objects.filter(resourceinstanceid__in=uuids)
> for r in resources_to_delete:
> try:
> r.delete()
> except Exception as e:
> print(str(e))
>
> Have a look at django management commands to see where this needs to be
> placed in your django project.
>
> Andrew
>
>
> On Sunday, February 23, 2020 at 5:37:36 PM UTC, David Osborne wrote:
>>
>> Hi Alexei
>>
>> Thank you for the details. I should have asked about doing this using
>> SQL, which seems the more obvious way of doing it but I had looked at the
>> database structure and couldn't see how it related to the data models. Is
>> there anything for developers such as an entity relationship diagram for
>> the database, to explain how to query it?
>> I'll try your SQL and proceed with caution (and backups!) when I get to
>> deletions.
>>
>> Cheers
>> David
>>
>> On Tuesday, 18 February 2020 18:29:16 UTC, Alexei Peters wrote:
>>>
>>> Hi David,
>>> There isn't a baked in "grep"-like command to do what you want but I've
>>> crafted a bit of sql that you might be able to run to retrieve resource
>>> instances based on node values.
>>>
>>> SELECT t.tileid,
>>> t.resourceinstanceid,
>>> t.tiledata,
>>> n.nodeid
>>> FROM tiles t
>>> LEFT JOIN nodes n ON t.nodegroupid = n.nodegroupid
>>> WHERE
>>> (t.tiledata::json -> n.nodeid::text)::text = '12'
>>>
>>> In this case you'd replace "12" with the value you're interested in.
>>> This won't work for geometry nodes but should work for the majority of
>>> other datatypes.
>>>
>>> As for deleting the resources once identified, the surest way to do that
>>> would be through the UI.  That might be impractical if you have anything
>>> more than 50 records (or less depending on how much perseverance you have).
>>> You could always use SQL to delete resource instances based on the uuid,
>>> which should cascade delete the tiles as well.  This will still leave
>>> traces of the resource instances in the edit log table (which you could
>>> also delete if you wish). Resource-to-resrouce relationships could also be
>>> deleted the same way.
>>>
>>> I will caveat all this by saying that I haven't tested any of this and
>>> you should most definitely back up your database before you attempt to
>>> delete anything via SQL.
>>>
>>> If you do delete resources via SQL, then you'll need to reindex the data
>>> in Elasticsearch for which there is a command
>>> python manange.py es index_database
>>>
>>> As for the issue with reports showing the uuid of the relationshi

[Arches] Re: Programmatic management of resources?

2020-02-18 Thread Alexei Peters
Hi David,
There isn't a baked in "grep"-like command to do what you want but I've 
crafted a bit of sql that you might be able to run to retrieve resource 
instances based on node values.

SELECT t.tileid,
t.resourceinstanceid,
t.tiledata,
n.nodeid
FROM tiles t
LEFT JOIN nodes n ON t.nodegroupid = n.nodegroupid
WHERE 
(t.tiledata::json -> n.nodeid::text)::text = '12'

In this case you'd replace "12" with the value you're interested in.  This 
won't work for geometry nodes but should work for the majority of other 
datatypes.

As for deleting the resources once identified, the surest way to do that 
would be through the UI.  That might be impractical if you have anything 
more than 50 records (or less depending on how much perseverance you have).
You could always use SQL to delete resource instances based on the uuid, 
which should cascade delete the tiles as well.  This will still leave 
traces of the resource instances in the edit log table (which you could 
also delete if you wish). Resource-to-resrouce relationships could also be 
deleted the same way.

I will caveat all this by saying that I haven't tested any of this and you 
should most definitely back up your database before you attempt to delete 
anything via SQL.

If you do delete resources via SQL, then you'll need to reindex the data in 
Elasticsearch for which there is a command
python manange.py es index_database

As for the issue with reports showing the uuid of the relationship rather 
than the text, that might be something that could be fixed the default 
report template.
Hope that helps!

Cheers,
Alexei

On Tuesday, February 11, 2020 at 3:12:54 PM UTC-8, David Osborne wrote:
>
> It seems I've inadvertently duplicated some resource records by 
> accidentally assigning them new uuids before loading from CSVs, so instead 
> of overwriting existing records, duplicates were created.
>
> I was wondering if anyone had developed any 'grep'-like command-line 
> utilities that perhaps returned uuids for resources where, say, a node 
> contains a particular value? If there were also a command to delete 
> resources given their uuid, that would help to remove the duplicate 
> records. If nothing like this exists, is there existing Python code in the 
> codebase which would make a good starting point? We're still on Arches 
> 4.4.2.
>
> A related question is whether it's possible to delete resource-to-resource 
> relationship records? They can obviously be loaded from CSV but there's 
> nothing documented which can remove them. What happens to these links when 
> one or more of the associated resource records are deleted?
>
> Finally, I've always been puzzled that in our resource reports, related 
> resources are followed by the uuid for the relationship 
> (----0007), rather than the CIDOC-CRM property 
> phrase ("is-related-to"or "refers-to", I forget which), although I see that 
> Lincoln's Arcade has the almost equally obscure URL for CRM property P67.
>
> Cheers
> 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/1b2b537e-449b-46b5-ae00-e023be820de4%40googlegroups.com.


[Arches] Arches v5.0 released (now using Python 3!)

2020-01-13 Thread Alexei Peters
The Arches team is happy to announce the release of v5.0 
This is a major release of Arches and it will require several updates to 
the dependencies upon which Arches relies.

To upgrade from a previous version please review the "Upgrading Arches" 
section of the release notes for v5.0 
 
in 
its entirety before you begin the upgrade process.

Here some of the release highlights:

   - Dependency Upgrades - Arches now uses:
  - Python 3.7
  - Django 2.2
  - Elasticsearch 7.4
  - Postgres 12
  - PostGIS 3
   - Task Management: Arches can now be configured to delegate background 
   tasks using Celery
   - Notifications: Arches can notify users when a task is complete and 
   developers can add custom notifications
   - Search Export: Users can export search results to CSV or shapefile 
   formats.
   - Search Components: Developers can now override search components to 
   customize the search interface, or add their own search components
   - Package Ontologies: Ontologies can now be loaded from a package
   - The default ontology has been removed to better accommodate instances 
   without ontologies or custom ontologies
   - Workflows: Developers can design workflows to simplify data management 
   operations for their users
   - The tile server (TileStache) has been removed in favor of storing 
   vector tiles directly in Postgres
   - A grouping card component has been added to cards into a single card
   - A map component has been added to manage multiple geometry nodes in a 
   single map interface.
   - The map widget has been upgraded with an improved interface
   - Custom indexes have been added to allow developers to add their own 
   indexes

As always the documentation can be found at >

-- 
-- 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/dda49ada-6306-4cc4-8a6e-07576e66aebd%40googlegroups.com.


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

2019-10-07 Thread Alexei Peters
ecute_sql(chunked_fetch=self.chunked_fetch)
>
>   File
> "c:\obap\env4.1.1\lib\site-packages\django\db\models\sql\compiler.py", line
> 899, in execute_sql
>
> raise original_exception
>
> django.db.utils.DatabaseError: out of memory for query result
>
>
>
> Thank you
>
>
>
> Tom Shewring
>
> GIS Systems Developer
>
> IMT Development Centre
>
> 07748 182134
>
>
>
> IMT Development and Programmes:  Together, we enable the celebration of
> England’s historic environment by empowering our customers and the public
> through technology and innovation.
>
>
>
> *From:* Cyrus Hiatt [mailto:cyrusnhi...@gmail.com]
> *Sent:* 04 October 2019 01:28
> *To:* Adam Cox
> *Cc:* Alexei Peters; Shewring, Tom; Arches Project
> *Subject:* Re: [Arches] Upgrading to a specific version of Arches - 4.4.1
> (not the latest 4.4.2 version)
>
>
>
> 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).
&

Re: [Arches] Re: Error Exporting Business Data from Arches 4.4.2

2019-10-04 Thread Alexei Peters
Sounds like you're on track Martha!  I'm glad we could help.
-Alexei

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


On Fri, Oct 4, 2019 at 9:56 PM Martha S  wrote:

> That worked, Adam,
>
> I now have what I need to put together my select statement. I now "get"
> the database to a much greater extent than before.
>
> Thanks again,
> Martha
>
> On Wednesday, October 2, 2019 at 10:21:35 PM UTC-7, Martha S wrote:
>>
>> Thanks, Adam,
>>
>> That should get me the last bit of the way.
>>
>> Martha
>>
>>
>>
>> On Wednesday, October 2, 2019 at 4:49:01 PM UTC-7, Adam Lodge wrote:
>>>
>>> Martha,
>>>
>>> I wish I could help with understanding why json export is working and
>>> csv isn’t.  Unfortunately, I can’t.  That said, toward working with your
>>> json output, you can identify the uuid of nodes/fields that store geometry
>>> with this sql:
>>>
>>> select
>>> b.name as model_name,
>>> a.name as node_name,
>>> a.nodeid
>>> FROM  nodes a
>>> join graphs b on a.graphid = b.graphid
>>> where
>>> datatype = 'geojson-feature-collection'
>>> order by b.name, a.name
>>>
>>> With that information, you can search for that uuid in your json to
>>> isolate where geometry is stored in the json.
>>>
>>> ---
>>> Adam Lodge
>>> Farallon Geographics
>>>
>>>
>>> On Oct 2, 2019, at 4:24 PM, Martha S  wrote:
>>>
>>> One more bit of information: I was able to export the business data to
>>> json. Naturally, I did not find '|' in the resulting file.
>>>
>>> If this export includes geographies (or lack thereof, which is what I'm
>>> really after) for this resource model, I might be able to query what I need
>>> based on the tools you have already provided me here and export that to CSV.
>>>
>>> I'm still interested in any further guidance you might offer regarding
>>> my inability to export business data to csv, even as I pursue this new
>>> avenue.
>>>
>>> Thanks,
>>> Martha
>>>
>>>
>>> On Wednesday, October 2, 2019 at 3:37:45 PM UTC-7, Martha S wrote:

 Alas, Gentlemen, neither effort returned anything. In PGADMIN4, I ran
 both of the following with no results returned:

 SELECT

 a.resourceinstanceid,

 b.name as card_name

 FROM tiles a

 JOIN cards b on a.nodegroupid = b.nodegroupid

 WHERE 1=1

  and tiledata::text like '%|%'


 set standard_conforming_strings=on;

 SELECT

 a.resourceinstanceid,

 b.name as card_name

 FROM tiles a

 JOIN cards b on a.nodegroupid = b.nodegroupid

 WHERE 1=1

  and tiledata::text like E'%xa6%'


 In the python shell I ran the following with no results returned:


 from arches.app.models.tile import Tile
 tiles = Tile.objects.all()
 for tile in tiles:

   for value in tile.data.values():

 if isinstance(value, unicode):
   if "|" in value:
 print tile.resourceinstance_id


 At least you are agreed, there is no there there. Just for grins, I
 reran the export business data command and got the same error as shown in
 the first post in this thread. As a final effort, I ran the following and
 got more than 10,000 results, since that's all that stayed in the terminal
 memory:


 from arches.app.models.tile import Tile

 tiles = Tile.objects.all()

 for tile in tiles:

   for value in tile.data.values():

 if isinstance(value, unicode):

   print tile.resourceinstance_id, value


 Below is a partial list of the results. I don't see anything suspicious
 in the values, but I see that these few resources have multiple entries in
 this list. I don't know if that's because this list list is a complete dump
 of all 1M+ cards or if there's something to see here. I ran reports on a
 few of these and found nothing amiss.

 fd44f81a-14b1-41f9-b33a-d66c66a960ec
 33595d18-c941-4a4b-91e8-0fa08e229c4d
 52c5f05e-1827-4b06-909b-9a66ff3e6e95
 3db588f4-2384-4cbe-b429-5c63630b9b9d
 52c5f05e-1827-4b06-909b-9a66ff3e6e95 138B17725
 52c5f05e-1827-4b06-909b-9a66ff3e6e95
 08130495-9729-46fa-8a3b-2dfa97286ab9
 52c5f05e-1827-4b06-909b-9a66ff3e6e95 679152
 fd44f81a-14b1-41f9-b33a-d66c66a960ec
 0997ad7a-ad94-43b3-b662-8945c6c1b10e
 fd44f81a-14b1-41f9-b33a-d66c66a960ec
 fd44f81a-14b1-41f9-b33a-d66c66a960ec
 52c5f05e-1827-4b06-909b-9a66ff3e6e95
 f5d15b7d-da92-4b63-82a1-8632b361e860
 fd44f81a-14b1-41f9-b33a-d66c66a960ec
 3db588f4-2384-4cbe-b429-5c63630b9b9d
 fd44f81a-14b1-41f9-b33a-d66c66a960ec 117B181   568
 99b6ae9f-a061-46f4-b69c-f6f4b43ad69a 6137 E GARRISON DR
 99b6ae9f-a061-46f4-b69c-f6f4b43ad69a
 209c5206-eb2f-406e-b42e-288f84680a4a
 52c5f05e-1827-4b06-909b-9a66ff3e6e95 411 N SPAULDING AVE
 52c5f05e-1827-4b06-909b-9a66ff3e6e95
 209c5206-eb2f-406e-b42e-288f84680a4a
 

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.


Re: [Arches] Re: Error Exporting Business Data from Arches 4.4.2

2019-10-02 Thread Alexei Peters
Hi Martha,
I think you're looking for the wrong character.  In your initial post the
stack trace indicated the "broken bar" character.
see http://www.fileformat.info/info/unicode/char/a6/index.htm

Try searching for that character instead.
Cheers,
Alexei


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


On Wed, Oct 2, 2019 at 4:49 PM Adam Lodge  wrote:

> Martha,
>
> I wish I could help with understanding why json export is working and csv
> isn’t.  Unfortunately, I can’t.  That said, toward working with your json
> output, you can identify the uuid of nodes/fields that store geometry with
> this sql:
>
> select
> b.name as model_name,
> a.name as node_name,
> a.nodeid
> FROM  nodes a
> join graphs b on a.graphid = b.graphid
> where
> datatype = 'geojson-feature-collection'
> order by b.name, a.name
>
> With that information, you can search for that uuid in your json to
> isolate where geometry is stored in the json.
>
> ---
> Adam Lodge
> Farallon Geographics
>
>
> On Oct 2, 2019, at 4:24 PM, Martha S  wrote:
>
> One more bit of information: I was able to export the business data to
> json. Naturally, I did not find '|' in the resulting file.
>
> If this export includes geographies (or lack thereof, which is what I'm
> really after) for this resource model, I might be able to query what I need
> based on the tools you have already provided me here and export that to CSV.
>
> I'm still interested in any further guidance you might offer regarding my
> inability to export business data to csv, even as I pursue this new avenue.
>
> Thanks,
> Martha
>
>
> On Wednesday, October 2, 2019 at 3:37:45 PM UTC-7, Martha S wrote:
>>
>> Alas, Gentlemen, neither effort returned anything. In PGADMIN4, I ran
>> both of the following with no results returned:
>>
>> SELECT
>>
>> a.resourceinstanceid,
>>
>> b.name as card_name
>>
>> FROM tiles a
>>
>> JOIN cards b on a.nodegroupid = b.nodegroupid
>>
>> WHERE 1=1
>>
>>  and tiledata::text like '%|%'
>>
>>
>> set standard_conforming_strings=on;
>>
>> SELECT
>>
>> a.resourceinstanceid,
>>
>> b.name as card_name
>>
>> FROM tiles a
>>
>> JOIN cards b on a.nodegroupid = b.nodegroupid
>>
>> WHERE 1=1
>>
>>  and tiledata::text like E'%xa6%'
>>
>>
>> In the python shell I ran the following with no results returned:
>>
>>
>> from arches.app.models.tile import Tile
>> tiles = Tile.objects.all()
>> for tile in tiles:
>>
>>   for value in tile.data.values():
>>
>> if isinstance(value, unicode):
>>   if "|" in value:
>> print tile.resourceinstance_id
>>
>>
>> At least you are agreed, there is no there there. Just for grins, I reran
>> the export business data command and got the same error as shown in the
>> first post in this thread. As a final effort, I ran the following and got
>> more than 10,000 results, since that's all that stayed in the terminal
>> memory:
>>
>>
>> from arches.app.models.tile import Tile
>>
>> tiles = Tile.objects.all()
>>
>> for tile in tiles:
>>
>>   for value in tile.data.values():
>>
>> if isinstance(value, unicode):
>>
>>   print tile.resourceinstance_id, value
>>
>>
>> Below is a partial list of the results. I don't see anything suspicious
>> in the values, but I see that these few resources have multiple entries in
>> this list. I don't know if that's because this list list is a complete dump
>> of all 1M+ cards or if there's something to see here. I ran reports on a
>> few of these and found nothing amiss.
>>
>> fd44f81a-14b1-41f9-b33a-d66c66a960ec 33595d18-c941-4a4b-91e8-0fa08e229c4d
>> 52c5f05e-1827-4b06-909b-9a66ff3e6e95 3db588f4-2384-4cbe-b429-5c63630b9b9d
>> 52c5f05e-1827-4b06-909b-9a66ff3e6e95 138B17725
>> 52c5f05e-1827-4b06-909b-9a66ff3e6e95 08130495-9729-46fa-8a3b-2dfa97286ab9
>> 52c5f05e-1827-4b06-909b-9a66ff3e6e95 679152
>> fd44f81a-14b1-41f9-b33a-d66c66a960ec 0997ad7a-ad94-43b3-b662-8945c6c1b10e
>> fd44f81a-14b1-41f9-b33a-d66c66a960ec fd44f81a-14b1-41f9-b33a-d66c66a960ec
>> 52c5f05e-1827-4b06-909b-9a66ff3e6e95 f5d15b7d-da92-4b63-82a1-8632b361e860
>> fd44f81a-14b1-41f9-b33a-d66c66a960ec 3db588f4-2384-4cbe-b429-5c63630b9b9d
>> fd44f81a-14b1-41f9-b33a-d66c66a960ec 117B181   568
>> 99b6ae9f-a061-46f4-b69c-f6f4b43ad69a 6137 E GARRISON DR
>> 99b6ae9f-a061-46f4-b69c-f6f4b43ad69a 209c5206-eb2f-406e-b42e-288f84680a4a
>> 52c5f05e-1827-4b06-909b-9a66ff3e6e95 411 N SPAULDING AVE
>> 52c5f05e-1827-4b06-909b-9a66ff3e6e95 209c5206-eb2f-406e-b42e-288f84680a4a
>> fd44f81a-14b1-41f9-b33a-d66c66a960ec 3939 S URSULA AVE
>> fd44f81a-14b1-41f9-b33a-d66c66a960ec 209c5206-eb2f-406e-b42e-288f84680a4a
>> 29a5a1ce-bfd1-4f8a-90a8-41e76b337558 2608 S ORCHARD AVE
>> 29a5a1ce-bfd1-4f8a-90a8-41e76b337558 ad7fce52-1185-4ad8-bc65-e100de19be96
>> 52c5f05e-1827-4b06-909b-9a66ff3e6e95 Orange Grove Avenue-Gardner Street
>> Multi-Family Residential Historic District - Contributor
>> 52c5f05e-1827-4b06-909b-9a66ff3e6e95 efd0fd4d-ebcf-4e7d-801f-0dc036a0c1b3
>> fd44f81a-14b1-41f9-b33a-d66c66a960ec Baldwin Plaza-Sunset Fields 

Re: [Arches] Error Exporting Business Data from Arches 4.4.2

2019-10-01 Thread Alexei Peters
Hi Martha,
It looks like somewhere you have a "broken bar" character in your data (
https://www.fileformat.info/info/unicode/char/00a6/index.htm)

If you can find it and remove it then that might solve the problem.
Hope that points you in the right direction.
Cheers,
Alexei

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


On Fri, Sep 27, 2019 at 5:14 PM Martha S  wrote:

> I am trying to export all the data for a particular resource model to CSV
> for review and modification and ran into an error during the process -- 
> UnicodeEncodeError:
> 'ascii' codec can't encode character u'\xa6' in position 51: ordinal not in
> range(128)
>
> *My command*
> python manage.py packages -o export_business_data -d
> '/hpladata/Projects/Downloads/Historic District Mapping Files' -f 'csv'
> -c '/hpladata/Projects/Downloads/Historic District Mapping Files/Historic
> District.mapping'
>
> *Here's the full error dump*
> operation: export_business_data
> Traceback (most recent call last):
>   File "manage.py", line 29, in 
> execute_from_command_line(sys.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
> line 364, in execute_from_command_line
> utility.execute()
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
> line 356, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py",
> line 283, in run_from_argv
> self.execute(*args, **cmd_options)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py",
> line 330, in execute
> output = self.handle(*args, **options)
>   File "/Projects/prod/arches/arches/management/commands/packages.py",
> line 190, in handle
> self.export_business_data(options['dest_dir'], options['format'],
> options['config_file'], options['graphs'], options['single_file'])
>   File "/Projects/prod/arches/arches/management/commands/packages.py",
> line 770, in export_business_data
> data = resource_exporter.export(graph_id=graph,
> resourceinstanceids=None)
>   File 
> "/Projects/prod/arches/arches/app/utils/data_management/resources/exporter.py",
> line 37, in export
> resources = self.writer.write_resources(graph_id=graph_id,
> resourceinstanceids=resourceinstanceids)
>   File 
> "/Projects/prod/arches/arches/app/utils/data_management/resources/formats/csvfile.py",
> line 194, in write_resources
> csvs_for_export = csvs_for_export + self.write_resource_relations(
> file_name=self.file_name)
>   File 
> "/Projects/prod/arches/arches/app/utils/data_management/resources/formats/csvfile.py",
> line 215, in write_resource_relations
> csvwriter.writerow({k:str(v) for k,v in relation.items()})
>   File 
> "/Projects/prod/arches/arches/app/utils/data_management/resources/formats/csvfile.py",
> line 215, in 
> csvwriter.writerow({k:str(v) for k,v in relation.items()})
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xa6' in
> position 51: ordinal not in range(128)
>
> Any suggestions?
>
> Thanks,
> Martha
>
> --
> -- 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/d6d3e95f-b82c-4815-a40b-0e3805594ffe%40googlegroups.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 
https://groups.google.com/d/msgid/archesproject/CA%2BZLqy_TEmRTskSV1biCJPxaDdXyNQePfEe4BKn%2BxeKiXxqoqw%40mail.gmail.com.


Re: [Arches] Arches v4 Windows Installation with pip

2019-07-16 Thread Alexei Peters
Hi Anthony,
I just did a quick check and something strange seems to be happening with
your install.  The line of code you're hitting shouldn't even be run as far
as I can tell.
Maybe Adam Cox can lend his thoughts to this.
Cheers,
Alexei

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


On Tue, Jul 16, 2019 at 12:05 PM Anthony Bronzo  wrote:

> Hi,
> I'm having the same error 2 trying to get Arches 4.4.2 onto my Windows 10
> machine. It sounds like Arches doesn't use Shapely anymore so I don't think
> its that, any ideas?
>
> This is what happens when I run "pip install arches --no-binary :all:" in
> my virtual environment:
>
> Collecting arches
>   Using cached
> https://files.pythonhosted.org/packages/2c/6d/eff4016832a7cf17508b887711d105d36d809a1ac4a0c88e3e9166b22b3a/arches-4.4.2.tar.gz
> ERROR: Complete output from command python setup.py egg_info:
> ERROR: Traceback (most recent call last):
>   File "", line 1, in 
>   File
> "C:\Users\funb4\AppData\Local\Temp\pip-install-xsd9_7_d\arches\setup.py",
> line 15, in 
> version = __import__('arches').__version__
>   File
> "C:\Users\funb4\AppData\Local\Temp\pip-install-xsd9_7_d\arches\arches\__init__.py",
> line 1, in 
> from arches.setup import get_version
>   File
> "C:\Users\funb4\AppData\Local\Temp\pip-install-xsd9_7_d\arches\arches\setup.py",
> line 84
> print "Downloading: %s Bytes: %s" % (file_name, file_size)
> ^
> SyntaxError: invalid syntax
> 
> ERROR: Command "python setup.py egg_info" failed with error code 1 in
> C:\Users\funb4\AppData\Local\Temp\pip-install-xsd9_7_d\arches\
>
> Thanks,
> Anthony
>
> On Wednesday, April 26, 2017 at 8:26:48 PM UTC-7, Adam Cox wrote:
>>
>> Hi Susan, Cyrus is right, error 1 is ok, and it does sound like Shapely
>> is the culprit here. As noted here
>> 
>>  (though
>> it should be noted in other parts of the documentation as well), you should
>> install Shapely in after creating your virtual environment, but before pip
>> installing Arches into it. Try that out and let us know how it goes.
>>
>> Adam
>>
>>
>> On Wed, Apr 26, 2017 at 7:13 PM, Cyrus Hiatt  wrote:
>>
>>> Hi Susan -
>>>
>>> I think the installation will proceed despite Error 1.
>>>
>>> Regarding Error 2 - Did you install the dependencies using the OSGeo4W
>>> installer? If so, is 'C:\OSGeo4W64\bin' added to your systems PATH
>>> environment variable?
>>>
>>> If your PATH is correct, perhaps the issue is with the Shapely
>>> installation itself?  It looks like you need to install that prior to
>>> installing Arches on Windows.  If you didn't catch it in the docs, there is
>>> a short section on installing Shapely for Windows:
>>> https://github.com/archesproject/arches/wiki/Installing-Dependencies-on-Windows
>>>
>>> - Cyrus
>>>
>>>
>>>
>>>
>>> On Wed, Apr 26, 2017 at 3:56 PM, Susan Penacho 
>>> wrote:
>>>
 Hi,
 After I ran into issues trying to install arches on my windows 10
 machine with the repository, I switched to the pip installation using the
 online documentation (
 https://arches4.readthedocs.io/en/latest/installation/#installing-arches
 ).

 Using the pip installation steps on the installation documentation I
 was able to do steps 1 to 3 and create the virtual environment. When I
 tried to install arches in step 4 I got back two errors:

 Error 1:

   Requirement already up-to-date: six>=1.6.0 in
 c:\projects\env\lib\site-packages (from setuptools)

   Requirement already up-to-date: pyparsing in
 c:\projects\env\lib\site-packages (from packaging>=16.8->setuptools)

   Could not open requirements file: [Errno 2] No such file or
 directory:
 'c:\\projects\\env\\Lib\\site-packages\\arches\\install\\requirements.txt'

   error: [Errno 2] No such file or directory:
 'c:\\projects\\env\\Lib\\site-packages\\arches\\install\\django_overrides\\admin.py'

   

   Failed building wheel for arches

   Running setup.py clean for arches

 Failed to build arches

 Installing collected packages: arches

   Running setup.py install for arches ... /


 Error2:

 Collecting tilestache (from -r
 c:\projects\env\Lib\site-packages\arches\install\requirements.txt (line 
 12))

   Using cached TileStache-1.51.6-py2-none-any.whl

 Collecting shapely (from -r
 c:\projects\env\Lib\site-packages\arches\install\requirements.txt (line 
 13))

   Downloading Shapely-1.5.17.tar.gz (180kB)

 Complete output from command python setup.py egg_info:

 Traceback (most recent call last):

   File "", line 1, in 


Re: [Arches] How to change the application language?

2019-06-14 Thread Alexei Peters
Sorry that I couldn't be more helpful.  If I think of anything else
I'll let you know.
Cheers,
Alexei

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


On Fri, Jun 14, 2019 at 1:02 AM Marlene Gilles 
wrote:

> Hi Alexei,
>
> The answers are yes to all your questions :
> - Yes it is working correctly when using the 'en-US' language code (I
> tested removing the 'en' translated folder and in this case it takes a
> default english, if I add the 'en' translation folder with spanish or
> french translations in it, everything is working the same and displaying
> the translations).
> - When chosing another language code with its associated translation
> folder, the search page is starting to load but the errors I sent last time
> appears. I do not understand why in this configuration, the scripts are not
> found. I also tried to move them but the result is the same. I wondered if
> I did correctly all the steps but it is working with the 'en' (and not a
> default folder), therefore I am really stuck too.
> - Yes I cut the screenshot but nothing is missing.
>
> Thanks for your time. I am going to investigate a litle bit more. I think
> I can fix one language per project, thus I can bypass the problem putting
> all my translations in the 'en' folder. I let you know if I find something
> new.
>
> Cheers,
> Marlene
>
> Le mercredi 12 juin 2019 20:24:47 UTC+2, Alexei Peters a écrit :
>>
>> Hi Marlene,
>> I'm really stuck as to what is going on here.  Just to confirm, the
>> search page loads and runs correctly (you can search for resources without
>> issue) when using the 'en-US' language code?
>> For some reason it looks like the 2 scripts that the base page requires
>> (via require.js) aren't loading properly, but I'm unsure why it seems to
>> work with the 'en-US' language code.  I wouldn't think that would have any
>> affect on how the base page loads at all.
>> The screen shot you sent seems to be truncated.  Is that all that there
>> was when loading the page?
>> Cheers,
>> Alexei
>>
>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>
>>
>> On Tue, Jun 11, 2019 at 12:54 AM Marlene Gilles 
>> wrote:
>>
>>> Hi Alexei and Alina,
>>>
>>> I did not found a solution yet, other than entering the translations
>>> inside the  en/LC_MESSAGES/django.po file.
>>> I enclose the errors I obtained (search page is loading when choosing
>>> en-US language_code despite the error message on /media/img/Workflow.png).
>>>
>>> Cheers,
>>> Marlène
>>>
>>> Le lundi 10 juin 2019 19:50:02 UTC+2, Alexei Peters a écrit :
>>>>
>>>> Hi Marlene,
>>>> Can you post a copy of any errors you're seeing, either directly from
>>>> the search page, or from the console.
>>>> Cheers,
>>>> Alexei
>>>>
>>>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>>>
>>>>
>>>> On Wed, Jun 5, 2019 at 6:18 AM Marlene Gilles 
>>>> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I would like to change the language of the application (v4.4.1) by
>>>>> first setting it manually (without using LocaleMiddleware even if it is my
>>>>> ultimate goal).
>>>>>
>>>>> I have modified the settings_local.py file:
>>>>> LANGUAGE_CODE='fr-FR''.
>>>>> LOCALE_PATH=('path_to_my_locale_folder',)
>>>>>
>>>>> I created the "locale" folder and I ran:
>>>>> django-admin.py makemessages ...
>>>>> I added the translations and then run:
>>>>> django-admin.py compilemessages
>>>>>
>>>>> I can see the change on the home page but when I click on the
>>>>> equivalent of "search", the page fails to load. This only works when I
>>>>> select the language in-** (with translation or not add in
>>>>> en/LC_MESSAGES/django.po). Even a copy and paste of the folder by just
>>>>> changing its name to fr instead of en is not working. I need an access to
>>>>> several languages therefore I cannot add my translation directely in the
>>>>> en/LC_MESSAGES/django.po file.
>>>>> I obtain an error saying that /nifty.js and /views/search.js are not
>>>>> found.
>>>>>
>>>>> I probably forgot a step, can someone enlighten me? I found an old
>>>>> post from 2016 but I'm not sure it's

Re: [Arches] How to change the application language?

2019-06-12 Thread Alexei Peters
Hi Marlene,
I'm really stuck as to what is going on here.  Just to confirm, the search
page loads and runs correctly (you can search for resources without issue)
when using the 'en-US' language code?
For some reason it looks like the 2 scripts that the base page requires
(via require.js) aren't loading properly, but I'm unsure why it seems to
work with the 'en-US' language code.  I wouldn't think that would have any
affect on how the base page loads at all.
The screen shot you sent seems to be truncated.  Is that all that there was
when loading the page?
Cheers,
Alexei

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


On Tue, Jun 11, 2019 at 12:54 AM Marlene Gilles 
wrote:

> Hi Alexei and Alina,
>
> I did not found a solution yet, other than entering the translations
> inside the  en/LC_MESSAGES/django.po file.
> I enclose the errors I obtained (search page is loading when choosing
> en-US language_code despite the error message on /media/img/Workflow.png).
>
> Cheers,
> Marlène
>
> Le lundi 10 juin 2019 19:50:02 UTC+2, Alexei Peters a écrit :
>>
>> Hi Marlene,
>> Can you post a copy of any errors you're seeing, either directly from the
>> search page, or from the console.
>> Cheers,
>> Alexei
>>
>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>
>>
>> On Wed, Jun 5, 2019 at 6:18 AM Marlene Gilles 
>> wrote:
>>
>>> Hello,
>>>
>>> I would like to change the language of the application (v4.4.1) by first
>>> setting it manually (without using LocaleMiddleware even if it is my
>>> ultimate goal).
>>>
>>> I have modified the settings_local.py file:
>>> LANGUAGE_CODE='fr-FR''.
>>> LOCALE_PATH=('path_to_my_locale_folder',)
>>>
>>> I created the "locale" folder and I ran:
>>> django-admin.py makemessages ...
>>> I added the translations and then run:
>>> django-admin.py compilemessages
>>>
>>> I can see the change on the home page but when I click on the equivalent
>>> of "search", the page fails to load. This only works when I select the
>>> language in-** (with translation or not add in en/LC_MESSAGES/django.po).
>>> Even a copy and paste of the folder by just changing its name to fr instead
>>> of en is not working. I need an access to several languages therefore I
>>> cannot add my translation directely in the en/LC_MESSAGES/django.po file.
>>> I obtain an error saying that /nifty.js and /views/search.js are not
>>> found.
>>>
>>> I probably forgot a step, can someone enlighten me? I found an old post
>>> from 2016 but I'm not sure it's up to date and the documentation is no
>>> longer accessible.
>>>
>>> Regards,
>>> Marlene
>>>
>>> --
>>> -- 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.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/archesproject/6d197fec-9e56-4c7a-b77a-0821cfd8ad85%40googlegroups.com
>>> <https://groups.google.com/d/msgid/archesproject/6d197fec-9e56-4c7a-b77a-0821cfd8ad85%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
> -- 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/b7f84d43-1925-49c4-b9c8-9ba169ec7927%40googlegroups.com
> <https://groups.google.com/d/msgid/archesproject/b7f84d43-1925-49c4-b9c8-9ba169ec7927%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
-- 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%2BZLqy9mSjqbG6wpUSMa3O7jD-FQ%2BjyTNkAygt_7xoQevt4xjA%40mail.gmail.com.


Re: [Arches] How to change the application language?

2019-06-10 Thread Alexei Peters
Hi Marlene,
Can you post a copy of any errors you're seeing, either directly from the
search page, or from the console.
Cheers,
Alexei

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


On Wed, Jun 5, 2019 at 6:18 AM Marlene Gilles 
wrote:

> Hello,
>
> I would like to change the language of the application (v4.4.1) by first
> setting it manually (without using LocaleMiddleware even if it is my
> ultimate goal).
>
> I have modified the settings_local.py file:
> LANGUAGE_CODE='fr-FR''.
> LOCALE_PATH=('path_to_my_locale_folder',)
>
> I created the "locale" folder and I ran:
> django-admin.py makemessages ...
> I added the translations and then run:
> django-admin.py compilemessages
>
> I can see the change on the home page but when I click on the equivalent
> of "search", the page fails to load. This only works when I select the
> language in-** (with translation or not add in en/LC_MESSAGES/django.po).
> Even a copy and paste of the folder by just changing its name to fr instead
> of en is not working. I need an access to several languages therefore I
> cannot add my translation directely in the en/LC_MESSAGES/django.po file.
> I obtain an error saying that /nifty.js and /views/search.js are not found.
>
> I probably forgot a step, can someone enlighten me? I found an old post
> from 2016 but I'm not sure it's up to date and the documentation is no
> longer accessible.
>
> Regards,
> Marlene
>
> --
> -- 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/6d197fec-9e56-4c7a-b77a-0821cfd8ad85%40googlegroups.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 
https://groups.google.com/d/msgid/archesproject/CA%2BZLqy_esawA0y3%2Bh%2BhzwbqUk6dahn_r%2BkheXeeK%2BcthfOurGw%40mail.gmail.com.


Re: [Arches] Re: Falling at first hurdle, then the next, then the next.

2019-05-10 Thread Alexei Peters
Thanks Martha for mentioning that!  We should make sure to add that bit of
information to our documentation.

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


On Thu, May 9, 2019 at 9:20 AM Martha S  wrote:

> Researcher,
>
> I hope you've conquered your install difficulties, but I have one more bit
> of information that might help. Two of us who were doing 4.4.1 installs on
> fresh machines ran into similar issues with missing modules. Colin Wu
> shared his discovery that pip needs to be upgraded both before you enter
> your virtual environment and again after. That worked for me and the
> install went very smoothly after that.
>
> Hope that helps,
> Martha
>
>
>
> On Monday, April 15, 2019 at 6:20:54 AM UTC-7, Researcher wrote:
>>
>> Hi Dennis and Adam (and all),
>> Thanks for your responses and I apologise if I've come across as
>> unproductive or critical, it was not my intention and I did not intend to
>> cause any offense - I do appreciate that many people have used Arches well,
>> it is *amazing *that it is offered free and that these issues do seem to
>> be specific to my system.
>> Looking back, I can see now that some of my comments could have been
>> interpreted in a way other than the jest in which they were meant - I have
>> a sarcastic nature, but it's so often lost in text and I'll keep it in
>> check.
>> I do appreciate the time and effort that people are going to in order to
>> help me and others (often in their own time) and I imagine there are now
>> similar levels of frustration around albeit for very different reasons.
>>
>> I've had some very encouraging messages from several members of the
>> community and I'm glad to see that Arches is a popular platform used by
>> many. I know I am operating way out of my level of expertise but I was
>> hoping that we could still pursue Arches with appropriate support, but I
>> accept that it may just be the case that we need to look elsewhere for our
>> particular circumstances. I'll spend some more time this week seeing if I
>> can get anywhere with it (and seeing what our IT support can do). I'd
>> appreciate any more assistance that the community can offer along the way.
>>
>> Thanks,
>>
>>
>> On Saturday, April 13, 2019 at 6:01:13 PM UTC-3, Dennis Wuthrich wrote:
>>>
>>> Hello Researcher.
>>>
>>> I'm sorry that you're having such a difficult time installing Arches.
>>> And I get that it's very frustrating when you keep seeing errors at each
>>> step.  However, please keep a few things in mind:
>>>
>>> 1. The Arches development team is not trying to make it hard for you to
>>> use the software.  However, it is sophisticated technology and we assume
>>> that people installing Arches have appropriate IT experience
>>> 2. There are many reasons your specific computer might not have
>>> installed the software properly.  That is, the problem might be your
>>> machine configuration, not necessarily Arches
>>> 3. Arches has been installed successfully many times by many people all
>>> over the world.  It can be done!
>>>
>>> I've heard from several members of the Arches community, and there is a
>>> concern that the tone in your posts requesting help is a bit off-putting
>>> and not in line with the Arches community's guidelines.  Please have a look
>>> at https://www.archesproject.org/code-of-conduct/ to review our code of
>>> conduct.  Many of the people trying to help you have invested a lot of
>>> effort in building the software, and many volunteer their time to help
>>> community members like you who ask for assistance.
>>>
>>> Cheers,
>>>
>>> Dennis
>>>
>>> On Friday, April 12, 2019 at 8:13:54 AM UTC-7, Researcher wrote:

 Latest update:
 I've been messing around again and managed to get back to the 'Arches
 installed stage' and even created a project (step 5), and lo and behold
 step 6 has also thrown up an issue.
 Firstly, I don't understand what *any* of this means:
 "Before you continue, you may need to open
 my_project\my_project\settings_local.py and change some
 environment-specific settings.

-

Depending on your Postgres/PostGIS installation, you may need to
uncomment the DATABASES section and change the username and password, as
well as the name of your PostGIS template database. If you will have
multiple Arches projects using the same Postgres server, make sure to
change the database name here as well."

BUT I've tried the second part of step 6 and come up with this now
too:

 (ENV) C:\Users\FIMNT>GDAL_LIBRARY_PATH = "C:\OSGeo4W64\bin\gdal204.dll"
 'GDAL_LIBRARY_PATH' is not recognized as an internal or external
 command,
 operable program or batch file.

 Any more thoughts from anyone on this one, so I can get to stage 7 and
 see what new problems that has?
 (in simple/step-by-step terms, ideally)

 Thanks,

 On Wednesday, April 10, 2019 at 

Re: [Arches] External hyperlinks

2019-04-27 Thread Alexei Peters
Great!  I'm glad it worked.

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


On Sat, Apr 27, 2019 at 5:30 AM  wrote:

> Thanks Alexei,
>
> It worked, I was able to change the text to rich-text using the widget in
> the Resource Manager designer using the widget options.
>
> Chris
>
> On Monday, April 22, 2019 at 12:42:46 PM UTC-4, Alexei Peters wrote:
>>
>> Hi Christian,
>> The only widget we have right now that supports hyperlinks is the
>> rich-text widget.  That widget requires a string datatype and should allow
>> you to enter a hyperlink and have it be active.
>> Cheers,
>> Alexei
>>
>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>
>>
>> On Fri, Apr 19, 2019 at 6:17 AM  wrote:
>>
>>> Hello,
>>>
>>> My question relates to hyperlinks. I'd like to explore options adding
>>> HTML links to data we have on AWS using one of the following options:
>>>
>>> -By directly selecting the resource model (the name of the resource
>>> model would be the hyperlink).
>>> -In the description of the resource.
>>> -Other means in the report of the resource via the external identifier.
>>>
>>> Is this possible to create within Arches Designer? I tried to experiment
>>> by adding ***, but can't get the link to be active.
>>>
>>> Thanks,
>>>
>>> Christian
>>>
>>>
>>> --
>>> -- 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.
>>> 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.
>

-- 
-- 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.


Re: [Arches] External hyperlinks

2019-04-22 Thread Alexei Peters
Hi Christian,
The only widget we have right now that supports hyperlinks is the rich-text
widget.  That widget requires a string datatype and should allow you to
enter a hyperlink and have it be active.
Cheers,
Alexei

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


On Fri, Apr 19, 2019 at 6:17 AM  wrote:

> Hello,
>
> My question relates to hyperlinks. I'd like to explore options adding HTML
> links to data we have on AWS using one of the following options:
>
> -By directly selecting the resource model (the name of the resource model
> would be the hyperlink).
> -In the description of the resource.
> -Other means in the report of the resource via the external identifier.
>
> Is this possible to create within Arches Designer? I tried to experiment
> by adding ***, but can't get the link to be active.
>
> Thanks,
>
> Christian
>
>
> --
> -- 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.
>

-- 
-- 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.


Re: [Arches] Re: Error after changing map search area

2019-04-17 Thread Alexei Peters
I'm glad it worked David.  We should be able to get this fix in the next
micro release (4.4.2)
Cheers,
Alexei

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


On Wed, Apr 17, 2019 at 2:29 PM David Osborne <
daosborne.archaeol...@gmail.com> wrote:

> Hi Alexei
>
> Thank you, that worked perfectly. I edited the file, recompiled the .pyc
> and restarted Apache to pick it up and we have a working website again.
>
> We were planning to upgrade to 4.4.1 but we can wait until a permanent fix
> is developed.
>
> Many thanks,
> David
>
>
> On Wednesday, 17 April 2019 19:11:09 UTC+1, Alexei Peters wrote:
>>
>> Hi David,
>> I created a ticket for this issue here:
>> https://github.com/archesproject/arches/issues/4780
>>
>> In the mean time to get you past this bug you'll have to temporarily edit
>> one of the files found here on your system:
>>
>> /home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/arches/app/utils/context_processors.py
>>
>> Open the file and go to line 40.
>> You should see this line:
>>   default_center = None
>>
>> Replace that line with this:
>>   default_center = {'coordinates': [0,0]}
>>
>> Save the file.
>> At this point you should be able to access Arches again and change the
>> setting in the interface.
>> It won't be any harm to leave that file edited until a permanent fix is
>> applied.
>>
>> Hope this helps.
>> -Alexei
>>
>>
>> On Sunday, April 14, 2019 at 8:53:06 AM UTC-7, David Osborne wrote:
>>>
>>> We're seeing an error on our Arches 4.3.3 installation on an Ubuntu
>>> 16.04 server, following an attempt by a colleague to update the map search
>>> rectangle in the admin Settings web interface.
>>>
>>> When connecting to our Apache2 service, we now get the following error
>>>
>>>
>>> TypeError at /
>>>
>>> 'NoneType' object has no attribute '__getitem__'
>>>
>>> Request Method: GET
>>> Request URL: http://her.jerseyheritage.org/
>>> Django Version: 1.11.15
>>> Exception Type: TypeError
>>> Exception Value:
>>>
>>> 'NoneType' object has no attribute '__getitem__'
>>>
>>> Exception Location: 
>>> /home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/arches/app/utils/context_processors.py
>>> in map_info, line 43
>>> Python Executable: /home/ubuntu/Projects/ENV/bin/python
>>> Python Version: 2.7.12
>>> Python Path:
>>>
>>> ['/home/ubuntu/Projects/jersey_her',
>>>  '/home/ubuntu/Projects/ENV/lib/python2.7',
>>>  '/home/ubuntu/Projects/ENV/lib/python2.7/plat-x86_64-linux-gnu',
>>>  '/home/ubuntu/Projects/ENV/lib/python2.7/lib-tk',
>>>  '/home/ubuntu/Projects/ENV/lib/python2.7/lib-old',
>>>  '/home/ubuntu/Projects/ENV/lib/python2.7/lib-dynload',
>>>  '/usr/lib/python2.7',
>>>  '/usr/lib/python2.7/plat-x86_64-linux-gnu',
>>>  '/usr/lib/python2.7/lib-tk',
>>>  '/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages',
>>>  '/home/ubuntu/Projects/ENV/lib/python2.7/site-packages',
>>>  '/home/ubuntu/Projects/jersey_her/jersey_her']
>>>
>>>
>>> The Python traceback is in an attachment. The error in
>>> context_processors.py is in code which seems related to the search
>>> rectangle, as if Arches thinks the settings have been made but the values
>>> have been lost, whether in a file, or stored in the database, I don't know.
>>> Because of the error, we're unable to get into the Arches web interface to
>>> change the settings. I'm reluctant to reinstall everything so I'm hoping
>>> someone can suggest a manual reset.
>>>
>>> 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.
> 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.


[Arches] Re: Error after changing map search area

2019-04-17 Thread Alexei Peters
Hi David,
I created a ticket for this issue here: 
https://github.com/archesproject/arches/issues/4780

In the mean time to get you past this bug you'll have to temporarily edit 
one of the files found here on your system:
/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/arches/app/utils/context_processors.py

Open the file and go to line 40.
You should see this line:
  default_center = None

Replace that line with this:
  default_center = {'coordinates': [0,0]}

Save the file.
At this point you should be able to access Arches again and change the 
setting in the interface. 
It won't be any harm to leave that file edited until a permanent fix is 
applied.

Hope this helps.
-Alexei


On Sunday, April 14, 2019 at 8:53:06 AM UTC-7, David Osborne wrote:
>
> We're seeing an error on our Arches 4.3.3 installation on an Ubuntu 16.04 
> server, following an attempt by a colleague to update the map search 
> rectangle in the admin Settings web interface.
>
> When connecting to our Apache2 service, we now get the following error
>
>
> TypeError at / 
>
> 'NoneType' object has no attribute '__getitem__'
>
> Request Method: GET 
> Request URL: http://her.jerseyheritage.org/ 
> Django Version: 1.11.15 
> Exception Type: TypeError 
> Exception Value: 
>
> 'NoneType' object has no attribute '__getitem__'
>
> Exception Location: 
> /home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/arches/app/utils/context_processors.py
>  
> in map_info, line 43 
> Python Executable: /home/ubuntu/Projects/ENV/bin/python 
> Python Version: 2.7.12 
> Python Path: 
>
> ['/home/ubuntu/Projects/jersey_her',
>  '/home/ubuntu/Projects/ENV/lib/python2.7',
>  '/home/ubuntu/Projects/ENV/lib/python2.7/plat-x86_64-linux-gnu',
>  '/home/ubuntu/Projects/ENV/lib/python2.7/lib-tk',
>  '/home/ubuntu/Projects/ENV/lib/python2.7/lib-old',
>  '/home/ubuntu/Projects/ENV/lib/python2.7/lib-dynload',
>  '/usr/lib/python2.7',
>  '/usr/lib/python2.7/plat-x86_64-linux-gnu',
>  '/usr/lib/python2.7/lib-tk',
>  '/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages',
>  '/home/ubuntu/Projects/ENV/lib/python2.7/site-packages',
>  '/home/ubuntu/Projects/jersey_her/jersey_her']
>
>
> The Python traceback is in an attachment. The error in 
> context_processors.py is in code which seems related to the search 
> rectangle, as if Arches thinks the settings have been made but the values 
> have been lost, whether in a file, or stored in the database, I don't know. 
> Because of the error, we're unable to get into the Arches web interface to 
> change the settings. I'm reluctant to reinstall everything so I'm hoping 
> someone can suggest a manual reset.
>
> 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.
For more options, visit https://groups.google.com/d/optout.


Re: [Arches] Falling at first hurdle, then the next, then the next.

2019-04-10 Thread Alexei Peters
It looks like you have your virtual environment activated, but some of your
dependencies might be missing (django perhaps).
When you installed Arches did you use this command:

pip install arches --no-binary :all:

If you just ran "pip install arches" then you'll be missing all of your
dependencies.

Hopefully that's the issue.
Cheers,
Alexei

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


On Wed, Apr 10, 2019 at 1:15 PM Ben O'Steen  wrote:

> Sorry to hear that you have had trouble! If you just want to test it out,
> I agree with Adam that the demo installation is a good option. The direct
> link to that is http://v4demo.archesproject.org/
>
> Ben
>
> On Wed, 10 Apr 2019 at 12:23, Adam Cox  wrote:
>
>> Hello, the error you found won't be especially difficult to overcome, but
>> it does sound like perhaps you may like to just try out the demo
>> installation that you can get to from the archesproject.org home page?
>>
>> To handle the error, you'll need to activate your virtual environment, as
>> described in step 3 of the installation guide you linked to.
>>
>> Hope that helps!
>> Adam
>>
>> On Wed, Apr 10, 2019 at 2:01 PM 'Researcher' via Arches Project <
>> archesproject@googlegroups.com> wrote:
>>
>>> Hi all,
>>> I've been struggling through trying to install Arches all day today
>>> (historian background, not IT professional!) and I thought I was getting
>>> somewhere reaching the point where it told me Arches had been installed (in
>>> Windows command prompt) but even our IT support are unable to get very far
>>> beyond that. Anyone got any advice? Is there a simpler way? I just wanted
>>> to try out the software, not get a degree in coding before I had even seen
>>> what it looked like.
>>> I tried to run step 7 on the install guide:
>>> https://arches.readthedocs.io/en/stable/installation/
>>> but it says you need elasticsearch running. I tried to install
>>> elasticsearch from the "easiest way" (dread to think what the hard way
>>> looks like) as per below:
>>>
>>> The easiest way to install Elasticsearch is to use a command that comes
>>> with Arches. Once you have installed Arches (either with pip or from
>>> the Arches repo ), activate
>>> your virtual environment, enter your app/project root directory (the one
>>> that contains manage.py), run
>>>
>>> python manage.py es install
>>>
>>> Elasticsearch will be installed in the root folder. You can specify an
>>> alternate destination for the installation by using the -d argument.
>>> For example
>>>
>>> python manage.py es install -d C:\Projects
>>>
>>> will result in a new directory C:\Projects\elasticsearch-5.2.1 from
>>> which you’ll be able to run Elasticsearch.
>>>
>>> I tried this and got the following:
>>> (ENV) C:\Users\FIMNT\my_project>python manage.py es install
>>> Traceback (most recent call last):
>>>   File "manage.py", line 27, in 
>>> from django.core.management import execute_from_command_line
>>> ImportError: No module named django.core.management
>>>
>>> Obviously I or the software have done something wrong but I've spent the
>>> entire day working like this with every single step having some kind of
>>> problem and our IT support service is also struggling to see why it's
>>> having so many issues.
>>> Anyone able to guide us through in a simpler way, enlighten me past this
>>> step and onto the next error or should I give up on Arches now seeing as
>>> it's taken me a day and I can't even install it, yet alone set it up or
>>> operate it?
>>>
>>> Thanks,
>>>
>>> --
>>> -- 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.
>>>
>> --
>> -- 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.
>>
> --
> -- 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" 

Re: [Arches] Possible RDF Error

2019-04-05 Thread Alexei Peters
Hi Brian,
Have you tried to undo what you did by removing the "parent" reference
using the "Manage Parents" function?
-Alexei

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


On Fri, Apr 5, 2019 at 5:54 AM Bryan Alvey  wrote:

> Hi guys,
>
> I thought I might notify you that there may be an error in RDF manager
> area: I was trying to move a thesaurus concept scheme to become a concept
> inside a parent concept scheme. When I attempted to do this, I received no
> error message, but got the message ' Loading ..'.
>
> which just sat there.
>
> However, it is a complex set of terms, and after an hour of waiting I
> clicked on the page.  What I seem to have now is a duplicate set of terms:
> Structural Component (CAAL)  appears in two places. When you attempt to
> update one of the duplicates, the other one updates too, and when I try to
> make one of them a collection the system hangs again.
>
> Has anyone had this error before, and if so, what was the solution?
>
> I am going to try and export the thesaurus term.(and all its children). If
> I can export, I will then try and delete one of the duplicate pair.  If
> that works then I attempt to make the remaining one a collection.  If both
> sets of terms get deleted, then I can try and upload the term that I
> previously exported.  Is that right?
>
> Best wishes,
>
> Bryan
>
>
> --
> -- 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.
>

-- 
-- 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.


Re: [Arches] EDTF dates generating errors

2019-04-03 Thread Alexei Peters
Hi Neil,
This might be an issue with how Elasticsearch dynamically maps incoming
data to data types.  The very first time that a new value of a certain type
is saved, Elasticsearch will assign a datatype to it.  In the case of an
EDTF datatype, if the first time a user saved a value to that field and
that value might be construed as an integer, then ES will map it that way
and all future values would have to conform to that mapping.  Most of the
time this doesn't seem to be an issue, but EDTF values should be mapped to
type "text" but could easily get mapped to an "integer" or "date" type.
See:
https://www.elastic.co/guide/en/elasticsearch/reference/6.6/dynamic-field-mapping.html#dynamic-field-mapping

A temporary work around (if you can do it), would be to start from a clean
install, and then make sure that the first value that you save can't be
cast to anything other than a text value (eg: 1945?), something like "1945"
wouldn't work, as it would be mapped to a "long" field.

Another alternative would be to create a new temporary index with the
proper mappings and then using ES, reindex your data into that new index.
Then delete your old index and recreate with the same "new" mapping (but
with the original name) and then reindex again back into that index.

see this doc for the reindex api:
https://www.elastic.co/guide/en/elasticsearch/reference/6.6/docs-reindex.html

Hopefully that helps.

Cheers,
Alexei

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


On Wed, Apr 3, 2019 at 8:42 AM Neil Silberman 
wrote:

> Hi all-- We've come across a strange error during a training session with
> the use of EDTF dates. We believe everything is set up correctly: the graph
> model is using edtf (instead of date) as the node type and the card is
> using the edtf-widget. However, when someone puts in, e.g. 1945?  They get
> a 400 error (can’t parse ‘?’). We checked the google group and github and
> nothing seemed to suggest that other people were having this problem – is
> it an error with the build of arches we are using (4.4.1) on the server?
> Did we miss something? Thanks in advance for any feedback on this.
>
> Here's the error message:
>
>
> Unable to save. A RequestError has occurred. Arguments: (400,
> u'mapper_parsing_exception', {u'status': 400, u'error': {u'caused_by':
> {u'reason': u"Can't get text on a START_OBJECT at 1:2105", u'type':
> u'illegal_state_exception'}, u'root_cause': [{u'reason': u'failed to parse
> [tiles.data.b955b3a0-e749-11e6-84a6-026d961c88e6]', u'type':
> u'mapper_parsing_exception'}], u'type': u'mapper_parsing_exception',
> u'reason': u'failed to parse
> [tiles.data.b955b3a0-e749-11e6-84a6-026d961c88e6]'}})
>
> --
> -- 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.
>

-- 
-- 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.


[Arches] Re: Add default languages to Arches

2019-04-02 Thread Alexei Peters
Hi Bryan,
The way to do this is to use the Django admin console.
Go to "Models/D Languages".  There you'll be able to add a new language 
entry.

http://localhost:8000/admin/models/dlanguage/

The language id should be in the form of xx-XX and the name should be 
uppercase for consistencies sake.

Cheers,
Alexei


On Tuesday, April 2, 2019 at 8:07:07 AM UTC-7, Bryan Alvey wrote:

> Hi everyone,
>
> I'm looking to add six new preferred languages in the system settings, in 
> addition to those that currently display when creating thesaurus entries 
> etc.  Is there any documentation on this? If anyone can point me in the 
> right direction, I'd be grateful!
>
> Bryan
>

-- 
-- 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.


Re: [Arches] Hardware

2019-02-25 Thread Alexei Peters
Hi David,
This really depends on the number of simultaneous users you anticipate
having to host.
Can you shed some light on this?
Cheers,
Alexei

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


On Mon, Feb 25, 2019 at 2:07 AM David Gurevich 
wrote:

> Hello.
> I am interested in installing Arches for my project. What would be the
> minimum hardware requirements to run Arches smoothly?
> 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.
> 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.


Re: [Arches] Creating two widgets with same card

2018-12-03 Thread Alexei Peters
Hi Yazan,
What version of Arches are you using?
-Alexei

On Sun, Dec 2, 2018, 12:13 PM Yazan Tahhan  Hi all,
>
> I'm trying to create a two widgets in the same card.
> An example to that is the "Name" and "Name Type" that exists in the "Create
> Branch" section in the documentation
> .
> The problem is that I can't add a Child Node to the "Name" branch, it
> doesn't show any nodes so I can choose one of them.
>
> The only way to choose from it is to make the type "Semantic", but in this
> way I can't get the two widgets in the same card.
>
> I also noted that this tutorial doesn't exist in the latest documentation
> of Arches. Is it not supported for newer versions?
>
> Could you please help me with this?
>
> Thanks in advance.
>
> --
> -- 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.
>

-- 
-- 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.


Re: [Arches] Unit tests in custom Arches app

2018-11-19 Thread Alexei Peters
Vincent,
I've never tried this before, but I'm sure you can get it to work with a
little fiddling.
The test module is completely separate from the pip installed arches code.
ROOT_DIR should point to your app root directory.
TEST_DIR should point to your test directory.
Hope that's helpful.
-Alexei

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


On Sat, Nov 17, 2018 at 7:16 AM Vincent Meijer 
wrote:

> I was wondering what the recommended method is for adding unit tests to my
> own Arches app.
>
> The unit test section in Arches core looks like an isolated python module
> and I can't seem to import e.g. the test_settings.py file from my own app.
> Also, when I try copying that settings file to my own app and then try to
> run my own unit tests with it (from manage.py in my own app), the process
> still looks for database init (sql) files in core Arches folders.
>
> And if I should copy/paste test_settings.py into my own app, what should I
> set settings like ROOT_DIR and TEST_ROOT to?
>
> My current settings:
> ROOT_DIR =
> os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe(
> ROOT_DIR = os.path.normpath(os.path.join(ROOT_DIR, '..' ,'..', 'arches',
> 'arches'))
> TEST_ROOT = os.path.normpath(os.path.join(ROOT_DIR, '..', 'tests'))
>
>
> But now I'm getting this stack:
> Destroying old test database for alias 'default'...
> Traceback (most recent call last):
>   File "manage.py", line 35, in 
> execute_from_command_line(sys.argv)
>   File
> "/web_root/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py"
> , line 364, in execute_from_command_line
> utility.execute()
>   File
> "/web_root/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
> "/web_root/ENV/local/lib/python2.7/site-packages/django/core/management/commands/test.py"
> , line 29, in run_from_argv
> super(Command, self).run_from_argv(argv)
>   File
> "/web_root/ENV/local/lib/python2.7/site-packages/django/core/management/base.py"
> , line 283, in run_from_argv
> self.execute(*args, **cmd_options)
>   File
> "/web_root/ENV/local/lib/python2.7/site-packages/django/core/management/base.py"
> , line 330, in execute
> output = self.handle(*args, **options)
>   File
> "/web_root/ENV/local/lib/python2.7/site-packages/django/core/management/commands/test.py"
> , line 62, in handle
> failures = test_runner.run_tests(test_labels)
>   File
> "/web_root/ENV/local/lib/python2.7/site-packages/django/test/runner.py",
> line 601, in run_tests
> old_config = self.setup_databases()
>   File
> "/web_root/ENV/local/lib/python2.7/site-packages/django/test/runner.py",
> line 546, in setup_databases
> self.parallel, **kwargs
>   File
> "/web_root/ENV/local/lib/python2.7/site-packages/django/test/utils.py",
> line 187, in setup_databases
> serialize=connection.settings_dict.get('TEST', {}).get('SERIALIZE',
> True),
>   File
> "/web_root/ENV/local/lib/python2.7/site-packages/django/db/backends/base/creation.py"
> , line 69, in create_test_db
> run_syncdb=True,
>   File
> "/web_root/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py"
> , line 131, in call_command
> return command.execute(*args, **defaults)
>   File
> "/web_root/ENV/local/lib/python2.7/site-packages/django/core/management/base.py"
> , line 330, in execute
> output = self.handle(*args, **options)
>   File
> "/web_root/ENV/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py"
> , line 204, in handle
> fake_initial=fake_initial,
>   File
> "/web_root/ENV/local/lib/python2.7/site-packages/django/db/migrations/executor.py"
> , line 115, in migrate
> state = self._migrate_all_forwards(state, plan, full_plan, fake=fake,
> fake_initial=fake_initial)
>   File
> "/web_root/ENV/local/lib/python2.7/site-packages/django/db/migrations/executor.py"
> , line 145, in _migrate_all_forwards
> state = self.apply_migration(state, migration, fake=fake, fake_initial
> =fake_initial)
>   File
> "/web_root/ENV/local/lib/python2.7/site-packages/django/db/migrations/executor.py"
> , line 244, in apply_migration
> state = migration.apply(state, schema_editor)
>   File
> "/web_root/ENV/local/lib/python2.7/site-packages/django/db/migrations/migration.py"
> , line 129, in apply
> operation.database_forwards(self.app_label, schema_editor, old_state,
> project_state)
>   File
> "/web_root/ENV/local/lib/python2.7/site-packages/django/db/migrations/operations/special.py"
> , line 193, in database_forwards
> self.code(from_state.apps, schema_editor)
>   File "/web_root/arches/arches/app/models/migrations/0001_initial.py",
> line 55, in make_permissions
> create_permissions(model_app, verbosity=0)
>   File
> "/web_root/ENV/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py"
> , line 63, in create_permissions
> 

Re: [Arches] Fuzzy dates

2018-11-19 Thread Alexei Peters
Adam, the link (https://www.loc.gov/standards/datetime/edtf.html) that
Vincent just posted is the new (official) spec, which appears to have just
been posted last month.
Unfortunately, the library we use still references the old draft, so for
now we need to stick with the old link in our docs.
-Alexei

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


On Mon, Nov 19, 2018 at 8:14 AM Vincent Meijer 
wrote:

> Adam, here is a recently posted page that might be even better:
> https://www.loc.gov/standards/datetime/edtf.html
>
> Generally speaking though, a few words of introduction on fuzzy dates and
> some pointers, e.g. that the data type in Arches can be found as 'edtf',
> and also some examples of what values can be entered, would be most helpful.
>
> I just discovered that using dates like 'Early 2nd Century' actually works
> well together with the time wheel! Quite impressive, that's a great feature.
>
> Now if only I could get periods B.C. to work... But I understand we can't
> have everything :)
>
>
> On Friday, 7 September 2018 19:06:22 UTC+2, Adam Cox wrote:
>>
>> Vincent, the in-app help on the graph tab of the graph designer has a
>> section called "Default Data Types" which includes a link to this page
>> https://www.loc.gov/standards/datetime/ in the edtf row. Do you think
>> the link alexei shared above would be more helpful there? Very open to
>> suggestions.
>>
>> On Fri, Sep 7, 2018 at 5:49 AM, Vincent Meijer 
>> wrote:
>>
>>> Thanks, i'll look into that. If anyone is already using fuzzy dates in
>>> Arches, I would love to hear from them!
>>>
>>> On Thu, Sep 6, 2018 at 10:41 PM Alexei Peters  wrote:
>>>
>>>> Oops! Here's the link...
>>>> http://www.loc.gov/standards/datetime/pre-submission.html
>>>>
>>>>
>>>>
>>>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>>>
>>>> On Thu, Sep 6, 2018 at 11:36 AM, Alexei Peters 
>>>> wrote:
>>>>
>>>>> Hi Vincent,
>>>>> Here's a link to the EDTF proposal.  It has a bunch of examples of
>>>>> EDTF strings and what they mean and how they should be interpreted.
>>>>> -Alexei
>>>>>
>>>>>
>>>>> Director of Web Development - Farallon Geographics, Inc. -
>>>>> 971.227.3173
>>>>>
>>>>> On Thu, Sep 6, 2018 at 3:12 AM, Vincent Meijer 
>>>>> wrote:
>>>>>
>>>>>> Since Arches 4.2 fuzzy dates are supported. I am looking for a few
>>>>>> pointers on how this works and how to use them.
>>>>>>
>>>>>> Thanks!
>>>>>>
>>>>>> --
>>>>>> -- 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.
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>>
>>>> --
>>> -- 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.
>>> 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.
>

-- 
-- 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.


Re: [Arches] Error in the Resource Model Designer

2018-10-22 Thread Alexei Peters
It looks like one of your dependencies (d3 library )
didn't install properly.  You might try running the `yarn` command again.
Cheers,
Alexei

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


On Mon, Oct 22, 2018 at 8:49 AM Matteo Orlando <
matteo.orlando.1...@gmail.com> wrote:

> I'm having problem with the Resource Model Designer, when i try to add a
> new model the page does not load and the following error appears
>>
>> core.js:19 Uncaught ReferenceError: d3 is not defined
>>
>> at core.js:19
>>
>> at sunburstChart.js:138
>>
>> (anonymous) @ core.js:19
>>
>> (anonymous) @ sunburstChart.js:138
>>
>> graph-base.js?_dc=4.3.1:40 Uncaught TypeError: Cannot read property
>>> 'tree' of undefined
>>
>> at n.initialize (graph-base.js?_dc=4.3.1:40)
>>
>> at n.initialize (graph.js?_dc=4.3.1:19)
>>
>> at n.e.View (backbone.js:1224)
>>
>> at n [as constructor] (backbone.js:1884)
>>
>> at new n (backbone.js:1884)
>>
>> at n.initialize (graph-designer.js?_dc=4.3.1:477)
>>
>> at n.e.View (backbone.js:1224)
>>
>> at n.constructor (page-view.js?_dc=4.3.1:112)
>>
>> at n.constructor (base-manager.js?_dc=4.3.1:61)
>>
>> at new n (backbone.js:1884)
>>
>> Does anyone know how to solve this problem?
>
> --
> -- 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.
>

-- 
-- 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.


Re: [Arches] Using concept values in reports

2018-09-25 Thread Alexei Peters
Vincent,
If you can find that value in a Knockout context, then it's in the
javascript somewhere.  You're going to have to do some sleuthing to find
out where though.
Alternatively, there is an api endpoint
(localhost:8000/rdm/concepts/{conceptid}) that you could use, except that
it's not currently setup for returning collections.
I could add that pretty quickly if you need it.
Cheers,
Alexei



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

On Tue, Sep 25, 2018 at 5:54 AM, Vincent Meijer 
wrote:

> I would like to use certain concept values in a report, specifically in
> the javascript part of it.
>
> The model I am working with has a card, which has a concept node called
> 'Measurement Unit', which is connected to a collection with units (mm, cm,
> etc.).
>
> I have this .js file for a customized report I made (based on image.js):
> https://github.com/globaldigitalheritage/arches-
> 3d/blob/9-add-3dhop-resource-type/arches_3d/arches_3d/
> media/js/reports/three-d-hop/three-d-hop.js
>
>
> How do I find that Measurement Unit concept value and use it in a similar
> way e.g. 'item.url'?
>
>
> I have been digging around and found the value I was looking for in the
> Knockout context (label= 'Measurement Unit', valueObjects[0].name =
> 'Milimeters'), but I am at a loss regarding how to get that value in my .js
> code.
>
> Any pointers or examples would be appreciated!
>
> --
> -- 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.
>

-- 
-- 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.


Re: [Arches] Possible of creating a new resource or editing the node

2018-09-21 Thread Alexei Peters
Hi Kevin,
In the latest version of Arches (4.3.1) you can easily create a graph that
collects exactly the data you want.
You should take a look at that version.
Cheers,
Alexei


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

On Fri, Sep 7, 2018 at 3:00 AM, lu kevin  wrote:

> Dear all,
>
> I am doing a research about establishing an Arches website for some
> Chinese heritage buildings in Taiwan. The platform which I am using is
> Arches-HIP.
> The question I met was that the information I wanted to put into a
> heritage resource is more than the default fields.
> In this situation, I am wandering if it is possible to edit the "nodes"
> within RDM (not authority document).
> For example: If I add a new field "budget" in the RDM and a budget field
> will appear in the heritage resource manager page.
> Or can I directly create an new resource which is different from the six
> main resources?
>
> Please and thank you for helping.
> Best,
>
> Kevin
>
> --
> -- 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.
>

-- 
-- 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.


Re: [Arches] Fuzzy dates

2018-09-06 Thread Alexei Peters
Oops! Here's the link...
http://www.loc.gov/standards/datetime/pre-submission.html



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

On Thu, Sep 6, 2018 at 11:36 AM, Alexei Peters  wrote:

> Hi Vincent,
> Here's a link to the EDTF proposal.  It has a bunch of examples of EDTF
> strings and what they mean and how they should be interpreted.
> -Alexei
>
>
> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>
> On Thu, Sep 6, 2018 at 3:12 AM, Vincent Meijer 
> wrote:
>
>> Since Arches 4.2 fuzzy dates are supported. I am looking for a few
>> pointers on how this works and how to use them.
>>
>> Thanks!
>>
>> --
>> -- 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/fo
>> rum/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.
>>
>
>

-- 
-- 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.


Re: [Arches] Fuzzy dates

2018-09-06 Thread Alexei Peters
Hi Vincent,
Here's a link to the EDTF proposal.  It has a bunch of examples of EDTF
strings and what they mean and how they should be interpreted.
-Alexei


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

On Thu, Sep 6, 2018 at 3:12 AM, Vincent Meijer 
wrote:

> Since Arches 4.2 fuzzy dates are supported. I am looking for a few
> pointers on how this works and how to use them.
>
> Thanks!
>
> --
> -- 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.
>

-- 
-- 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.


[Arches] Arches 4.3.1 released

2018-09-04 Thread Alexei Peters
The Arches team was made aware of a few issues with our latest release 
(4.3.0) so we've quickly fixed them and pushed a 4.3.1 release.

Some of the highlights:
- Fixes issue preventing users unassigned to the Graph Editor group from 
editing related resources
- Fixes migration for users upgrading Arches with existing report records 
(Thanks to Dale Lloyd for letting us know about this one!)


*Known Issues*

- 3993  - During graph 
creation (adding several nodes in a single session) the browser may crash 
or hang.  This is because the Knockout.js Mapping package that Arches uses 
consumes an unnecessarily large amount of memory.  

  *Workaround*: During heavy graph development users can periodically 
refresh the browser to reclaim memory and reduce the occurrence of browser 
issues.

- 4044  - Exporting 
data that uses the File-list datatype in csv format can't be successfully 
re-imported.  

  *Workaround*: If users need to export data that uses the File-list 
datatype, then they should export in JSON format instead, so that data can 
be successfully re-imported.


*Upgrading Arches*

Users are encouraged to update at their earliest convenience.  Completely 
re-installing Arches is the easiest way to accomplish this.

If you can't completely re-install Arches (because you have data in the 
system that you want to preserve) then you'll need to upgrade by running 
the following commands in your activated virtual environment:

pip install arches --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


If you have Arches running on a web server such as Apache, be sure to 
update your static files directory and restart your web server.

As always the documentation can be found at http://arches.readthedocs.io


*Upgrading an Arches project*

If you are upgrading your project from 4.1.1, you should review the project 
upgrade 
steps from 4.1.1 to 4.2 

 before 
proceeding.

If you have made no changes to the package.json file in your project you 
can run :

1. In a terminal cd to your project directory and run the following 
command::

python manage.py updateproject

This command adds the `package.json` and `.yarnrc` files to your 
project and then runs `yarn install`.

2. If you have made changes to `package.json`, then you should update your 
javascript dependencies manually:

cd into your project's root directory (where yarn.lock is located) and 
run the following:
yarn add core-js@2.5.7
yarn add dom4@2.0.1
yarn install
yarn upgrade mapbox-gl@0.48.0
yarn upgrade underscore@1.9.1


*Changes*

- Fixes issue preventing users unassigned to the Graph Editor group 
from editing related resources
- Fixes migration for users upgrading Arches with existing report 
records

-- 
-- 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.


Re: [Arches] Marking the day - 5 years of open sharing of Arches expertise

2018-08-23 Thread Alexei Peters
A pretty awesome achievement indeed!


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

On Wed, Aug 22, 2018 at 8:03 AM, Edmund Lee <
edmund@historicengland.org.uk> wrote:

> Hey everybody,
>
> We reach what feels like an important milestone today - 5 years since the
> Arches Project Google group was opened up as a public resource. If you dig
> into the message archive you'll see that the group first started up a year
> or more before that, following a project meeting hosted by the Getty in LA
> in June 2012. But from 22nd August 2013 this group was open up for everyone
> with an interest in the Arches software.
>
> It's a day to acknowledge the sharing of expertise, and the attention
> given by 400+ members from pretty much every continent (don't think there's
> an Arches installation in Antarctica... yet) talking about 600+ different
> topics.
>
> I say "Happy Birthday", "Feliz Compleanos", "Eid milad said", "Bon
> Anniversaire", "alles Gute zum Geburtstag"  Arches experts! ( ...and
> please do add your own translation...)
>
> Ed
>
> --
> -- 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.
>

-- 
-- 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.


Re: [Arches] time wheel alternative in time search?

2018-05-22 Thread Alexei Peters
Hi Xavier,
No, at this point Arches only uses the time wheel.
Cheers,
Alexei


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

On Tue, May 22, 2018 at 2:58 AM, Xavier Prat 
wrote:

> Hello,
>
> I looked the time wheel widget located in time search tab. Its very useful
> in order to select a range of years.
> In old versions of Arches I looked a slider style time-line. For example
> here: http://www.historicplacesla.org/search You can see a time filter
> represented as slider.
>
> Does arches allow to change the time filter style ?
>
> Thanks for your attention
>
> --
> -- 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.
>

-- 
-- 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.


[Arches] Arches 4.1.1 released

2018-05-18 Thread Alexei Peters
 

The Arches team has been busy trying to improve Arches and fix a several 
bugs as well.

Below you'll find a listing of all the changes that are included in the 
latest release.


*Some of the highlights:*

   - Arches now saves a resource instance only after a tile is saved
   - Adds the ability for users to reset forgotten passwords
   - Displays tile edits in edit history rather than recently created 
   resources
   - Allows users to add custom popup content for overlay features
   - Enables import and export of node and resource instance datatypes
   - Prevents displaying or zooming to restricted resources in the search 
   page
   - Allows admins to specify a local coordinate system for more accurate 
   search buffer calculations
   - Many other small improvements
   


*Upgrading Arches*


Users are encouraged to update at their earliest convenience.  Because this 
is a micro release, it is only necessary for most users to upgrade rather 
than reinstall arches.


You can upgrade by running the following command in your activated virtual 
environment:



pip install arches --upgrade
 



If you have Arches running on a web server such as Apache, be sure to 
update your static files directory and restart your web server.


As always the documentation can be found at 
http://arches4.readthedocs.io/en/stable/



*Upgrading an Arches project*


If you created a project using 4.1.0, your exiting project should work with 
4.1.1. However, you may want to add the ANALYSIS_COORDINATE_SYSTEM_SRID 
setting to your project's settings.py file and assign a local spatial 
reference (SRID) relevant to your project. This will make search buffer 
distances more accurate.

Note - the units of the coordinate system must be meters.



*Changes*

   - Allows disabled state of switch widget. re #2701
   - Add rule to prevent importing the same relations twice. re #2533
   - Postpones creation of a resource instance until a tile has been saved. 
   re #2573
   - Disables items in a resource's manage menu (copy, delete, go to 
   report, edit history) as well as the related resources link until a tile is 
   saved against the resource instance. re #2573
   - Replaces the 3-way switch with a 2-way switch in the card 
   configuration form and report editor. re #2979
   - Switches recent edits table from showing newly added resources to 
   actual tile edits. Adds display name and user info to creation and deletion 
   edits. re #2293
   - Uses the language default language if only one language is identified 
   as the default. If multiple languages or no languages are defined as 
   default, the language in settings.LANGUAGE_CODE is used. re #1923
   - Adds indication that a map widget config's accordion panel is 
   closed/open, re #2883
   - Disables links within edit history to deleted resource instances. re 
   #2293
   - Moves thesauri and collection tool menus into a single dropdown. re 
   #2350
   - Add min-height to allow scrollbars in firefox #1989 (#3029)
   - Add shims to base.htm head for IE to use search page #2993 (#3048)
   - Fixes tile save in safari and internet explorer, re #2534
   - Docker: Respects project when running arbitrary commands
   - Allow lists to scroll independently from their container. re #2853
   - Adds custom popup to tileserver vector layer, re #2549
   - Adds ALLOWED_POPUP_HOSTS so that users can specify permitted domains 
   from which to allow popup data. re #2549
   - Sets the database of a tileserver config file to the default database 
   of a project so that vector sql files get loaded properly. re #2549
   - Updates resource instance datatype validation to handle for missing 
   resource instance ids. re #2967
   - Enables import of resource instance datatypes in csv files. re #2967
   - Replaces 'ERROR' with 'WARNING' when related instances are missing. 
   Transforms resourceid list on import and export for the 
   resource-instance-list type. re #2967
   - Ensures csv business data loaded from a package has a mapping file. re 
   #2967
   - Abbreviates a resource name in the resource filter list with an 
   ellipsis if the name is longer than 55 char. re #3124
   - Implements django-password-reset. re #3119
   - Adds ability to import and export node value datatype, re #3059, #3060
   - Fixes sorting on date in the edit log.
   - Allows user to specify analysis SRID for better search buffer 
   accuracy. re #3244
   - Displays error if a user tries to delete a resource model with 
   instances. re #3282
   - Filters points in the search map on permitted nodegroups, re #2492
   

-- 
-- 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 

Re: [Arches] GDPR features on Arches

2018-05-03 Thread Alexei Peters
Hi Joel,
This is a really good question and one that I was wondering about myself,
because of the recent flurry of GDPR related emails I've been getting.

I don't know if I can definitively answer this question, but I can
speculate, so here goes!

The main thrust of the GDPR is around protecting users personal
information, especially as it pertains to analysis, processing and
dissemination.
Arches only collects enough personal information to support
authentication.  That information is only used for that purpose; it is
neither analyzed nor disseminated (strictly speaking it is processed, which
can mean simply storing it).
One of the things that did jump out at me was the "Right to erasure (‘right
to be forgotten’)" (https://gdpr-info.eu/art-17-gdpr/) .  Right now, there
is no way for an Arches end user to remove there identity from the system
and there probably should be.

Generally, it seems to me that the main burden is on the "Data Controller",
and that seems to fall squarely on the implementer of Arches and not on the
Arches software itself.
Arches COULD be used to collect sensitive user data, but again, I believe
at that point it would be up to the implementer to comply with the GDPR.

If you are aware of any specific features of the GDPR that could be
incorporated into Arches, I'd love to hear them,
Cheers,
Alexei


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

On Wed, May 2, 2018 at 11:02 PM, Joel Aldor  wrote:

> Hi Arches Team,
>
> I'd like to know if there are any plans to incorporate features for GDPR
> compliance for organizations that uses Arches. GDPR is about to take effect
> in a few weeks in the EU (in the Philippines, the Data Privacy Act, which
> is 99% copied from GDPR, has been in full implementation since September of
> last year), and we're concerned as to how personal data and sensitive
> personal information of built heritage stakeholders can be protected. This
> has now become a major concern for us regarding our future plans in
> collecting heritage data.
>
> Hope to hear some answers from the project team. Thank you.
>
> Joel
>
>
> --
> -- 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.
>

-- 
-- 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.


Re: [Arches] Can't delete Thesaurus or items in it if they contain accents

2018-02-20 Thread Alexei Peters
Hi Arnau,
What version of Arches are you using and what specific term are you trying
to delete?
I'm able to manage and delete entries with diacritic marks in the latest
for whatever that's worth.
Cheers,
Alexei


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

On Sat, Feb 17, 2018 at 1:28 PM, Arnau Forner  wrote:

> Hello,
>
> I can't delete a complete Thesaurus if items in it contain accents or I
> guess any other non english character.
> I first have to change the item (the accents) and then I am able to delete
> the item or the whole thesaurus.
> Is there something I can do to avoid this behaviour?
>
> thanks
>
> Arnau
>
> --
> -- 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.
>

-- 
-- 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.


[Arches] Arches 4.1.0 released

2018-01-23 Thread Alexei Peters
*Arches 4.1.0 release notes (*see 
https://github.com/archesproject/arches/blob/4.1.0/docs/releases/4.1.0.md 
for a nicely formatted version of this announcement*)*

The Arches team has been busy trying to improve Arches and fix a several 
bugs as well.
Below you'll find a listing of all the changes that are included in the 
latest release.

Some of the highlights:
- Upgraded django to 1.11 (LTS)
- Added the ability for users to self signup to Arches
- Added a page for users to manage their profile
- Improved the loading speed of reports and forms
- Added the node-value datatype
- Many other small improvements

*Upgrading Arches*
Users are encouraged to update at their earliest convenience.  Completely 
re-installing Arches is the easiest way to accomplish this.

If you can't completely re-install Arches (because you have data in the 
system that you want to preserve) then you'll need to upgrade by running 
the following commands in your activated virtual environment:

```
pip install arches --upgrade
python manage.py migrate

```

As always the documentation can be found at 
http://arches4.readthedocs.io/en/stable/

*Upgrading an Arches project*
If you already have a project created with Arches 4.0 and you want to 
continue using that project, you will need to make a few changes so that it 
is compatible with 4.1.
When making changes, be sure to replace 'your_projects_name' in the code 
examples below with your project's actual name.
Required Changes:
1. Add the following lines to the bottom of your projects 'wsgi.py' file:
   ```
   from arches.app.models.system_settings import settings
   settings.update_from_db()
   ```
2. The following changes were made to the 'urls.py' file:
- These imports have been added:
```
from django.conf import settings
from django.conf.urls.static import static
```
- The media urls are concatenated to the list of urls:

```+ static(settings.MEDIA_URL, 
document_root=settings.MEDIA_ROOT)```

- The admin import line was removed:

```from django.contrib import admin```

- The admin urls line was removed:

```url(r'^admin/', admin.site.urls),```

- Assuming that you haven't made any changes to the urls.py file your 
4.1 urls.py file should look like this:

from django.conf.urls import include, url
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
url(r'^', include('arches.urls')),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

3. You must add the following setting to your project's 'settings.py' file:

```ROOT_URLCONF = 'your_projects_name.urls'```

4. In your index.htm file you will need to change the following lines:

This line:
```
{% trans "Welcome" %} {{ user.username }}
```
... should be changed to this:
```
{% trans "Welcome" %} {{ user.first_name|default:user.username }}
```

This line:
```
{% trans 'Change Password' 
%}
```
... should be changed to this:
```
{% trans 'User Profile' 
%}
```
*Optional:*
1. Add the following settings to your 'settings_local.py' file. These are 
commented out and only listed in your 'settings_local.py' file so that you 
can easily find them if you want to modify their values:
```
#ELASTICSEARCH_PREFIX = ''
#INSTALLED_APPS = (
#django.contrib.admin,
#django.contrib.auth,
#django.contrib.contenttypes,
#django.contrib.sessions,
#django.contrib.messages,
#django.contrib.staticfiles,
#django.contrib.gis,
#arches,
#arches.app.models,
#arches.management,
#guardian,
#captcha,
#)
#EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
#EMAIL_HOST = 'localhost'
#EMAIL_HOST_PASSWORD = ''
#EMAIL_HOST_USER = ''
#EMAIL_PORT = 25
#EMAIL_USE_TLS = False
#AUTH_PASSWORD_VALIDATORS = [
#{
#"NAME": 
"arches.app.utils.password_validation.NumericPasswordValidator"
#},
#{
#"NAME": 
"arches.app.utils.password_validation.SpecialCharacterValidator",
#"OPTIONS": {
#"special_characters": [
#"!",
#"@",
#"#",
#")",
#"(",
#"*",
#"&",
#"^",
#"%",
#"$"
#]
#}
#},
#{
#"NAME": 
"arches.app.utils.password_validation.HasNumericCharacterValidator"
#},
#{
#"NAME": 
"arches.app.utils.password_validation.HasUpperAndLowerCaseValidator"
#},
#{
#"NAME": 
"arches.app.utils.password_validation.MinLengthValidator",
#"OPTIONS": {
#"min_length": 9
#}
#}

Re: [Arches] cannot import ref data -- DC identifier type not in DB

2017-12-04 Thread Alexei Peters
Hi Joshua,

I'm assuming that you pulled the latest but haven't run the migrations
associated with the update.
I'm guessing that you don't have the latest db migrations.  From the django
docs: "Migrations are Django’s way of propagating changes you make to your
models (adding a field, deleting a model, etc.) into your database schema."
To load any un-applied migrations run the following command in an activated
virtual environment:

python manage.py migrate

After running that command you should see the "identifier" valuetype show
up in the database.

Cheers,
Alexei


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

On Tue, Nov 21, 2017 at 8:52 AM, Joshua Gomez  wrote:

> I am trying to load a thesaurus file into Arches and getting the following
> error:
>
> (ENV) bash-4.2$ python manage.py packages -o import_reference_data -s
> ~/29bf48a2-c47c-4f9d-b093-f742b20bfaf7.xml
> operation: import_reference_data
> package: arches
> time elapsed to parse rdf graph 0.114490032196 s
> Traceback (most recent call last):
>   File "manage.py", line 27, in 
> execute_from_command_line(sys.argv)
>   File 
> "/apps/arches/ENV/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 353, in execute_from_command_line
> utility.execute()
>   File 
> "/apps/arches/ENV/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 345, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/apps/arches/ENV/lib/python2.7/site-packages/django/core/management/base.py",
> line 348, in run_from_argv
> self.execute(*args, **cmd_options)
>   File 
> "/apps/arches/ENV/lib/python2.7/site-packages/django/core/management/base.py",
> line 399, in execute
> output = self.handle(*args, **options)
>   File "/apps/arches/arches/management/commands/packages.py", line 163,
> in handle
> self.import_reference_data(options['source'], options['overwrite'],
> options['stage'])
>   File "/apps/arches/arches/management/commands/packages.py", line 713,
> in import_reference_data
> ret = skos.save_concepts_from_skos(rdf, overwrite, stage)
>   File "/apps/arches/arches/app/utils/skos.py", line 78, in
> save_concepts_from_skos
> *dcterms_identifier_type =
> dcterms_value_types.get(valuetype=str(DCTERMS.identifier).replace(str(DCTERMS),
> ''))*
>   File 
> "/apps/arches/ENV/lib/python2.7/site-packages/django/db/models/query.py",
> line 387, in get
> self.model._meta.object_name
> arches.app.models.models.DoesNotExist: DValueType matching query does not
> exist.
>
> When I look at the data in the DB, I see that there is indeed no dcterms
> identifier valuetype listed:
>
> arches=# select * from d_value_types;
>valuetype   | category  | description | namespace | datatype
> ---+---+-+---+--
>  scopeNote | note  | | skos  | text
>  definition| note  | | skos  | text
>  example   | note  | | skos  | text
>  historyNote   | note  | | skos  | text
>  editorialNote | note  | | skos  | text
>  changeNote| note  | | skos  | text
>  note  | note  | | skos  |
>  prefLabel | label | | skos  | text
>  altLabel  | label | | skos  | text
>  hiddenLabel   | label | | skos  | text
>  notation  | notation  | | skos  | text
>  image | image | | arches| text
>  *title | label | | dcterms   | text*
> * description   | note  | | dcterms   | text*
>  collector | undefined | | arches| text
>  sortorder | undefined | | arches| text
>  min_year  | undefined | | arches| text
>  max_year  | undefined | | arches| text
> (18 rows)
>
> So, my questions are:
>  - Where do those valuetypes come from for a new instance of Arches?
>  - And what is the best way to update them with the ones I am missing?
>
> Thanks,
> Joshua Gomez
> Getty Research Institute
>
>
>
> --
> -- 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.
>

-- 
-- 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 

Re: [Arches] Hiding certain resources

2017-11-06 Thread Alexei Peters
Hi Darcy,
If I was to develop this for inclusion in the Arches core, I wouldn't rely
on keywords to filter out resource instances.  Instead, we currently manage
permissions on specific node groups (ie: branches) by using the
Django-Guardian module.  I suspect that you could use that same module for
managing resource instance permissions.
This would allow you to apply fine-grained permissions on resource
instances.  For example, some users could be given read-only permissions,
others full access, and still others no access at all.  This would be a
fair amount of work.  The integration points would be very similar to what
we had to do to accomplish node group level permissions.
If you do a quick search for the term "*has_perm*" within the codebase,
you'll get a general sense of all the areas we had to touch to get node
group permissions to work.

Here's a quick listing of those files:

>
> *arches/app/models/card.py*
> *arches/app/models/tile.py*
> *arches/app/utils/permission_backend.py*
> *arches/app/views/base.py*
> *arches/app/views/resource.py*
> *arches/app/views/search.py**arches/app/views/tileserver.py*


Hopefully that helps.
Cheers,
Alexei


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

On Mon, Nov 6, 2017 at 7:48 AM, Adam Cox <mr.adam...@gmail.com> wrote:

> Hi Phil and Darcy,
>
> First, Phil, I had the exact same thought as you regarding the Permissions
> Manager, however, it does not work like that, as I detailed in this github
> issue a little while ago: #2465
> <https://github.com/archesproject/arches/issues/2465>. I later closed
> that ticket in favor of two more specific ones #2491
> <https://github.com/archesproject/arches/issues/2491> and #2492
> <https://github.com/archesproject/arches/issues/2492>, but all of the
> content of my original issue and ensuing discussion still describe the
> state of the software, as far as I am aware.
>
> Darcy, in short, v4 allows you to restrict access to certain nodes for
> certain user groups (please see the caveat I recorded in #2492
> <https://github.com/archesproject/arches/issues/2492> though), but not
> entire resource models to certain user groups (e.g. hide all Archaeological
> Sites from the public), nor specific resource instances. So there is no way
> to do exactly what you are looking for at this time, and you would need
> more than a new function to allow for it. My first thought would be to look
> at the Search view, https://github.com/archesproject/arches/blob/
> master/arches/app/views/search.py, and see if I could add some custom
> filters... That's just a start though, you should note that there are more
> than one way that the data is pulled from the db to the interface, and you
> will have to filter each one.
>
> I personally am stuck with a need to fix some very similar permissions
> needs for my current project for the Florida Public Archaeology Network,
> but have been stalled on data migration for a while now too... I will be
> sure to let you know when I am able to make some progress.
>
> Adam
>
>
>
> On Mon, Nov 6, 2017 at 5:58 AM, Darcy Christ <da...@1000camels.com> wrote:
>
>> Hi Phil,
>>
>> I think you are misunderstanding what I am saying. Arches is a database
>> that allows people to collect heritage information to share with the
>> public. It is completely reasonable to enter data and not immediately make
>> it public. Especially while developing, collaborating and validating the
>> resource. Every CMS I have worked with has this feature. I am happy to
>> develop it. All I am looking for is some help understanding Arches.
>>
>> Regards,
>> Darcy
>>
>>
>> Darcy W. Christ
>> @1000camels
>>
>> On 6 Nov 2017, at 7:16 pm, Carlisle, Philip <
>> philip.carli...@historicengland.org.uk> wrote:
>>
>> Thanks for clarifying Darcy.
>>
>> As a publically funded body we cannot hide specific resources but we can
>> limit access to certain attributes of a resource.
>>
>>
>>
>> I think a function which allowed you to filter and hide resources
>> labelled with a specific tag should work.
>>
>>
>>
>> Regards
>>
>>
>>
>> Phil
>>
>>
>>
>>
>>
>>
>>
>> *Phil Carlisle*
>>
>> Knowledge Organization Specialist
>>
>> Listing Group, Historic England
>>
>> Direct Dial: +44 (0)1793 414824 <+44%201793%20414824>
>>
>>
>>
>> http://thesaurus.historicengland.org.uk/
>>
>> http://www.heritagedata.org/blog/
>>
>>
>>
>> Listing Information Services fosters an environment where colleagues 

Re: [Arches] Hiding certain resources

2017-11-05 Thread Alexei Peters
Hi Darcy,
First off, are you using Arches v3 or v4?
-Alexei

On Nov 4, 2017 11:01 PM, "Darcy Christ" <da...@1000camels.com> wrote:

> Hi Alexei,
>
> It’s a very important feature we need to implement. What do you think
> about using a keyword to filter specific resources? Would you be able to
> some guidance on where you think this filter would need to be applied? We
> would need to make sure that not only the reports themselves would not be
> visible, but also that it wouldn’t appear in searches or on the map. I am
> not familiar with the code enough to know whether there is somewhere in the
> methods that load the resources that I could apply. Filter.
>
>
> Darcy W. Christ
> @1000camels
>
> On 5 Nov 2017, at 5:26 am, Alexei Peters <apet...@fargeo.com> wrote:
>
> Hi Darcy,
> There currently isn't a way to do this, but it's a use-case that we're
> aware of.
> -Alexei
>
>
> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
> <(971)%20227-3173>
>
> On Sat, Nov 4, 2017 at 12:44 AM, Darcy Christ <da...@1000camels.com>
> wrote:
>
>> Is there a way to hide specific resources from anonymous users?
>>
>> We are working on a project where there is a need to have some heritage
>> sites in the system not be publicly available. I can imagine some way to
>> hide resources with a given keyword. Does this makes sense? Has anyone done
>> this?
>>
>> Regards,
>> Darcy
>>
>> --
>> -- 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/fo
>> rum/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.
>>
>
>

-- 
-- 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.


Re: [Arches] Hiding certain resources

2017-11-04 Thread Alexei Peters
Hi Darcy,
There currently isn't a way to do this, but it's a use-case that we're
aware of.
-Alexei


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

On Sat, Nov 4, 2017 at 12:44 AM, Darcy Christ  wrote:

> Is there a way to hide specific resources from anonymous users?
>
> We are working on a project where there is a need to have some heritage
> sites in the system not be publicly available. I can imagine some way to
> hide resources with a given keyword. Does this makes sense? Has anyone done
> this?
>
> Regards,
> Darcy
>
> --
> -- 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.
>

-- 
-- 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.


[Arches] Arches 4.0.1 released

2017-10-16 Thread Alexei Peters
*Arches 4.0.1 released!*

The Arches team has been busy trying to improve Arches and fix a several 
bugs as well.
Below you'll find a listing of all the changes that are included in the 
latest release.

Some of the highlights:
- Added advanced search capability
- Added the ability to import shapefiles into Arches
- Containerized Arches with Docker 
([readme](https://github.com/archesproject/arches/blob/master/docker/Readme.md))
  
- Thanks to Vincent Meijer!
- Several performance improvements
- Many small improvements to the RDM
- Upgraded to Postgres 9.6
- Many other small improvements

*Upgrading Postgres*
Because of the upgrade to Postgres 9.6, users will have to install Postgres 
9.6 and migrate any Arches databases to the 9.6 version.  Be aware that 
multiple versions of Postgres can be run simultaneously on different ports, 
so users can maintain their older versions of the Arches database until 
they are satisfied that the migration was successful.  Using the 
backup/restore options with PgAdmin4 is probably the easiest way to perform 
the upgrade.

*Upgrading Arches*
Users are encouraged to update at their earliest convenience.  Completely 
re-installing Arches is the easiest way to accomplish this.

If you can't completely re-install Arches (because you have data in the 
system that you want to preserve) then you'll need to upgrade by running 
the following commands in your activated virtual environment (make sure you 
migrate your database to Postges 9.6 first):

```
pip install arches --upgrade
python manage.py migrate
```

As always the documentation can be found at 
http://arches4.readthedocs.io/en/latest/

*Changes*

- Change Postgres version from 9.5 to 9.6
- Add Docker integration, re #1650 - Thanks to Vincent Meijer!
- Updated project templates with TILE_CACHE_CONFIG setting, re #1662
- Don't allow the system settings graph to be managed as a resource graph, 
re #1636
- Add vector simplification and make a system setting
- Add resource instance datatype and widget #2305
- Changing the ResourceXResource relationshiptype property from a foreign 
key to the Value table to a string so that it supports both concept value 
uuids (as strings) and ontology property strings., re #2300
- Remove Networkx package anymore, re #2306
- Added advanced search component re #2315
- Implemented xy input in search, re #2323
- Add our own arches specific additions to the crm, re #2306
- Loading selected point coordinates into xy tool, re #2323
- make sure users don't reload the same ontology multiple times (based on 
file name), re #2306
- Refactored code to be more readable and use revised folder structure. 
Also started supporting loading from a local zip file. re #2335
- Clean up positioning of map widget tools, support scroll of overlay grid
- Added functions to load custom widgets, functions, and datatypes, re #2335
- Fix business data export bugs. Add support for universal new line mode on 
import. Add info about non-contiguous groups on import. re #2360 re #2361
- Fix bug with csv export of grouped business data. Add default 
'file_field_name' to mapping file template. re #2367
- Added user prompt to overwrite existing graphs
- Add rdf format for resource export, re #2307
- Simplify the export of resource relations, re #2307
- Add Easting/Northing map widget geometry creation tool
- Use fully qualified ontology class and property names, re #2307
- Add create_package command, re #2335
- Modify json import to overwrite existing tiles on import. re #2394
- Added the ability to copy a resource instance, re #2346
- Allow a super user to access the system settings page regardless of 
whether there are resource graphs in the system, re #2316
- Upgraded mapbox gl js (& draw tools) re #2410
- Making a collection from a given concept, re #2200
- Permit users to change node configs when a node belongs to a nodegroup to 
which business data has not been saved, re #2342
- Add support for shapefiles import, re #1543
- Add label based concept business data import, re #2426
- Change name of mapbox_styles directory to mapbox_spec_styes for 
clarification, re #2335
- Make the RDM ui a bit more responsive, re #2199
- Added ability to load additional resources from the node list entry, re 
#2112
- Added the ability to change your password, re #282
- Add a bulk indexing method for concepts, re #2199
- Improve performance when listing parent concepts in the manage parent 
concepts modal, re #2199
- Adding isrequired to the node model and ability to toggle required nodes 
in cards and in the graph designer, re #363
- Record the original URI of concepts when importing skos files, re #245
- When importing from the AAT make sure to capture the AAT identifier, re 
#245
- Add feedback when deleting a concept scheme, re #1583
- Add label import support for domain-value datatype, re #2426
- Added pagination to related resources to prevent large numbers of 
relationships from crashing browser, re #2112
- Update in-app help 

Re: [Arches] Re: Confusion with initial setup of v4

2017-09-21 Thread Alexei Peters
Hi Darcy,
I agree with you when you say that your installation may be incorrect.
Those buttons you mention on the left doing nothing were removed before we
released v4 (although you're making me second guess myself now).
Did you pip install Arches or are you pulling from the repo?
Cheers,
Alexei


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

On Thu, Sep 21, 2017 at 6:30 AM, Vincent Meijer 
wrote:

> Hey Darcy,
>
> Using instance in the link you provided, I was able to go to System
> Settings and see the Mapbox API field: http://heritage.hku.hk/
> hongkong_v4/settings/#9cbea111-3cda-11e7-b374-c4b301baab9f
>
> What browser are you on? I am using Chrome without trouble (albeit your
> instance is a little slow).
>
>
> As for the bower_components 404 errors, could it be that your Arches
> custom app has an outdated bower.json ?
> Are the packages you see errors for present in your bower.json?
> See if this version differs from yours: https://github.com/
> archesproject/arches/blob/4.0.0/arches/install/arches-
> templates/project_name/bower.json
>
>
> Best,
> Vincent
>
>
> On Thursday, 21 September 2017 02:14:28 UTC-4, Darcy Christ wrote:
>>
>> Hi,
>>
>> I am still fumbling around trying to understand v4. After several
>> attempts to get it installed on both my dev machine (mac osx) and our
>> production (centos), I seem to have a working version. However, something
>> doesn't seem quite right. It may be a matter of me not understanding what I
>> am looking at.
>>
>> To begin with, I cannot for the life of me find Map Settings –> Mapbox
>> API, as stated in this documentation: https://arches4.readthedocs.io
>> /en/latest/initial-configuration/#map-settings
>>
>> I have logged on with admin/admin.
>>
>> So many of the icons on the left side do nothing, including 'Dashboard',
>> 'System Settings', 'Field Project Manager', 'Import/Export Manager' and
>> 'Profile Manager'. I suspect my installation is not good, but I am not sure
>> what is wrong or what to do about it.
>>
>> Here is an example of one version I have tried to configure:
>> http://heritage.hku.hk/hongkong_v4/
>>
>>
>> One last thing, which might point to an issue. Although I have installed
>> bower, when I access the search, I see this in the log:
>>
>> [21/Sep/2017 01:05:07] "GET /search HTTP/1.1" 200 143878
>> [21/Sep/2017 01:05:07] "GET /media/bower_components/nvd3/build/nv.d3.min.css
>> HTTP/1.1" 404 1848
>> [21/Sep/2017 01:05:07] "GET /media/bower_components/leaflet/dist/leaflet.css
>> HTTP/1.1" 404 1848
>> [21/Sep/2017 01:05:07] "GET 
>> /media/bower_components/leaflet-draw/dist/leaflet.draw.css
>> HTTP/1.1" 404 1878
>> [21/Sep/2017 01:05:08] "GET /media/bower_components/mapbox-gl-draw/index.js
>> HTTP/1.1" 404 1845
>>
>>
>> Any help is appreciated
>>
>>
>> Regards,
>> Darcy
>>
> --
> -- 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.
>

-- 
-- 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.


[Arches] Upgrading from Arches v4.0b3 project to v4.0

2017-07-28 Thread Alexei Peters
Hello Everyone,
If you happened to install Arches v4.0b3 and created a project using the 
"arches-project create" command and want to keep that project then the 
following instructions are for you!

The first thing to do is download the attached python script file 
(update_project.py).

The script file takes the path of the project root as the only positional 
argument. Example:

*python update_project.py 
~/Documents/projects/GCI/arches_v4/myproject/myproject*


Running this script will do the following:

   1. Add an empty arches.log file in root.
   2. Create a directory called logs in root if it doesn't exist and add an 
   empty file called 'resource_import.log'.
   3. Create a file in root called 'proposed_settings.py' which is a copy 
   of the project's original settings.py file plus the new v4 settings.
   4. Download the bower.json file to root and name it 'proposed_bower.json'
   
Once you run this file you just need to:

   1. Review 'proposed_settings.py' and either rename it 'settings.py' or 
   copy its contents to 'settings.py'.
   2. Rename 'proposed_bower.json' to 'bower.json' or copy its contents to 
   'bower.json'.

Finally, *MAKE A BACKUP OF YOUR DATABASE**,* then cd into the root of the 
project and then run the following commands from an activated virtual 
environment:

   1. pip install arches --upgrade
   2. python manage.py migrate
   3. bower install (from the directory where the bower.json file exists)
   4. bower prune
   
Go into your /templates directory and remove the following files, unless 
you've modified them, in which case you'll need to get new copies of those 
files from here (
https://github.com/archesproject/arches/tree/4.0.0/arches/app/templates) 
and apply your modifications to those new files:

   1. base-manager.htm
   2. login.htm

Now start Arches.

   1. open a browser (Google chrome)
   2. login to Arches as 'admin'
   3. navigate to /settings
   4. update your Mapbox API Key (Go to Map Settings –> Mapbox API) (the 
   old location for the key is in settings.py)
   

For further settings help go here: 
http://arches4.readthedocs.io/en/latest/initial-configuration/
That's it!  Arches v4 should be running properly!
If you have any further questions please post them to the forum and we'll 
try to answer them as soon as we can.

Cheers,
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.
For more options, visit https://groups.google.com/d/optout.
import argparse
import os
import string
import textwrap
import urllib

def get_args():
parser = argparse.ArgumentParser()
parser.add_argument("target", help="The project to be updated. This should the full path to the project root (where bower.json is located). For example 'Documents/projects/myproject/myproject'")
return parser.parse_args()

def add_log_files(project_path):

if os.path.exists(os.path.join(project_path, 'logs')) == False:
os.mkdir(os.path.join(project_path, 'logs'))
print 'created directory', os.path.join(project_path, 'logs')

if os.path.exists(os.path.join(project_path, 'logs', 'resource_import.log')) == False:
open(os.path.join(project_path, 'logs', 'resource_import.log'), 'w').close()
print 'added file', os.path.join(project_path, 'logs', 'resource_import.log')

else:
print os.path.join(project_path, 'logs', 'resource_import.log'), 'already exists'

if os.path.exists(os.path.join(project_path, 'arches.log')) == False:
open(os.path.join(project_path,'arches.log'), 'w').close()
print 'added file', os.path.join(project_path,'arches.log')

else:
print os.path.join(project_path, 'arches.log'), 'already exists'

def add_proposed_settings(project_path):
template_context = {'project_name': os.path.split(project_path)[1]}

new_settings = string.Template('''
TEMPLATES[0]['DIRS'].append(os.path.join(APP_ROOT, 'widgets', 'templates'))
DATATYPE_LOCATIONS.append('$project_name.datatypes')
RESOURCE_IMPORT_LOG = os.path.join(APP_ROOT, 'logs', 'resource_import.log')

LOGGING = {   'disable_existing_loggers': False,
'handlers': {   'file': {   'class': 'logging.FileHandler',
'filename': os.path.join(APP_ROOT, 'arches.log'),
'level': 'DEBUG'}},
'loggers': {   'arches': {   'handlers': [   'file'],
 'level': 'DEBUG',
 'propagate': True}},

[Arches] Arches v4.0 released

2017-07-27 Thread Alexei Peters
Hi Everyone,

The Arches team is happy to announce the v4.0 release of Arches!  We're 
super excited about this new version and hope you are too!
Once you have Arches installed we strongly recommend reviewing the 
documentation found here: (http://arches4.readthedocs.io/en/latest/).

If you're insalling Arches for the first time, please follow the 
instructions found here: 
http://arches4.readthedocs.io/en/latest/installation/
and then here:
http://arches4.readthedocs.io/en/latest/initial-configuration/

If you're upgrading from v4.0b3, look for more information about upgrading 
shortly.

If you have any further questions please post them to the forum and we'll 
try to answer them as soon as we can.

Cheers,
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.
For more options, visit https://groups.google.com/d/optout.


Re: [Arches] Elasticsearch requirements

2017-07-14 Thread Alexei Peters
Hi Vincent,
I'm using a scripted aggregation to power search terms and at one point
needed that setting, although I just tested and it seems like maybe now
it's not needed.
I'm a bit hesitant to remove it just yet as I would like to test a bit more.
Cheers,
Alexei


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

On Wed, Jul 5, 2017 at 8:44 AM, Vincent Meijer 
wrote:

> I just noticed that the installation readme for Elasticsearch has been
> expanded to include these settings:
>
> script.inline: true
> script.indexed: true
>
>
>
> I am currently using AWS Elasticsearch Service, which does not allow the
> configuration of any settings of this kind.
> Arches does seem to work fine without them, at a first glance.
>
> So my question is: how vital are these settings for the functioning of
> Arches?
>
>
> Thanks!
> Vincent
>
> --
> -- 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.
>

-- 
-- 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.


Re: [Arches] Issues trying to install ARCHES 4 on Win10

2017-06-12 Thread Alexei Peters
Hi George,
It seems to me that Arches didn't install properly in the first place.
I would try a pip uninstall and then a pip install of Arches to see if this
fixes the issues you are seeing.
Cheers,
Alexei

On Jun 11, 2017 1:40 PM, "George Leventis"  wrote:

> *Hello Adam again!*
>
> *I run in the end the "pip install django-guardian"the guardian was
> installed successfully:*
>
> *C:\Projects\my_project>pip install django-guardian*
> *Collecting django-guardian*
> *  Using cached django_guardian-1.4.8-py2.py3-none-any.whl*
> *Collecting six (from django-guardian)*
> *  Using cached six-1.10.0-py2.py3-none-any.whl*
> *Installing collected packages: six, django-guardian*
> *Successfully installed django-guardian-1.4.8 six-1.10.0 *
>
> *So i thought to give a try the command for elasticsearch "python
> manage.py es install -d C:\Projects" inside my virtual env. but i got a
> message regarding psycopg2 that cannot be found as you may see below:*
>
> *(ENV) C:\Projects\my_project>python manage.py es install -d C:\Projects*
> *Traceback (most recent call last):*
> *  File "manage.py", line 29, in *
> *execute_from_command_line(sys.argv)*
> *  File
> "C:\Projects\ENV\lib\site-packages\django\core\management\__init__.py",
> line 363, in execute_from_command_line*
> *utility.execute()*
> *  File
> "C:\Projects\ENV\lib\site-packages\django\core\management\__init__.py",
> line 337, in execute*
> *django.setup()*
> *  File "C:\Projects\ENV\lib\site-packages\django\__init__.py", line 27,
> in setup*
> *apps.populate(settings.INSTALLED_APPS)*
> *  File "C:\Projects\ENV\lib\site-packages\django\apps\registry.py", line
> 108, in populate*
> *app_config.import_models()*
> *  File "C:\Projects\ENV\lib\site-packages\django\apps\config.py", line
> 202, in import_models*
> *self.models_module = import_module(models_module_name)*
> *  File "c:\python27\Lib\importlib\__init__.py", line 37, in import_module*
> *__import__(name)*
> *  File "C:\Projects\ENV\lib\site-packages\django\contrib\auth\models.py",
> line 4, in *
> *from django.contrib.auth.base_user import AbstractBaseUser,
> BaseUserManager*
> *  File
> "C:\Projects\ENV\lib\site-packages\django\contrib\auth\base_user.py", line
> 52, in *
> *class AbstractBaseUser(models.Model):*
> *  File "C:\Projects\ENV\lib\site-packages\django\db\models\base.py", line
> 124, in __new__*
> *new_class.add_to_class('_meta', Options(meta, app_label))*
> *  File "C:\Projects\ENV\lib\site-packages\django\db\models\base.py", line
> 330, in add_to_class*
> *value.contribute_to_class(cls, name)*
> *  File "C:\Projects\ENV\lib\site-packages\django\db\models\options.py",
> line 214, in contribute_to_class*
> *self.db_table = truncate_name(self.db_table,
> connection.ops.max_name_length())*
> *  File "C:\Projects\ENV\lib\site-packages\django\db\__init__.py", line
> 33, in __getattr__*
> *return getattr(connections[DEFAULT_DB_ALIAS], item)*
> *  File "C:\Projects\ENV\lib\site-packages\django\db\utils.py", line 211,
> in __getitem__*
> *backend = load_backend(db['ENGINE'])*
> *  File "C:\Projects\ENV\lib\site-packages\django\db\utils.py", line 115,
> in load_backend*
> *return import_module('%s.base' % backend_name)*
> *  File "c:\python27\Lib\importlib\__init__.py", line 37, in import_module*
> *__import__(name)*
> *  File
> "C:\Projects\ENV\lib\site-packages\django\contrib\gis\db\backends\postgis\base.py",
> line 2, in *
> *from django.db.backends.postgresql.base import \*
> *  File
> "C:\Projects\ENV\lib\site-packages\django\db\backends\postgresql\base.py",
> line 25, in *
> *raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)*
> *django.core.exceptions.ImproperlyConfigured: Error loading psycopg2
> module: No module named psycopg2*
>
> *Then i tried to install the missing module both as an .exe from here
> (http://www.stickpeople.com/projects/python/win-psycopg/
> ) but also through
> a command for python27 (win 64bits) from here
> (https://github.com/nwcell/psycopg2-windows
> ) but still i got the same
> error as above.*
>
> *So i do not know what should i do next for the elasticsearch to get
> installed so to continue with setting the db etc. Maybe should i try
> installing it outside Arches as is described here
> (https://github.com/archesproject/arches/wiki/Installing-Elasticsearch
> ) or
> should i do another work around?*
>
> *Thank you very much in advance for your guidance!*
> *George.*
>
> Τη Κυριακή, 11 Ιουνίου 2017 - 1:24:21 μ.μ. UTC+3, ο χρήστης George
> Leventis έγραψε:
>>
>> I have corrected the previous error...seems django was not installed
>> after all so i installed it at the virtual environment folder...run the
>> command to create New Arches Project and indeed the folder was created
>> outside the 

Re: [Arches] Problems loading Arches 4

2017-06-09 Thread Alexei Peters
Hi Peter,
Try following the instructions for installing Arches, found here:
http://arches4.readthedocs.io/en/latest/installation/
Cheers,
Alexei


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

On Thu, Jun 8, 2017 at 6:34 AM,  wrote:

> Greetings
>
> I have managed to load Arches on my desk machine (El Capitan) but am
> encountering problems on my laptop (Sierra). Rather than post numerous
> lines of code I have copied the beginning from Terminal:
>
> Last login: Thu Jun  8 13:58:06 on ttys000
>
> Drs-MacBook-Pro:~ drpeterchowne$ mkdir Projects && cd Projects
>
> Drs-MacBook-Pro:Projects drpeterchowne$ virtualenv ENV
>
> New python executable in /Users/drpeterchowne/Projects/ENV/bin/python
>
> Installing setuptools, pip, wheel...done.
>
> Drs-MacBook-Pro:Projects drpeterchowne$ source ENV/bin/activate
>
> (ENV) Drs-MacBook-Pro:Projects drpeterchowne$ pip install arches==4.0b3
>
> Collecting arches==4.0b3
>
>   Downloading arches-4.0b3.tar.gz (39.4MB)
>
> 100% || 39.5MB 35kB/s
>
> Building wheels for collected packages: arches
>
>   Running setup.py bdist_wheel for arches ... error
>
>   Complete output from command /Users/drpeterchowne/Projects/ENV/bin/python
> -u -c "import setuptools, tokenize;__file__='/private/var/folders/4k/n_
> 230z8j78d56gsy2f2mrrzrgn/T/pip-build-zlHmlB/arches/setup.py';f=getattr(tokenize,
> 'open', open)(__file__);code=f.read().replace('\r\n',
> '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d
> /var/folders/4k/n_230z8j78d56gsy2f2mrrzrgn/T/tmpYgiQ5Vpip-wheel-
> --python-tag cp27:
>
>   running bdist_wheel
>
>   running build
>
>   running build_py
>
>   creating build
>
>   creating build/lib
>
>   creating build/lib/arches
>
>   copying arches/__init__.py -> build/lib/arches
>
>   copying arches/admin.py -> build/lib/arches
>
>   copying arches/fabfile.py -> build/lib/arches
>
>   copying arches/settings.py -> build/lib/arches
>
>   copying arches/setup.py -> build/lib/arches
>
>   copying arches/urls.py -> build/lib/arches
>
>   copying arches/wsgi.py -> build/lib/arches
>
>   creating build/lib/arches/app
>
>   copying arches/app/__init__.py -> build/lib/arches/app
>
>   creating build/lib/arches/db
>
>   copying arches/db/__init__.py -> build/lib/arches/db
>
>   copying arches/db/utils.py -> build/lib/arches/db
>
>   creating build/lib/arches/install
>
>   copying arches/install/__init__.py -> build/lib/arches/install
>
>   creating build/lib/arches/logs
>
>   copying arches/logs/__init__.py -> build/lib/arches/logs
>
>   creating build/lib/arches/management
>
>   copying arches/management/__init__.py -> build/lib/arches/management
>
>   creating build/lib/arches/templatetags
>
>   copying arches/templatetags/__init__.py -> build/lib/arches/templatetags
>
>   copying arches/templatetags/template_tags.py ->
> build/lib/arches/templatetags
>
>   creating build/lib/arches/app/datatypes
>
>   copying arches/app/datatypes/__init__.py ->
> build/lib/arches/app/datatypes
>
>   copying arches/app/datatypes/base.py -> build/lib/arches/app/datatypes
>
>   copying arches/app/datatypes/concept_types.py ->
> build/lib/arches/app/datatypes
>
>   copying arches/app/datatypes/datatypes.py ->
> build/lib/arches/app/datatypes
>
>   creating build/lib/arches/app/functions
>
>   copying arches/app/functions/__init__.py ->
> build/lib/arches/app/functions
>
>   copying arches/app/functions/base.py -> build/lib/arches/app/functions
>
>   copying arches/app/functions/local_file_storage.py ->
> build/lib/arches/app/functions
>
>   copying arches/app/functions/primary_descriptors.py ->
> build/lib/arches/app/functions
>
>   copying arches/app/functions/required_nodes.py ->
> build/lib/arches/app/functions
>
>   creating build/lib/arches/app/models
>
>   copying arches/app/models/__init__.py -> build/lib/arches/app/models
>
>   copying arches/app/models/card.py -> build/lib/arches/app/models
>
>   copying arches/app/models/concept.py -> build/lib/arches/app/models
>
>   copying arches/app/models/edit_history.py -> build/lib/arches/app/models
>
>   copying arches/app/models/entity.py -> build/lib/arches/app/models
>
>   copying arches/app/models/forms.py -> build/lib/arches/app/models
>
>   copying arches/app/models/graph.py -> build/lib/arches/app/models
>
>   copying arches/app/models/models.py -> build/lib/arches/app/models
>
>   copying arches/app/models/resource.py -> build/lib/arches/app/models
>
>   copying arches/app/models/tile.py -> build/lib/arches/app/models
>
>   copying arches/app/models/validations.py -> build/lib/arches/app/models
>
>   creating build/lib/arches/app/search
>
>   copying arches/app/search/__init__.py -> build/lib/arches/app/search
>
>   copying arches/app/search/elasticsearch_dsl_builder.py ->
> build/lib/arches/app/search
>
>   copying arches/app/search/mappings.py -> build/lib/arches/app/search
>
>   copying arches/app/search/search.py -> 

Re: [Arches] IDE for Django

2017-05-30 Thread Alexei Peters
It looks like I have version 0.10.1 of ipdb.


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

On Tue, May 30, 2017 at 10:11 AM, Viktor_Getty <vik...@getty.edu> wrote:

> Hi Alexei,
>
> Thank you for your reply. May I ask what version of IPDB do you use? I
> tried to install default with PIP, but failed. What is the appropriate
> version for Python 2.7?
>
> Thank you,
> Viktor
>
> On Thursday, May 25, 2017 at 10:06:20 AM UTC-7, Alexei Peters wrote:
>
>> Hi Viktor,
>> I actually don't use a debugger with Sublime.  Debugging python is not
>> like debugging .NET for example (VS is really great in that respect).
>> To debug I use ipdb a python module.
>> To use, simply import ipdb (https://pypi.python.org/pypi/ipdb) into the
>> module that you want to debug and then I put a "ipdb.set_trace()" command
>> where I want to set a breakpoint.
>> Here's a list of commands you can use with ipdb :
>> https://docs.python.org/2/library/pdb.html#debugger-commands
>> Hope that helps!
>> Cheers,
>> Alexei
>>
>>
>>
>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>> <(971)%20227-3173>
>>
>> On Tue, May 16, 2017 at 12:34 PM, Viktor_Getty <vik...@getty.edu> wrote:
>>
>>> Hi Alexei,
>>>
>>> I installed Sublime Text 3 and was able to customize it to my needs.
>>> However I found it does not include a debugger. What debugger do you use
>>> with this text editor?
>>>
>>> Thank you,
>>> Viktor
>>>
>>>
>>> On Thursday, May 11, 2017 at 10:04:13 AM UTC-7, Alexei Peters wrote:
>>>
>>>> Hi Vincent,
>>>> I personally use Sublime Text (https://www.sublimetext.com/) and there
>>>> are others in our office that use Atom (https://atom.io/).
>>>> I don't use any kind of automatic linter, but sublime as well as atom
>>>> both support a rich ecosystem of plugins.  A little googing found these (
>>>> https://github.com/squ1b3r/Djaneiro) and (https://atom.io/packages/djan
>>>> go-atom).  There are more.
>>>> Hope that helps,
>>>> Alexei
>>>>
>>>>
>>>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>>>
>>>> On Tue, May 9, 2017 at 10:27 AM, Vincent Meijer <meijer@gmail.com>
>>>> wrote:
>>>>
>>>>> I'm curious to learn which IDE people use to develop Arches (core) or
>>>>> their Arches custom app.
>>>>>
>>>>> I currently use Visual Studio Code with the python and Django Template
>>>>> extensions.
>>>>> Although I really like VSC, when developing Django templates I get a
>>>>> lot of false linting errors, as it doesn't seem to understand Django all
>>>>> tags (e.g. tags like {% autoescape off %}  in 
>>>>> arches/app/templates/base-mana
>>>>> ger.htm).
>>>>>
>>>>> Do other people have more success with Django development?
>>>>>
>>>>> Best,
>>>>> Vincent
>>>>>
>>>>>
>>>>> --
>>>>> -- 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.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>> --
>>> -- 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.
>>> 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.
>

-- 
-- 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.


Re: [Arches] IDE for Django

2017-05-25 Thread Alexei Peters
Hi Viktor,
I actually don't use a debugger with Sublime.  Debugging python is not like
debugging .NET for example (VS is really great in that respect).
To debug I use ipdb a python module.
To use, simply import ipdb (https://pypi.python.org/pypi/ipdb) into the
module that you want to debug and then I put a "ipdb.set_trace()" command
where I want to set a breakpoint.
Here's a list of commands you can use with ipdb :
https://docs.python.org/2/library/pdb.html#debugger-commands
Hope that helps!
Cheers,
Alexei



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

On Tue, May 16, 2017 at 12:34 PM, Viktor_Getty <vik...@getty.edu> wrote:

> Hi Alexei,
>
> I installed Sublime Text 3 and was able to customize it to my needs.
> However I found it does not include a debugger. What debugger do you use
> with this text editor?
>
> Thank you,
> Viktor
>
>
> On Thursday, May 11, 2017 at 10:04:13 AM UTC-7, Alexei Peters wrote:
>
>> Hi Vincent,
>> I personally use Sublime Text (https://www.sublimetext.com/) and there
>> are others in our office that use Atom (https://atom.io/).
>> I don't use any kind of automatic linter, but sublime as well as atom
>> both support a rich ecosystem of plugins.  A little googing found these (
>> https://github.com/squ1b3r/Djaneiro) and (https://atom.io/packages/djan
>> go-atom).  There are more.
>> Hope that helps,
>> Alexei
>>
>>
>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>> <(971)%20227-3173>
>>
>> On Tue, May 9, 2017 at 10:27 AM, Vincent Meijer <meijer@gmail.com>
>> wrote:
>>
>>> I'm curious to learn which IDE people use to develop Arches (core) or
>>> their Arches custom app.
>>>
>>> I currently use Visual Studio Code with the python and Django Template
>>> extensions.
>>> Although I really like VSC, when developing Django templates I get a lot
>>> of false linting errors, as it doesn't seem to understand Django all tags
>>> (e.g. tags like {% autoescape off %}  in arches/app/templates/base-mana
>>> ger.htm).
>>>
>>> Do other people have more success with Django development?
>>>
>>> Best,
>>> Vincent
>>>
>>>
>>> --
>>> -- 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.
>>> 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.
>

-- 
-- 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.


Re: [Arches] load_resources command not working

2017-05-19 Thread Alexei Peters
Hi Joel,
Have you been able to load this file successfully before?
Don't you need the -s flag when running that command?

python manage.py packages -o load_resources -s
/home/ubuntu/Projects/phm2app/phm2app/source_data/business_data/2017-05-13/may13tagbilaran.arches


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

On Fri, May 19, 2017 at 12:21 AM, Joel Aldor <joel.al...@gmail.com> wrote:

> HI all,
>
> Would like to follow-up on this one.
>
> Thanks,
>
> Joel
>
>
> On Tuesday, May 16, 2017 at 5:27:17 AM UTC+8, Joel Aldor wrote:
>>
>> Hi Alexei,
>>
>> Yes, Elasticsearch is working.
>>
>> On Tuesday, May 16, 2017 at 1:07:07 AM UTC+8, Alexei Peters wrote:
>>>
>>> Hi Joel,
>>> Besides just trying to load those resources again, have you confirmed
>>> that ES is running?
>>> -Alexei
>>>
>>>
>>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>> <(971)%20227-3173>
>>>
>>> On Sat, May 13, 2017 at 7:47 AM, Joel Aldor <joel@gmail.com> wrote:
>>>
>>>> Hi all,
>>>>
>>>> Tried to load an arches file today and it didn't load the resources
>>>> properly for some strange reason. It didn't give out any error messages
>>>> though. Not even on the log files. This is the very first time it happened
>>>> and we're able to successfully load arches files in the past. Checked both
>>>> the .arches file and .relations file and they seem to be OK. Should I be
>>>> looking somewhere else to check?
>>>>
>>>> (ENV2)ubuntu@PHMARCHES3DEV:~/Projects/phm2app$ python manage.py
>>>> packages -o load_resources /home/ubuntu/Projects/phm2app/
>>>> phm2app/source_data/business_data/2017-05-13/may13tagbilaran.arches
>>>> operation: load_resources
>>>> package: phm2app
>>>> (ENV2)ubuntu@PHMARCHES3DEV:~/Projects/phm2app$
>>>>
>>>> Thanks,
>>>>
>>>> Joel
>>>>
>>>> --
>>>> -- 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.
>>>> 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.
>

-- 
-- 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.


Re: [Arches] load_resources command not working

2017-05-15 Thread Alexei Peters
Hi Joel,
Besides just trying to load those resources again, have you confirmed that
ES is running?
-Alexei


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

On Sat, May 13, 2017 at 7:47 AM, Joel Aldor  wrote:

> Hi all,
>
> Tried to load an arches file today and it didn't load the resources
> properly for some strange reason. It didn't give out any error messages
> though. Not even on the log files. This is the very first time it happened
> and we're able to successfully load arches files in the past. Checked both
> the .arches file and .relations file and they seem to be OK. Should I be
> looking somewhere else to check?
>
> (ENV2)ubuntu@PHMARCHES3DEV:~/Projects/phm2app$ python manage.py packages
> -o load_resources /home/ubuntu/Projects/phm2app/
> phm2app/source_data/business_data/2017-05-13/may13tagbilaran.arches
> operation: load_resources
> package: phm2app
> (ENV2)ubuntu@PHMARCHES3DEV:~/Projects/phm2app$
>
> Thanks,
>
> Joel
>
> --
> -- 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.
>

-- 
-- 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.


Re: [Arches] IDE for Django

2017-05-11 Thread Alexei Peters
Hi Vincent,
I personally use Sublime Text (https://www.sublimetext.com/) and there are
others in our office that use Atom (https://atom.io/).
I don't use any kind of automatic linter, but sublime as well as atom both
support a rich ecosystem of plugins.  A little googing found these (
https://github.com/squ1b3r/Djaneiro) and (
https://atom.io/packages/django-atom).  There are more.
Hope that helps,
Alexei


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

On Tue, May 9, 2017 at 10:27 AM, Vincent Meijer 
wrote:

> I'm curious to learn which IDE people use to develop Arches (core) or
> their Arches custom app.
>
> I currently use Visual Studio Code with the python and Django Template
> extensions.
> Although I really like VSC, when developing Django templates I get a lot
> of false linting errors, as it doesn't seem to understand Django all tags
> (e.g. tags like {% autoescape off %}  in arches/app/templates/base-
> manager.htm).
>
> Do other people have more success with Django development?
>
> Best,
> Vincent
>
>
> --
> -- 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.
>

-- 
-- 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.


Re: [Arches] Arches Installation Unable to run Django Server

2017-04-25 Thread Alexei Peters
Hi Susan,
What changed between last week and this?  Have you pip installed Arches, or
are you running directly from the repository?
Obviously something changed.  It just a matter of pip pointing what.
Cheers,
Alexei


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

On Tue, Apr 25, 2017 at 12:09 PM, Susan Penacho  wrote:

> Hi,
> Last week I had Arches up and running where I could log in and see the
> main arches interface through the localhost. However, this week, I can no
> longer run the Django server to launch arches. I am working on a local
> computer with Windows 10 which I am using to build our graphs before it
> goes live on a remote server. Any help would be much appreciated.
>
> After activating the virtual environment and starting elastic search, when
> I try to run the Django server I get the following error:
>
>
>
> (ENV) C:\ArchesProjects\arches>python manage.py runserver
>
> Traceback (most recent call last):
>
>   File "manage.py", line 22, in 
>
> from django.core.management import execute_from_command_line
>
>   File "C:\Python27\lib\site-packages\django\core\management\__init__.py",
> line 13, in 
>
> from django.core.management.base import (
>
>   File "C:\Python27\lib\site-packages\django\core\management\base.py",
> line 17, in 
>
> from django.db.migrations.exceptions import MigrationSchemaMissing
>
>   File "C:\Python27\lib\site-packages\django\db\migrations\__init__.py",
> line 2, in 
>
> from .operations import *  # NOQA
>
>   File 
> "C:\Python27\lib\site-packages\django\db\migrations\operations\__init__.py",
> line 1, in 
>
> from .fields import AddField, AlterField, RemoveField, RenameField
>
>   File 
> "C:\Python27\lib\site-packages\django\db\migrations\operations\fields.py",
> line 3, in 
>
> from django.db.models.fields import NOT_PROVIDED
>
>   File "C:\Python27\lib\site-packages\django\db\models\__init__.py", line
> 14, in 
>
> from django.db.models.fields.files import FileField, ImageField
>
>   File "C:\Python27\lib\site-packages\django\db\models\fields\files.py",
> line 10, in 
>
> from django.core.files.storage import default_storage
>
>   File "C:\Python27\lib\site-packages\django\core\files\storage.py", line
> 13, in 
>
> from django.utils.crypto import get_random_string
>
>   File "C:\Python27\lib\site-packages\django\utils\crypto.py", line 8, in
> 
>
> import hmac
>
>   File "C:\Python27\Lib\hmac.py", line 8, in 
>
> from operator import _compare_digest as compare_digest
>
> ImportError: cannot import name _compare_digest
>
> --
> -- 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.
>

-- 
-- 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.


Re: [Arches] TypeError: sequence item 0: expected string, datetime.datetime

2017-04-20 Thread Alexei Peters
Wonderful!

On Apr 19, 2017 11:44 PM, "Darcy Christ" <da...@1000camels.com> wrote:

> Perfect, Alexei. That worked like a charm!
>
>
>
> Darcy W. Christ
> Digital Generalist
> @1000camels
>
>
>
> On Apr 20, 2017, at 4:36 PM, Alexei Peters <apet...@fargeo.com> wrote:
>
> Hi Darcy,
> Changing line 191 in "/home/hkarches/lib/python2.7/
> site-packages/arches_hip/models/resource.py"
>
> from this:
> entity_data.append(node.value)
>
> to this:
> entity_data.append(str(node.value))
>
> should fix the issue you're seeing.
>
> This is only temporary as nothing has been pushed to the HIP repo yet.
> Cheers,
> Alexei
>
> PS. v4 should be much more stable!
>
>
> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
> <(971)%20227-3173>
>
> On Wed, Apr 19, 2017 at 9:29 PM, Darcy Christ <da...@1000camels.com>
> wrote:
>
>> We keep getting intermittent errors updating information resources. The
>> messages do not make sense, since we are not even editing dates
>>
>> http://dpaste.com/3G0CBAE
>>
>>
>> Any help is appreciated.
>>
>>
>>
>> We haven't moved to v4 yet, but we're hoping the system is more stable,
>> as we've had tons of issues like this.
>>
>>
>>
>> Darcy
>>
>> --
>> -- 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.
>
>
>

-- 
-- 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.


Re: [Arches] TypeError: sequence item 0: expected string, datetime.datetime

2017-04-20 Thread Alexei Peters
Hi Darcy,
Changing line 191 in
"/home/hkarches/lib/python2.7/site-packages/arches_hip/models/resource.py"

from this:
entity_data.append(node.value)

to this:
entity_data.append(str(node.value))

should fix the issue you're seeing.

This is only temporary as nothing has been pushed to the HIP repo yet.
Cheers,
Alexei

PS. v4 should be much more stable!


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

On Wed, Apr 19, 2017 at 9:29 PM, Darcy Christ  wrote:

> We keep getting intermittent errors updating information resources. The
> messages do not make sense, since we are not even editing dates
>
> http://dpaste.com/3G0CBAE
>
>
> Any help is appreciated.
>
>
>
> We haven't moved to v4 yet, but we're hoping the system is more stable, as
> we've had tons of issues like this.
>
>
>
> Darcy
>
> --
> -- 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.
>

-- 
-- 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.


Re: [Arches] Getting Started

2017-04-12 Thread Alexei Peters
Hi David,
I think the command is
*./path/to/elasticsearch-5.2.1/bin/elasticsearch *
Notice the ./ (dot slash) at the beginning of the command.
I don't believe using "source" is correct​.  We'll have to fix the
documentation​.
-Alexei

On Apr 12, 2017 8:55 AM, "David Lopes" <cim...@gmail.com> wrote:

> Hi Adam,
>
> Is the command  *source path/to/elasticsearch-5.2.1/bin/elasticsearch *(
> https://github.com/archesproject/arches/wiki/Developer-Installation) or
> just *path/to/elasticsearch-5.2.1/bin/elasticsearch *(https://github.com/
> archesproject/arches/wiki/Installing-Elasticsearch) ?
>
> In the first case my ssh terminal shutsdown and in the later I get this
> message:
>
>
>
>
>
>
> *ubuntu@ip-172-31-22-235:~/Projects/arches$ OpenJDK 64-Bit Server VM
> warning: INFO: os::commit_memory(0x8533, 2060255232, 0) failed;
> error='Cannot allocate memory' (errno=12)## There is insufficient memory
> for the Java Runtime Environment to continue.# Native memory allocation
> (mmap) failed to map 2060255232 bytes for committing reserved memory.# An
> error report file with more information is saved as:#
> /home/ubuntu/Projects/arches/hs_err_pid28654.log*
>
>
>
>
> terça-feira, 11 de Abril de 2017 às 15:02:05 UTC+1, Adam Cox escreveu:
>>
>> Hi David, looking at your command, I think the issue is a rogue / at the
>> front of your path.
>>
>> If it turns out that you don't yet have elasticsearch installed, please
>> see this documentation: https://github.com/archesproject/arches/wiki/
>> Installing-Elasticsearch
>>
>> Adam
>>
>> On Tue, Apr 11, 2017 at 8:03 AM, David Lopes <cim...@gmail.com> wrote:
>>
>>>
>>>
>>> <https://lh3.googleusercontent.com/-H83B9ECIcck/WOzTvXtHMjI/DBg/LBTnsv3Fv5goNpZmyxhVl-iQ_ficO_fHgCLcB/s1600/2017-04-11.png>
>>>
>>> Hi Cyrus,
>>>
>>>
>>> <https://lh3.googleusercontent.com/-H83B9ECIcck/WOzTvXtHMjI/DBg/LBTnsv3Fv5goNpZmyxhVl-iQ_ficO_fHgCLcB/s1600/2017-04-11.png>Yes
>>> java 8 was missing, I installed it and rebooted, but then I get a message
>>> saying there is no file *elasticsearch*
>>> <https://lh3.googleusercontent.com/-H83B9ECIcck/WOzTvXtHMjI/DBg/LBTnsv3Fv5goNpZmyxhVl-iQ_ficO_fHgCLcB/s1600/2017-04-11.png>
>>>
>>>
>>>
>>> <https://lh3.googleusercontent.com/-H83B9ECIcck/WOzTvXtHMjI/DBg/LBTnsv3Fv5goNpZmyxhVl-iQ_ficO_fHgCLcB/s1600/2017-04-11.png>
>>>
>>>
>>> <https://lh3.googleusercontent.com/-H83B9ECIcck/WOzTvXtHMjI/DBg/LBTnsv3Fv5goNpZmyxhVl-iQ_ficO_fHgCLcB/s1600/2017-04-11.png>
>>>
>>>
>>>
>>>
>>>
>>> sexta-feira, 7 de Abril de 2017 às 17:36:51 UTC+1, Cyrus Hiatt escreveu:
>>>>
>>>> Hi David -
>>>>
>>>> Did you install your arches dependencies using ubuntu_xenial_setup.sh?
>>>> If so, there's a bug (which I am about to fix shortly) preventing java from
>>>> getting installed.
>>>>
>>>> In the meantime you might check if you have Java 8 installed:
>>>>
>>>> $ java -version
>>>>
>>>> If not, you can install it with the following:
>>>>
>>>> $ sudo apt-get install openjdk-8-jre-headless -y
>>>>
>>>> Hope that helps -
>>>>
>>>> Cyrus
>>>>
>>>> On Fri, Apr 7, 2017 at 9:08 AM, David Lopes <cim...@gmail.com> wrote:
>>>>
>>>>> Hi Alexei,
>>>>>
>>>>> I had a problem installing the depedencies. After solving it I ran the
>>>>> command  *python manage.py es install *and the folder appears, but
>>>>> when then I'm not able to run *~/Projects/arches$ source
>>>>> path/to/elasticsearch-5.2.1/bin/elasticsearch . *What do you think
>>>>> the problem might be?
>>>>>
>>>>> Thanks, regards.
>>>>>
>>>>>
>>>>>
>>>>> quarta-feira, 5 de Abril de 2017 às 17:48:10 UTC+1, Alexei Peters
>>>>> escreveu:
>>>>>>
>>>>>> Did you run the command
>>>>>>
>>>>>> *python manage.py es install*
>>>>>>
>>>>>>
>>>>>> Director of Web Development - Farallon Geographics, Inc. -
>>>>>> 971.227.3173
>>>>>>
>>>>>> On Wed, Apr 5, 2017 at 5:11 PM, David Lopes <cim...@gmail.com> wrote:
>>>>>>
>>

Re: [Arches] Cannot import sample dropdowns reference data for Arches v4 dev

2017-04-10 Thread Alexei Peters
Thanks Joel, I think Ryan updated the documentation to reflect that.
Cheers,
Alexei


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

On Mon, Apr 10, 2017 at 12:01 PM, Joel Aldor <joel.al...@gmail.com> wrote:

> Thank you very much Alex. Now I got the Arches v4 dev environment up and
> running!
>
> However I noticed that I got this error when importing business data.
>
> (ENV) ubuntu@ARCHESv4PROD:~/Projects/arches$ python manage.py packages -o
> import_business_data -s tests/fixtures/data/csv/
> heritage_resource_model.csv
> operation: import_business_data
> package: arches
> 
> 
> No overwrite option indicated. Please rerun command with '-ow' parameter.
> 
> 
>
>
>
> May I suggest an edit to this command: it should be run like this:
>
> (ENV) ubuntu@ARCHESv4PROD:~/Projects/arches$ python manage.py packages -o
> import_business_data -s /home/ubuntu/Projects/arches/
> tests/fixtures/data/csv/heritage_resource_model.csv -ow overwrite
> operation: import_business_data
> package: arches
> Time to import_business_data = 0:00:40.954979
> No import errors
>
>
> The reason is because the* -ow overwrite* parameter needs the absolute
> path of the CSV file, in order to import the business data properly.
>
> Thanks,
>
> Joel
>
> On Tuesday, April 11, 2017 at 1:42:03 AM UTC+8, Alexei Peters wrote:
>>
>> Hi Joel,
>> The name of the file has changed actually.  Instead of dropdowns.rdf it's
>> now "arches_concept_collections.rdf".  I've updated the wiki to reflect
>> the change.  You should be able to run the following command now.
>>
>> *python manage.py packages -o import_reference_data -s
>> arches/db/schemes/arches_concept_collections.rdf -ow overwrite -st keep*
>>
>> Cheers
>> Alexei
>>
>>
>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>> <(971)%20227-3173>
>>
>> On Mon, Apr 10, 2017 at 10:21 AM, Alexei Peters <ape...@fargeo.com>
>> wrote:
>>
>>> Hi Joel,
>>> That file needs to be fixed.  It was messed up recently and just hasn't
>>> been fixed.  I"ll make sure that gets fixed today.
>>> Cheers,
>>> Alexei
>>>
>>>
>>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>>
>>> On Fri, Apr 7, 2017 at 9:02 PM, Joel Aldor <joel@gmail.com> wrote:
>>>
>>>> Hi all,
>>>>
>>>> Tried to follow the instructions on https://github.com/archespr
>>>> oject/arches/wiki/Developer-Installation and I get this error when I
>>>> started to import the dropdown lists reference data:
>>>>
>>>> ubuntu@ARCHESv4PROD:~/Projects/arches$ python manage.py packages -o
>>>> impo
>>>>  _reference_data -s arches/db/schemes/dropdowns.rdf
>>>> -ow overwrite -st keep
>>>> operation: import_reference_data
>>>> package: arches
>>>> Traceback (most recent call last):
>>>>   File "manage.py", line 27, in 
>>>> execute_from_command_line(sys.argv)
>>>>   File 
>>>> "/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/django/core/
>>>>
>>>>management/__init__.py", line 353, in execute_from_command_line
>>>> utility.execute()
>>>>   File 
>>>> "/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/django/core/
>>>>
>>>>management/__init__.py", line 345, 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 348, 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 399, in execute
>>>> output = self.handle(*args, **options)
>>>>   File 
>>>> "/home/ubuntu/Projects/arches/arches/management/commands/packages.py",
>>>> li
>>>>ne 160, in handle
>>>> self.import_reference_data(options['source'],
>>>> options['overwrite'], options[
>>>&g

Re: [Arches] Cannot import sample dropdowns reference data for Arches v4 dev

2017-04-10 Thread Alexei Peters
Hi Joel,
The name of the file has changed actually.  Instead of dropdowns.rdf it's
now "arches_concept_collections.rdf".  I've updated the wiki to reflect the
change.  You should be able to run the following command now.

*python manage.py packages -o import_reference_data -s
arches/db/schemes/arches_concept_collections.rdf -ow overwrite -st keep*

Cheers
Alexei


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

On Mon, Apr 10, 2017 at 10:21 AM, Alexei Peters <apet...@fargeo.com> wrote:

> Hi Joel,
> That file needs to be fixed.  It was messed up recently and just hasn't
> been fixed.  I"ll make sure that gets fixed today.
> Cheers,
> Alexei
>
>
> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
> <(971)%20227-3173>
>
> On Fri, Apr 7, 2017 at 9:02 PM, Joel Aldor <joel.al...@gmail.com> wrote:
>
>> Hi all,
>>
>> Tried to follow the instructions on https://github.com/archespr
>> oject/arches/wiki/Developer-Installation and I get this error when I
>> started to import the dropdown lists reference data:
>>
>> ubuntu@ARCHESv4PROD:~/Projects/arches$ python manage.py packages -o impo
>>
>>_reference_data -s arches/db/schemes/dropdowns.rdf -ow
>> overwrite -st keep
>> operation: import_reference_data
>> package: arches
>> Traceback (most recent call last):
>>   File "manage.py", line 27, in 
>> execute_from_command_line(sys.argv)
>>   File 
>> "/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/django/core/
>>
>>management/__init__.py", line 353, in execute_from_command_line
>> utility.execute()
>>   File 
>> "/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/django/core/
>>
>>management/__init__.py", line 345, 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 348, 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 399, in execute
>> output = self.handle(*args, **options)
>>   File "/home/ubuntu/Projects/arches/arches/management/commands/packages.py",
>> li
>>ne 160, in handle
>> self.import_reference_data(options['source'], options['overwrite'],
>> options[
>>  'stage'])
>>   File "/home/ubuntu/Projects/arches/arches/management/commands/packages.py",
>> li
>>ne 351, in import_reference_data
>> rdf = skos.read_file(data_source)
>>   File "/home/ubuntu/Projects/arches/arches/app/utils/skos.py", line 56,
>> in read
>>_file
>> raise Exception('Error occurred while parsing the file %s' %
>> path_to_file)
>> Exception: Error occurred while parsing the file
>> arches/db/schemes/dropdowns.rdf
>>
>> This is the first error I've encountered with the installation process.
>>
>> Thanks for the help!
>>
>> Joel
>>
>> --
>> -- 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/fo
>> rum/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.
>>
>
>

-- 
-- 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.


Re: [Arches] Re: Using Arches Designer in v4

2017-04-10 Thread Alexei Peters
Sorry, that's right, we recently upgraded to 9.6 (required for spatial
clustering)


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

On Mon, Apr 10, 2017 at 10:20 AM, Adam Cox <mr.adam...@gmail.com> wrote:

> Hi Alexei, Arches actually requires 9.6, as far as I've understood it (and
> how we currently have it documented).
>
> Scott, it is a postgres version issue that you're seeing, just as Alexei
> said. If you do need to have multiple postgres versions on your machine,
> that is fine, you'll just have to make sure that Arches knows which port to
> find 9.6 on (you can do this in the settings.py or settings_local.py file).
>
> Adam
>
> On Mon, Apr 10, 2017 at 12:15 PM, Alexei Peters <apet...@fargeo.com>
> wrote:
>
>> Hi Scott,
>> What version of Postgres are you running?  Arches requires 9.5  Looking
>> at the error it looks like db schema wasn't loaded properly because of a
>> reference to a jsonb column.  As far as I know, jsonb wan't available until
>> Postgres 9.4
>> Just so you know, you can run multiple versions of Postgres on a single
>> machine if you're worried about upgrading (I'm in fact running 9.3, 9.4,
>> 9.5 and 9.6).
>> Cheers,
>> Alexei
>>
>>
>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>> <(971)%20227-3173>
>>
>> On Sat, Apr 8, 2017 at 9:11 AM, Scott Branting <scottbrant...@gmail.com>
>> wrote:
>>
>>> Perhaps related to this, I thought that Adam's .bat file ran through the
>>> setup_db step.  However, with Susan's issue with needing to do that step
>>> and Joel running into an error on the additional setup database commands, I
>>> tried to try recreating the database to see if I could solve this issue.  I
>>> ran python manage.py packages -o setup.db and ran into the following error.
>>>
>>> (ENV) C:\ArchesProjects\arches>python manage.py packages -o setup_db
>>> operation: setup_db
>>> package: arches
>>> Password for user postgres:
>>>  pg_terminate_backend
>>> --
>>> (0 rows)
>>>
>>>
>>> DROP DATABASE
>>> CREATE DATABASE
>>> Operations to perform:
>>>   Apply all migrations: sessions, admin, guardian, auth, models,
>>> contenttypes
>>> Running migrations:
>>>   Rendering model states... DONE
>>>   Applying contenttypes.0001_initial... OK
>>>   Applying auth.0001_initial... OK
>>>   Applying admin.0001_initial... OK
>>>   Applying admin.0002_logentry_remove_auto_add... OK
>>>   Applying contenttypes.0002_remove_content_type_name... OK
>>>   Applying auth.0002_alter_permission_name_max_length... OK
>>>   Applying auth.0003_alter_user_email_max_length... OK
>>>   Applying auth.0004_alter_user_username_opts... OK
>>>   Applying auth.0005_alter_user_last_login_null... OK
>>>   Applying auth.0006_require_contenttypes_0002... OK
>>>   Applying auth.0007_alter_validators_add_error_messages... OK
>>>   Applying guardian.0001_initial... OK
>>>   Applying models.0001_initial...Traceback (most recent call last):
>>>   File "manage.py", line 27, in 
>>> execute_from_command_line(sys.argv)
>>>   File "C:\ArchesProjects\ENV\lib\site-packages\django\core\managem
>>> ent\__init__.
>>> py", line 353, in execute_from_command_line
>>> utility.execute()
>>>   File "C:\ArchesProjects\ENV\lib\site-packages\django\core\managem
>>> ent\__init__.
>>> py", line 345, in execute
>>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>>   File "C:\ArchesProjects\ENV\lib\site-packages\django\core\managem
>>> ent\base.py",
>>>  line 348, in run_from_argv
>>> self.execute(*args, **cmd_options)
>>>   File "C:\ArchesProjects\ENV\lib\site-packages\django\core\managem
>>> ent\base.py",
>>>  line 399, in execute
>>> output = self.handle(*args, **options)
>>>   File "C:\ArchesProjects\arches\arches\management\commands\packages.py",
>>> line 1
>>> 25, in handle
>>> self.setup_db(package_name)
>>>   File "C:\ArchesProjects\arches\arches\management\commands\packages.py",
>>> line 2
>>> 62, in setup_db
>>> management.call_command('migrate')
>>>   File "C:\ArchesProjects\ENV\lib\site-packages\django\core\managem
>>> ent\__init__.
>>> py", line 119, in call_command
>>> return command.exec

Re: [Arches] Cannot import sample dropdowns reference data for Arches v4 dev

2017-04-10 Thread Alexei Peters
Hi Joel,
That file needs to be fixed.  It was messed up recently and just hasn't
been fixed.  I"ll make sure that gets fixed today.
Cheers,
Alexei


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

On Fri, Apr 7, 2017 at 9:02 PM, Joel Aldor  wrote:

> Hi all,
>
> Tried to follow the instructions on https://github.com/
> archesproject/arches/wiki/Developer-Installation and I get this error
> when I started to import the dropdown lists reference data:
>
> ubuntu@ARCHESv4PROD:~/Projects/arches$ python manage.py packages -o impo
>
>_reference_data -s arches/db/schemes/dropdowns.rdf -ow
> overwrite -st keep
> operation: import_reference_data
> package: arches
> Traceback (most recent call last):
>   File "manage.py", line 27, in 
> execute_from_command_line(sys.argv)
>   File 
> "/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/django/core/
>
>management/__init__.py", line 353, in execute_from_command_line
> utility.execute()
>   File 
> "/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/django/core/
>
>management/__init__.py", line 345, 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 348, 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 399, in execute
> output = self.handle(*args, **options)
>   File "/home/ubuntu/Projects/arches/arches/management/commands/packages.py",
> li
>ne 160, in handle
> self.import_reference_data(options['source'], options['overwrite'],
> options[
>  'stage'])
>   File "/home/ubuntu/Projects/arches/arches/management/commands/packages.py",
> li
>ne 351, in import_reference_data
> rdf = skos.read_file(data_source)
>   File "/home/ubuntu/Projects/arches/arches/app/utils/skos.py", line 56,
> in read
>_file
> raise Exception('Error occurred while parsing the file %s' %
> path_to_file)
> Exception: Error occurred while parsing the file
> arches/db/schemes/dropdowns.rdf
>
> This is the first error I've encountered with the installation process.
>
> Thanks for the help!
>
> Joel
>
> --
> -- 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.
>

-- 
-- 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.


Re: [Arches] Re: Using Arches Designer in v4

2017-04-10 Thread Alexei Peters
Hi Scott,
What version of Postgres are you running?  Arches requires 9.5  Looking at
the error it looks like db schema wasn't loaded properly because of a
reference to a jsonb column.  As far as I know, jsonb wan't available until
Postgres 9.4
Just so you know, you can run multiple versions of Postgres on a single
machine if you're worried about upgrading (I'm in fact running 9.3, 9.4,
9.5 and 9.6).
Cheers,
Alexei


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

On Sat, Apr 8, 2017 at 9:11 AM, Scott Branting 
wrote:

> Perhaps related to this, I thought that Adam's .bat file ran through the
> setup_db step.  However, with Susan's issue with needing to do that step
> and Joel running into an error on the additional setup database commands, I
> tried to try recreating the database to see if I could solve this issue.  I
> ran python manage.py packages -o setup.db and ran into the following error.
>
> (ENV) C:\ArchesProjects\arches>python manage.py packages -o setup_db
> operation: setup_db
> package: arches
> Password for user postgres:
>  pg_terminate_backend
> --
> (0 rows)
>
>
> DROP DATABASE
> CREATE DATABASE
> Operations to perform:
>   Apply all migrations: sessions, admin, guardian, auth, models,
> contenttypes
> Running migrations:
>   Rendering model states... DONE
>   Applying contenttypes.0001_initial... OK
>   Applying auth.0001_initial... OK
>   Applying admin.0001_initial... OK
>   Applying admin.0002_logentry_remove_auto_add... OK
>   Applying contenttypes.0002_remove_content_type_name... OK
>   Applying auth.0002_alter_permission_name_max_length... OK
>   Applying auth.0003_alter_user_email_max_length... OK
>   Applying auth.0004_alter_user_username_opts... OK
>   Applying auth.0005_alter_user_last_login_null... OK
>   Applying auth.0006_require_contenttypes_0002... OK
>   Applying auth.0007_alter_validators_add_error_messages... OK
>   Applying guardian.0001_initial... OK
>   Applying models.0001_initial...Traceback (most recent call last):
>   File "manage.py", line 27, in 
> execute_from_command_line(sys.argv)
>   File "C:\ArchesProjects\ENV\lib\site-packages\django\core\
> management\__init__.
> py", line 353, in execute_from_command_line
> utility.execute()
>   File "C:\ArchesProjects\ENV\lib\site-packages\django\core\
> management\__init__.
> py", line 345, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File "C:\ArchesProjects\ENV\lib\site-packages\django\core\
> management\base.py",
>  line 348, in run_from_argv
> self.execute(*args, **cmd_options)
>   File "C:\ArchesProjects\ENV\lib\site-packages\django\core\
> management\base.py",
>  line 399, in execute
> output = self.handle(*args, **options)
>   File "C:\ArchesProjects\arches\arches\management\commands\packages.py",
> line 1
> 25, in handle
> self.setup_db(package_name)
>   File "C:\ArchesProjects\arches\arches\management\commands\packages.py",
> line 2
> 62, in setup_db
> management.call_command('migrate')
>   File "C:\ArchesProjects\ENV\lib\site-packages\django\core\
> management\__init__.
> py", line 119, in call_command
> return command.execute(*args, **defaults)
>   File "C:\ArchesProjects\ENV\lib\site-packages\django\core\
> management\base.py",
>  line 399, in execute
> output = self.handle(*args, **options)
>   File "C:\ArchesProjects\ENV\lib\site-packages\django\core\
> management\commands\
> migrate.py", line 200, in handle
> executor.migrate(targets, plan, fake=fake, fake_initial=fake_initial)
>   File "C:\ArchesProjects\ENV\lib\site-packages\django\db\
> migrations\executor.py
> ", line 92, in migrate
> self._migrate_all_forwards(plan, full_plan, fake=fake,
> fake_initial=fake_ini
> tial)
>   File "C:\ArchesProjects\ENV\lib\site-packages\django\db\
> migrations\executor.py
> ", line 121, in _migrate_all_forwards
> state = self.apply_migration(state, migration, fake=fake,
> fake_initial=fake_
> initial)
>   File "C:\ArchesProjects\ENV\lib\site-packages\django\db\
> migrations\executor.py
> ", line 198, in apply_migration
> state = migration.apply(state, schema_editor)
>   File "C:\ArchesProjects\ENV\lib\site-packages\django\db\
> migrations\migration.p
> y", line 123, in apply
> operation.database_forwards(self.app_label, schema_editor, old_state,
> projec
> t_state)
>   File "C:\ArchesProjects\ENV\lib\site-packages\django\db\
> migrations\operations\
> models.py", line 59, in database_forwards
> schema_editor.create_model(model)
>   File "C:\ArchesProjects\ENV\lib\site-packages\django\contrib\
> gis\db\backends\p
> ostgis\schema.py", line 56, in create_model
> super(PostGISSchemaEditor, self).create_model(model)
>   File "C:\ArchesProjects\ENV\lib\site-packages\django\db\
> backends\base\schema.p
> y", line 284, in create_model
> self.execute(sql, params or None)
>   File "C:\ArchesProjects\ENV\lib\site-packages\django\db\
> backends\base\schema.p
> y", 

Re: [Arches] STEPS: Arches 3 server migration from AWS to Azure

2017-03-06 Thread Alexei Peters
Thanks Joel for all this great info!


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

On Thu, Mar 2, 2017 at 11:17 PM, Joel Aldor <joel.al...@gmail.com> wrote:

> Thanks as well Alexei :)
>
> I just re-did the steps for another server pointing to training.
> philippineheritagemap.org, which will serve as our training environment
> for our volunteers. Now I can finally decommission my AWS resources and
> totally get rid of it.
>
> The good thing with Azure is that it lets you increase server size without
> having to shut down the virtual machine, unlike AWS where you have to stop
> the EC2 instance first. That's what I found out so far.
>
> Regards,
>
> Joel
>
> On Thursday, February 23, 2017 at 1:56:44 AM UTC+8, Alexei Peters wrote:
>>
>> Thanks for sharing your experience so far and congratulations on the
>> grant.
>> Cheers,
>> Alexei
>>
>>
>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>> <(971)%20227-3173>
>>
>> On Mon, Feb 20, 2017 at 11:15 PM, Joel Aldor <joel@gmail.com> wrote:
>>
>>> Hi Alexei,
>>>
>>> I've only had two months of working with Azure, but apart from the
>>> interface I don't see much difference with AWS as far as administering
>>> servers are concerned, and I don't think I'll encounter problems with
>>> Arches running on Azure. The reason we made the migration is because we got
>>> an Azure sponsorship through a software grant, so that will definitely save
>>> us money. :)
>>>
>>> Regards,
>>>
>>> Joel
>>>
>>> On Tue, Feb 21, 2017 at 3:08 PM, Alexei Peters <ape...@fargeo.com>
>>> wrote:
>>>
>>>> Thanks for sharing Joel (and for all the hard work)!  I'm sure this
>>>> will be helpful to many users.  How do you find AWS vs. Azure?
>>>> Cheers,
>>>> Alexei
>>>>
>>>>
>>>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>>>
>>>> On Mon, Feb 20, 2017 at 11:00 PM, Joel Aldor <joel@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi guys!
>>>>>
>>>>> I'm sharing to you the steps in migrating your Arches server from AWS
>>>>> to Microsoft Azure. I must admit the whole migration was pretty hard, 
>>>>> since
>>>>> AWS doesn't allow you to export your Linux EC2 instances to another cloud
>>>>> provider. But after weeks of trial and error, I'm finally able to migrate
>>>>> it completely. :)
>>>>>
>>>>> These steps will work, assuming your Arches is installed on an Ubuntu
>>>>> server running on an EC2 instance, and you're using S3 for your image and
>>>>> file storage.
>>>>>
>>>>> 1.) Launch an Ubuntu 14.04 LTS virtual machine on your Azure portal.
>>>>> Make sure your virtual machine has the same security group settings that
>>>>> you have on your AWS EC2 instance.
>>>>>
>>>>> 2.) Log in to your Ubuntu server, then create your root password
>>>>> sudo passwd root
>>>>>
>>>>> To allow remote login using root, you also need to edit the file
>>>>> /etc/ssh/sshd_config, and comment out the following line:
>>>>> PermitRootLogin without-password
>>>>>
>>>>> Just below it, add the following line:
>>>>> PermitRootLogin yes
>>>>>
>>>>> Save the file, then restart SSH:
>>>>> service ssh restart
>>>>>
>>>>> 3.) Create an Azure storage account, then launch an Azure storage
>>>>> container. Once you created the container, get the Azure container name 
>>>>> and
>>>>> access key, which you will use on step #5.
>>>>>
>>>>> 4.) Get your AWS Access Key ID and Secret Access Key from your AWS
>>>>> Console's IAM, which you will use on step #5.
>>>>>
>>>>> 5.) Migrate your AWS S3 bucket to the new Azure storage container
>>>>> using Flexify.io. Create a free account on Flexify, then launch a
>>>>> migration task. I was able to migrate all my files totalling 6.5GB in just
>>>>> about 20 minutes.
>>>>>
>>>>> 6.) Start the server migration process from AWS EC2 to Azure using a
>>>>> custom rsync shell script. Follow the pretty straightforward steps from
>&g

Re: [Arches] Issue in Arches Project Installation on "Windows 7"

2017-02-27 Thread Alexei Peters
Hi Bhavya,
It looks like maybe a permissions issue with accessing the
"config/elasticsearch.yml" file.
I would just find that file and add these lines to the top of the file:

# - FOR TESTING ONLY -
# - THESE SETTINGS SHOULD BE REVIEWED FOR PRODUCTION -
node.max_local_storage_nodes: 1
node.local: true
index.number_of_shards: 1
index.number_of_replicas: 0
http.port: 9200
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["localhost"]
cluster.routing.allocation.disk.threshold_enabled: false

That's all this script really does (aside from installing a plugin that
allows you to view the contents of Elasticsearch directly, which is not
required to run Arches).

Try that a see if that works.

Cheers,
Alexei


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

On Sun, Feb 26, 2017 at 9:28 PM, Bhavya Ahuja 
wrote:

> Hello Arches Project Team,
>
> We tried to setup the Arches on "Windows 7" and its throwing and error
> related to path which actually exists on system while tried to install
> elastic search.
>
> Here are the steps we followed
> 1. Install JDK (64-bit) (Download Url Below)
> http://download.oracle.com/otn-pub/java/jdk/8u121-
> b13/e9e7ea248e2c4826b92b3f075a80e441/jdk-8u121-windows-i586.exe
> 2. Set Enviorment Variable (JAVA_HOME) and added jdk into system path
> (C:\program files\jdk)
> https://confluence.atlassian.com/doc/setting-the-
> java_home-variable-in-windows-8895.html
> 3. Install PYTHON (2.7.6) Specific Version. As its mentioned clearly that
> higher version may create issue.
> https://www.python.org/download/releases/2.7.6/
> 4. Install pip using Python Script
> https://github.com/BurntSushi/nfldb/wiki/Python-;
> -pip-Windows-installation
> Download
> https://bootstrap.pypa.io/get-pip.py
> Command:
> python get-pip.py
> 5. Set Environment Variable (PYTHON_HOME) and added into system path
> (C:\Python27)
> 6. Install PostgreSql
> https://www.enterprisedb.com/downloads/postgres-
> postgresql-downloads#windows
> Setup Enviorment Variable and added into system path (C:\Program
> Files\PostgreSQL\9.3)
> Setup port 5432 and password for postgre user as expected "pass"
> 7. Install PostGIS
> http://winnie.postgis.net/download/windows/pg93/buildbot
> /postgis-bundle-pg93x64-setup-2.2.3-1.exe
>
> 8. Install Language Pack :
> https://sourceforge.net/projects/openofficeorg.mirror/fi
> les/4.1.3/binaries/en-US/Apache_OpenOffice_4.1.3_Win_x86_
> langpack_en-US.exe/download
> 8. Made a folder in C:\ Drive called "Project"
> 10. Cd Project
> 11. pip install virtualenv==1.11.4
> 12 virtualenv ENV
> 13 \ENV\Scripts\activate
> 14 pip install arches
> 15 pip install arches_hip
> 16 python ENV\Scripts\arches-app create my_hip_app --app arches_hip
> 18 Opened the settings.py file in my_hip_app/my_hip_app and added the
> following setting
> GDAL_LIBRARY_PATH = ‘C:/OSGeo4W64/bin/gdal111.dll’
> 19 cd my_hip_app
> 20 python manage.py packages -o setup_elasticsearch
>
> This extracted the file elasticsearch.1.4.1.zip  at desired location and
> after this we got an error that path is incorrect and script execution
> stopped.
>
>
> Thank you in advance.
>
> Regards
> Bhavya Ahuja
> ARCHITECT @ DRONAH
> www.dronah.org
>
> --
> -- 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.
>

-- 
-- 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.


Re: [Arches] STEPS: Arches 3 server migration from AWS to Azure

2017-02-20 Thread Alexei Peters
Thanks for sharing Joel (and for all the hard work)!  I'm sure this will be
helpful to many users.  How do you find AWS vs. Azure?
Cheers,
Alexei


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

On Mon, Feb 20, 2017 at 11:00 PM, Joel Aldor  wrote:

> Hi guys!
>
> I'm sharing to you the steps in migrating your Arches server from AWS to
> Microsoft Azure. I must admit the whole migration was pretty hard, since
> AWS doesn't allow you to export your Linux EC2 instances to another cloud
> provider. But after weeks of trial and error, I'm finally able to migrate
> it completely. :)
>
> These steps will work, assuming your Arches is installed on an Ubuntu
> server running on an EC2 instance, and you're using S3 for your image and
> file storage.
>
> 1.) Launch an Ubuntu 14.04 LTS virtual machine on your Azure portal. Make
> sure your virtual machine has the same security group settings that you
> have on your AWS EC2 instance.
>
> 2.) Log in to your Ubuntu server, then create your root password
> sudo passwd root
>
> To allow remote login using root, you also need to edit the file
> /etc/ssh/sshd_config, and comment out the following line:
> PermitRootLogin without-password
>
> Just below it, add the following line:
> PermitRootLogin yes
>
> Save the file, then restart SSH:
> service ssh restart
>
> 3.) Create an Azure storage account, then launch an Azure storage
> container. Once you created the container, get the Azure container name and
> access key, which you will use on step #5.
>
> 4.) Get your AWS Access Key ID and Secret Access Key from your AWS
> Console's IAM, which you will use on step #5.
>
> 5.) Migrate your AWS S3 bucket to the new Azure storage container using
> Flexify.io. Create a free account on Flexify, then launch a migration
> task. I was able to migrate all my files totalling 6.5GB in just about 20
> minutes.
>
> 6.) Start the server migration process from AWS EC2 to Azure using a
> custom rsync shell script. Follow the pretty straightforward steps from
> this link here: https://cloudnull.io/2012/07/cloud-server-migration (Go
> to the section that says *Migrate using RSYNC The Easy Way *and follow
> the steps there). After the migration, the new server will automatically
> reboot itself.
>
> *Note: the rsync shell script uses Rackspace directory defaults, but it
> worked pretty fine on me, so just hit ENTER to continue when you're
> prompted to apply the default*
>
> 7.) Login to the new server, then restart Elasticsearch and Apache. By
> this point, your new server is now hosting Arches, and you can already open
> Arches on your browser. However it's still pointing to the old S3 bucket.
>
> 8.) Install the django-storages-redux by following the steps from here:
> https://github.com/schumannd/django-storages. This is a forked
> django-storages package, because the original django-storages has seen no
> commit applied since March 2014, and there were errors on the AzureStorage
> library.
>
> 9.) Comment out the AWS variables on settings.py and instead add these
> variables:
>
> DEFAULT_FILE_STORAGE = 'storages.backends.azure_storage.AzureStorage'
> AZURE_ACCOUNT_NAME = ''
> AZURE_ACCOUNT_KEY = ''
> AZURE_CONTAINER = ''
> MEDIA_URL = ' https://your_azure_account_name.blob.core.windows.net/your_azure_container
> >'
>
> 10.) Save your settings.py file, then restart your Apache server.
>
> *And you're done! *You can now point your domain to the new Azure virtual
> machine and start decommissioning your AWS resources.
>
> If there's any problem you're encountering, please let me know here and
> I'd be happy to help!
>
> Special thanks to Adam Cox for helping me out on some parts of this
> migration process!
>
> Regards,
>
> Joel
>
> --
> -- 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.
>

-- 
-- 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.


Re: [Arches] Using different versions of Linux and Python

2017-02-14 Thread Alexei Peters
Hi Lucy,
Can't really comment on your version of Linux, but upgrading to Python 2.7
shouldn't require you to re-install Arches.
Cheers,
Alexei


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

On Sun, Feb 12, 2017 at 5:02 AM, 'Lucy FJ' via Arches Project <
archesproject@googlegroups.com> wrote:

>
> Hi all,
>
> Having done some Arches customization we have hit some strange technical
> problems so we decided to check everything from the installation of
> dependencies onwards. It appears that we are using Oracle Linux 6.7 for our
> Arches app. Has anyone had any problems with this?
>
> It also seems that we are using Python v 2.6.6 not 2.7.6 which was
> suggested for Arches. We know later versions can cause problems but can
> earlier ones? If we need the later version of Python can we simply download
> it and install without redoing the whole Arches installation again?
>
> Thank you very much for your help!
>
> Lucy
>
> --
> -- 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.
>

-- 
-- 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.


Re: [Arches] Arches 4: ElasticSearch

2017-01-31 Thread Alexei Peters
>
> Does it mean that external apps can query ElasticSearch only through the
> Arches app?


Essentially, yes, although you can open up the port to access ES directly,
but I would consider that a security breach.


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

On Tue, Jan 31, 2017 at 10:14 AM, Vincent Meijer <meijer.vinc...@gmail.com>
wrote:

> Thanks for explaining! Could you please tell a little bit more about what
> it means that the Arches app acts as a proxy to ElasticSearch?
> Does it mean that external apps can query ElasticSearch only through the
> Arches app?
>
> Vincent
>
> On Tuesday, 31 January 2017 12:44:33 UTC-5, Alexei Peters wrote:
>>
>> Hi Vincent,
>> Good question!  This graphic is actually a little misleading and should
>> be changed to show Arches app acting as a proxy to to the Elasticsearch
>> server.
>> Elasticsearch runs as a separate service and additional instances of
>> Elasticsearch can be setup on additional machines if needed.
>> Cheers,
>> Alexei
>>
>>
>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>> <(971)%20227-3173>
>>
>> On Tue, Jan 31, 2017 at 8:28 AM, Vincent Meijer <meijer@gmail.com>
>> wrote:
>>
>>> In Arches 4 the ElasticSearch server is incorporated inside Arches
>>> itself:
>>> https://github.com/archesproject/arches/wiki/Dev-Installatio
>>> n#system-architecture
>>>
>>> I was wondering how this works and what the idea behind this is. It
>>> seems odd to me.
>>> E.g. How would it work if you want to run a cluster of Arches instances?
>>>
>>> Thanks!
>>> Vincent
>>>
>>> --
>>> -- 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.
>>> 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.
>

-- 
-- 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.


Re: [Arches] Arches 4: ElasticSearch

2017-01-31 Thread Alexei Peters
Hi Vincent,
Good question!  This graphic is actually a little misleading and should be
changed to show Arches app acting as a proxy to to the Elasticsearch server.
Elasticsearch runs as a separate service and additional instances of
Elasticsearch can be setup on additional machines if needed.
Cheers,
Alexei


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

On Tue, Jan 31, 2017 at 8:28 AM, Vincent Meijer 
wrote:

> In Arches 4 the ElasticSearch server is incorporated inside Arches itself:
> https://github.com/archesproject/arches/wiki/Dev-Installation#system-
> architecture
>
> I was wondering how this works and what the idea behind this is. It seems
> odd to me.
> E.g. How would it work if you want to run a cluster of Arches instances?
>
> Thanks!
> Vincent
>
> --
> -- 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.
>

-- 
-- 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.


Re: [Arches] Re: Using Docker for deploying Arches

2016-08-25 Thread Alexei Peters
This is awesome work guys!  The Arches community is definitely better off
with your involvement.
I have yet to install the dockerized version but anything that can ease the
installation of Arches is much appreciated.
Just so you know, we're aware of the difficulties with installing Arches
and for v4 have spent some time improving this process.
Cheers,
Alexei


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

On Wed, Aug 24, 2016 at 1:59 PM, Vincent Meijer  wrote:

> Hi all,
>
> @Jae, thanks for sending your Dockerfile. I think we are pretty much on
> the same track. Nice work!
> What I did to end up with separate Docker containers for Django, Postgres
> and Elasticsearch is create one Dockerfile with the complete installation
> procedure and them split them up.
>
> I placed all my code in a public repository: https://bitbucket.
> org/cvast/cvast-arches-public/overview
>
> Please read the Readme, as there are a few things you need to do before
> you can run it.
>
> I kind of rushed getting this public repo in place and making it as
> generic as possible. If anything goes wrong, let me know!
>
>
> I hope this contribution to the Arches community will help making Arches
> more accessible and easier to install.
> To get started with docker: https://www.docker.com/
>
>
> Vincent
> Center for Virtualization and Applied Spatial Technologies (CVAST)
> University of South Florida
>
>
>
> On Wednesday, 24 August 2016 00:52:18 UTC-4, Jae Hun Lee wrote:
>>
>> Hi Joel,
>>
>> I have to confess that I have been holding back my dockenization work
>> because of the recruitment process. I regret doing so now because none of
>> candidate could install Arches on their computers, and I am devastated by
>> them.
>> Anyway, I am sure that Vincent will continue where I left off and provide
>> the improved docker image to ease installation and operation of Arches. I
>> would recommend to use docker-compose.
>>
>> Hi Vincent,
>>
>> I hope my Dockerfile helps your project. Good luck :)
>>
>> Best,
>> Jae
>>
>>
>>
>> On Wednesday, August 24, 2016 at 8:29:08 AM UTC+5:45, Joel Aldor wrote:
>>>
>>> Hi Jae,
>>>
>>> Thank you very much for this one. Looking into your Dockerfile code, I
>>> suppose we still have to look forward to your v2. This is a really great
>>> development, though! :)
>>>
>>> Regards,
>>>
>>> Joel
>>>
>>> On Tuesday, August 23, 2016 at 1:21:17 PM UTC+8, Jae Hun Lee wrote:

 Hello, Vincent

 I'd like to share my work regarding this subject. I hope you can
 improve with my Docker file: http://goo.gl/pcsXug
 My Arches docker image is called oixhwotl/arches3-v1:15.10
 (15.10 is a tag and it means it was built based on Ubuntu 15.10)
 (v1 means that everything is in one container. I planned that v2
 contains minimal files and works with other containers such as
 ElasticSearch, PostgreSQL and nginx.)

 HOW TO USE IT

 1. Install docker application

 2. Download the image
 $ docker pull oixhwotl/arches3-v1:15.10

 3.  Copy out my_Hip_app to local storage if you don't have your own app
 $ docker run -it oixhwotl/arches3-v1:15.10
 # exit
 $ docker ps -a
 (get the image contianer id)
 $ docker cp :/roiot/my_hip_app 

 4. Run server mounting your app
 $ docker run -it -p 8000:8000 -v :/root/my_hip_app
 --name arches oixhwotl/arches3-v1:15.10
 # source .profile
 # start_services.sh
 (this will start PostgreSQL and ElasticSearch)
 # cd my_hip_app
 # python manage.py packages -o install
 # python manage.py runserver 0.0.0.0:8000

 Before exiting the container, save your data by following the
 instructions in this post: https://groups.google.com/foru
 m/#!searchin/archesproject/script%7Csort:relevance/
 archesproject/sXu6qpMuoAs/qDKQlQstIwAJ

 The data directory of PostgreSQL is also exportable, and you can create
 persistent data container for it.
 https://docs.docker.com/engine/tutorials/dockervolumes/

 For Windows, use following command to check and forward the connection
 > netsh interface portproxy show all
 > netsh interface portproxy add v4tov4 listenport=80 connectport=8000
 connectaddress=
 > netsh interface portproxy del v4tov4 listenport=80


 Good luck Vincent.







 On Monday, August 8, 2016 at 11:30:31 PM UTC+5:45, Vincent Meijer wrote:
>
> Yes, we at USF's CVAST are in a far stadium of dockerizing Arches.
> After we get everything ready and stable, I will share. Stay tuned!
>
> On Friday, 29 July 2016 01:25:03 UTC-4, Joel Aldor wrote:
>>
>> Has anyone continued the dockerization of Arches 3?
>>
>> On Sunday, January 11, 2015 at 3:30:01 PM UTC+8, Rita Sinha wrote:
>>>
>>> Hi Alex,
>>>
>>>Thanks for the much needed start for dockerizing the
>>> arches
>>> project. I have 

Re: [Arches] Failed Initial Migration for Models

2016-08-22 Thread Alexei Peters
Hi Sajan,
It looks like you're trying to run Arches by itself without a package.
Arches requires a package to be installed before it can be run successfully.

If you're just evaluating Arches, then the easiest way to get a package is
to install arches_hip into your virtualenv.

http://arches-hip.readthedocs.io/en/latest/getting-started/#installating-arches-hip

This should resolve the issue you're having.

BTW, Arches v4 is still in development and won't be ready for evaluation
for a month or so.

Cheers,
Alexei




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

On Mon, Aug 22, 2016 at 12:46 AM, Sajan Maharjan  wrote:

> Hello Alexei
>
> First of all thanks for pointing out my mistake but i couldnt find any of
> this information in any of the documentation.
>
> That certainly solved the problem for the models migration. And i no
> longer see a need for migrations,
>
> But I am back to the same error I had earlier, for which I felt I needed
> to migrate.
>
> In the page: http://localhost:8000/search
> relation "dates" does not exist
> LINE 1: ...AS "val__max", MIN("dates"."val") AS "val__min" FROM "dates"
>
> In the page: http://localhost:8000/map
> TypeError at /resources/markers/all
> 'NoneType' object has no attribute '__getitem__'
>
> Clearly It states that the database hasnt been loaded with data. I have
> looked into other posts here in this group.
> I looked into this post in the group, which tries to solve the issue.
> https://groups.google.com/forum/#!topic/archesproject/7I0U9zYZX-U
>
> But running the suggested command 'python manage.py packages -o install'
> gives the following error
>
> (ENV)sajan@ubuntu:~/arches-stable$ python manage.py packages -o install
> operation: install
> Traceback (most recent call last):
>   File "manage.py", line 27, in 
> execute_from_command_line(sys.argv)
>   File "/home/sajan/arches-stable/ENV/local/lib/python2.7/site-
> packages/django/core/management/__init__.py", line 399, in
> execute_from_command_line
> utility.execute()
>   File "/home/sajan/arches-stable/ENV/local/lib/python2.7/site-
> packages/django/core/management/__init__.py", line 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File "/home/sajan/arches-stable/ENV/local/lib/python2.7/site-
> packages/django/core/management/base.py", line 242, in run_from_argv
> self.execute(*args, **options.__dict__)
>   File "/home/sajan/arches-stable/ENV/local/lib/python2.7/site-
> packages/django/core/management/base.py", line 285, in execute
> output = self.handle(*args, **options)
>   File "/home/sajan/arches-stable/arches/management/commands/packages.py",
> line 66, in handle
> package_name = settings.PACKAGE_NAME
>   File "/home/sajan/arches-stable/ENV/local/lib/python2.7/site-
> packages/django/conf/__init__.py", line 55, in __getattr__
> return getattr(self._wrapped, name)
> AttributeError: 'Settings' object has no attribute 'PACKAGE_NAME'
>
> Any advice on how to resolve the issue?
>
> --
> -- 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.
>

-- 
-- 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.


Re: [Arches] Failed Initial Migration for Models

2016-08-21 Thread Alexei Peters
Hi Sajan,
If you're still using Arches v3 I would suggest that you stick with the v3
branch.
https://github.com/archesproject/arches/tree/stable/3.x

The latest in master is meant for v4 users and will require an upgrade to
postgres 9.5
Both 9.3 and 9.5 can be run at the same time on the same machine (just not
on the same port).

Cheers,
Alexei


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

On Sat, Aug 20, 2016 at 9:10 AM, Sajan Maharjan 
wrote:

> Here is the initial log for migration for models.
>
> The migration contains a field type 'jsonb' which is only supported by
> PostgreSQL 9.4, but ours runs on 9.3. Is there any solution for this? The
> system is running fine for now but we are missing the models migrations.
>
> (ENV)sajan@ubuntu:~/arches-master$ python manage.py migrate models
> Operations to perform:
>   Apply all migrations: models
> Running migrations:
>   Rendering model states... DONE
>   Applying models.0001_initial...Traceback (most recent call last):
>   File "manage.py", line 27, in 
> execute_from_command_line(sys.argv)
>   File "/home/sajan/arches-master/ENV/local/lib/python2.7/site-
> packages/django/core/management/__init__.py", line 367, in
> execute_from_command_line
> utility.execute()
>   File "/home/sajan/arches-master/ENV/local/lib/python2.7/site-
> packages/django/core/management/__init__.py", line 359, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File "/home/sajan/arches-master/ENV/local/lib/python2.7/site-
> packages/django/core/management/base.py", line 305, in run_from_argv
> self.execute(*args, **cmd_options)
>   File "/home/sajan/arches-master/ENV/local/lib/python2.7/site-
> packages/django/core/management/base.py", line 356, in execute
> output = self.handle(*args, **options)
>   File "/home/sajan/arches-master/ENV/local/lib/python2.7/site-
> packages/django/core/management/commands/migrate.py", line 202, in handle
> targets, plan, fake=fake, fake_initial=fake_initial
>   File "/home/sajan/arches-master/ENV/local/lib/python2.7/site-
> packages/django/db/migrations/executor.py", line 97, in migrate
> state = self._migrate_all_forwards(plan, full_plan, fake=fake,
> fake_initial=fake_initial)
>   File "/home/sajan/arches-master/ENV/local/lib/python2.7/site-
> packages/django/db/migrations/executor.py", line 132, in
> _migrate_all_forwards
> state = self.apply_migration(state, migration, fake=fake,
> fake_initial=fake_initial)
>   File "/home/sajan/arches-master/ENV/local/lib/python2.7/site-
> packages/django/db/migrations/executor.py", line 237, in apply_migration
> state = migration.apply(state, schema_editor)
>   File "/home/sajan/arches-master/ENV/local/lib/python2.7/site-
> packages/django/db/migrations/migration.py", line 129, in apply
> operation.database_forwards(self.app_label, schema_editor, old_state,
> project_state)
>   File "/home/sajan/arches-master/ENV/local/lib/python2.7/site-
> packages/django/db/migrations/operations/models.py", line 96, in
> database_forwards
> schema_editor.create_model(model)
>   File "/home/sajan/arches-master/ENV/local/lib/python2.7/site-
> packages/django/contrib/gis/db/backends/postgis/schema.py", line 56, in
> create_model
> super(PostGISSchemaEditor, self).create_model(model)
>   File "/home/sajan/arches-master/ENV/local/lib/python2.7/site-
> packages/django/db/backends/base/schema.py", line 295, in create_model
> self.execute(sql, params or None)
>   File "/home/sajan/arches-master/ENV/local/lib/python2.7/site-
> packages/django/db/backends/base/schema.py", line 112, in execute
> cursor.execute(sql, params)
>   File "/home/sajan/arches-master/ENV/local/lib/python2.7/site-
> packages/django/db/backends/utils.py", line 79, in execute
> return super(CursorDebugWrapper, self).execute(sql, params)
>   File "/home/sajan/arches-master/ENV/local/lib/python2.7/site-
> packages/django/db/backends/utils.py", line 64, in execute
> return self.cursor.execute(sql, params)
>   File 
> "/home/sajan/arches-master/ENV/local/lib/python2.7/site-packages/django/db/utils.py",
> line 94, in __exit__
> six.reraise(dj_exc_type, dj_exc_value, traceback)
>   File "/home/sajan/arches-master/ENV/local/lib/python2.7/site-
> packages/django/db/backends/utils.py", line 62, in execute
> return self.cursor.execute(sql)
> django.db.utils.ProgrammingError: type "jsonb" does not exist
> LINE 1: ...OT NULL, "id" uuid NOT NULL PRIMARY KEY, "config" jsonb NULL...
>  ^
>
> (ENV)sajan@ubuntu:~/arches-master$
>
>
> --
> -- 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 

Re: [Arches] Re: Adding images to a new resource type

2016-07-22 Thread Alexei Peters
Hi Adam,
I've recently come across the IDE called PyCharm (
https://www.jetbrains.com/pycharm/).  It comes with a graphical debugger
which can be very useful.  It allows you to step through your code
line-by-line.
Check it out, it may help you solve your issue.  I've used it a few time
successfully myself.
Cheers,
Alexei


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

On Wed, Jul 20, 2016 at 6:06 AM, Vincent Meijer  wrote:

> Just a thought, but did you check the browser console for any javascript
> errors? I use Firefox's Firebug plugin for this.
>
> Vincent
>
>
> On Friday, 15 July 2016 12:02:08 UTC-4, Adam Cox wrote:
>>
>> I've been to trying in vain to allow a new resource type to upload
>> images.  I started off with a more complex idea, but at this point I've
>> just recreated the exact FILE_PATH.E62 and THUMBNAIL.E62 nodes as they
>> exist in the INFORMATION_RESOURCE.E73 graph, and am using the same file
>> upload form, where the only change I had to make was the dataKey, from
>> "INFORMATION_RESOURCE.E73" to "FIELD_INVESTIGATION.E7" which is the name of
>> the new resource. I made this an if statement in the form class and in the
>> javascript.  However, the branch is not saving, even though the file upload
>> form seems to work properly in the new resource type. No errors are thrown,
>> the branch is just not saved at all.
>>
>> Any thoughts would be appreciated.
>>
>> Adam
>>
> --
> -- 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.
>

-- 
-- 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.


Re: [Arches] Re: Accessing languages via Django

2016-07-12 Thread Alexei Peters
That's wonderful!  Glad I could help.


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

On Tue, Jul 12, 2016 at 8:08 AM, <zerbini.eam...@gmail.com> wrote:

> Alexei,
>
> Thank you for this. Indeed, it led me to solving the problem. I will now
> prepare a short how-to guide to making Arches multilingual, with
> screenshots, and will make it available on this thread.
>
> On Monday, July 11, 2016 at 7:38:50 PM UTC+1, Alexei Peters wrote:
>>
>> Hi Andrea,
>> I'm still unsure when this is happening, but I'm going to take a stab at
>> this anyway!  :)
>>
>> I'm making this assumption, that the dropdowns (eg 
>> SITE_FUNCTION_CERTAINTY_TYPE.E55)
>> are being populated only with the concepts in the selected language.  That
>> is if I've set the site to display everything in English, then the
>> dropdowns are only displaying the English preflabels.
>>
>> If that's the case, then when you say from your email of July 4th
>>
>>>  It would appear that the problem lies with the viewModel not correctly
>>> picking up the labels when the language selected is not the one with which
>>> the branches were originally saved.
>>
>> that you are correct.
>>
>> You go on to say:
>>
>>> This branch had been added, originally, in English, but the labels
>>> passed by the "load" method have been altered to adhere to the selected
>>> language (Arabic).
>>
>>
>> I think this is the problem.  The dropdowns reference value id's (eg:
>> d30fef92-728b-46f6-a4c5-b42e552a0326 and 
>> 92c37d46-dc23-4869-b868-b978d9f972aa)
>> and not concept ids.  It could be that those value ids in your data
>>
>>
>>> {"nodes":[{"value":"d30fef92-728b-46f6-a4c5-b42e552a0326","label":"عالي","child_entities":[],"entitytypeid":"SITE_FUNCTION_CERTAINTY_TYPE.E55","parentid":"679aa456-943d-4b2d-8c25-947c1f635307","entityid":"86e23739-93f0-40d4-8793-d1dc5043a4f9","property":"P2","businesstablename":"domains"},{"value":"92c37d46-dc23-4869-b868-b978d9f972aa","label":"ديني","child_entities":[],"entitytypeid":"SITE_FUNCTION_TYPE.E55","parentid":"6b8526b0-62ec-4860-9bee-ddf6830d3ff8","entityid":"679aa456-943d-4b2d-8c25-947c1f635307","property":"P2","businesstablename":"domains"}]}
>>
>>
>> don't reference id's in the dropdowns.  I would then expect that when you
>> click to edit a branch that the value referenced in the data can't be found
>> in the dropdowns options and the write method get's a blank value (I've
>> actually confirmed this happens).
>>
>> There's also a file called js/plugins/knockout-select2.js that has an
>> "update" method that you might be interested in.  It's one of the first
>> things that gets called when a user clicks to edit a value that's attached
>> to a dropdown.
>>
>> Hopefully this helps.
>> -Alexei
>>
>>
>>
>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>
>> On Thu, Jul 7, 2016 at 5:30 AM, <zerbini...@gmail.com> wrote:
>>
>>> And here is a screenshot of my debugging of branch-list.js. As you can
>>> see, in the writeable observable, the read correctly maps the valueid of
>>> the concept 'Not Applicable', which is stored in ret. However, the 'write'
>>> callback does not obtain ret, and the argument 'value' is therefore void.
>>>
>>>
>>> <https://lh3.googleusercontent.com/-2O5XRZ8bJn4/V35LY5na3XI/AAc/WHZvUSKBjXkCFpsNSG4TG4W8JiGgXNfJQCLcB/s1600/Screen%2BShot%2B2016-07-07%2Bat%2B13.27.14.png>
>>>
>>>
>>>
>>> On Wednesday, July 6, 2016 at 5:34:59 PM UTC+1, zerbini...@gmail.com
>>> wrote:
>>>
>>>> Alexei,
>>>>
>>>> I have narrowed it down a bit further. The writable computed observable
>>>> that is returned by getEditedNode correctly reads the values retrieved by
>>>> the method getEditedBranch(), but then, if the concept is in Arabic, it
>>>> does not pass it to the "write" callback, despite the variable 'ret' (which
>>>> is returned by the 'read' method in the observable) correctly storing the
>>>> value of the Arabic concept. 'ret', in this case, is essentially not passed
>>>> to the 'write' callback. However, if I add a

Re: [Arches] Re: Accessing languages via Django

2016-07-11 Thread Alexei Peters
t;
>>> {"nodes":[{"value":"d30fef92-728b-46f6-a4c5-b42e552a0326","label":"عالي","child_entities":[],"entitytypeid":"SITE_FUNCTION_CERTAINTY_TYPE.E55","parentid":"679aa456-943d-4b2d-8c25-947c1f635307","entityid":"86e23739-93f0-40d4-8793-d1dc5043a4f9","property":"P2","businesstablename":"domains"},{"value":"92c37d46-dc23-4869-b868-b978d9f972aa","label":"ديني","child_entities":[],"entitytypeid":"SITE_FUNCTION_TYPE.E55","parentid":"6b8526b0-62ec-4860-9bee-ddf6830d3ff8","entityid":"679aa456-943d-4b2d-8c25-947c1f635307","property":"P2","businesstablename":"domains"}]}
>>>
>>>
>>> This branch had been added, originally, in English, but the labels
>>> passed by the "load" method have been altered to adhere to the selected
>>> language (Arabic). However, when debugging getEditedNode, this function
>>> correctly reads the values of the two selected concepts
>>> (d30fef92-728b-46f6-a4c5-b42e552a0326 and
>>> 92c37d46-dc23-4869-b868-b978d9f972aa) BUT, for whatever reason, passes an
>>> empty object to the write method within getEditedNode.
>>>
>>> Can you think of any reason why this might be happening?
>>>
>>> Andrea
>>>
>>> On Tuesday, June 28, 2016 at 12:20:21 AM UTC+1, Alexei Peters wrote:
>>>
>>>> Hi Andrea,
>>>> Have you confirmed that you're getting all the data in all languages
>>>> when a form loads, but that somehow the client side code is filtering based
>>>> on language?
>>>> The "load" method in forms.py would potentially allow a user to only
>>>> load data with a specific language code, you're code isn't doing that is 
>>>> it?
>>>> Cheers,
>>>> Alexei
>>>>
>>>>
>>>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>>>
>>>> On Fri, Jun 17, 2016 at 8:26 AM, <zerbini...@gmail.com> wrote:
>>>>
>>>>> Dear Alexei,
>>>>>
>>>>> I have got it to work:
>>>>> https://github.com/azerbini/eamena2/blob/app/models/forms.py
>>>>>
>>>>> I was modifying the wrong method, in entity.py instead of looking into
>>>>> app/models/forms and changing that get_nodes. My bad.
>>>>>
>>>>> Now, the problem is that, for whatever reason (and unrelated to my
>>>>> changes to get_nodes()), the JS libraries only allow me to edit branches 
>>>>> in
>>>>> the language of original insertion. So, when the selected language is
>>>>> English, I am able to pull up and edit in a form all of the branches that
>>>>> were initially saved in the DB in English. Viceversa, when the language
>>>>> selected is Arabic, I can only edit branches (or entities - call them as
>>>>> you may) that were saved into the DB in Arabic. Any idea as to why the JS
>>>>> does this?
>>>>>
>>>>> Thank you - getting there step by step!
>>>>>
>>>>> Andrea
>>>>>
>>>>> On Thursday, June 16, 2016 at 7:43:59 PM UTC+1, Alexei Peters wrote:
>>>>>
>>>>>> Hi Andrea,
>>>>>> I'll have to look into this.
>>>>>> Cheers,
>>>>>> Alexei
>>>>>>
>>>>>>
>>>>>> Director of Web Development - Farallon Geographics, Inc. -
>>>>>> 971.227.3173
>>>>>>
>>>>>> On Wed, Jun 15, 2016 at 10:43 AM, <zerbini...@gmail.com> wrote:
>>>>>>
>>>>>>> A small update. I have been able to bypass the indexing problem by
>>>>>>> commenting off lines 228-30 in app/search/search.py and replacing the
>>>>>>> custom exception with a standard return False.
>>>>>>> I subsequently modified get_nodes() as visible here:
>>>>>>> https://github.com/azerbini/eamena2/blob/app/models/entity.py
>>>>>>>
>>>>>>> Now, the labels returned by get_nodes are in the correct language,
>>>>>>> and yet they keep being visualised in the templates in the language of
>>>>>>> original insertion (see screenshot attached). Once again, what do 

Re: [Arches] Re: Accessing languages via Django

2016-06-27 Thread Alexei Peters
Hi Andrea,
Have you confirmed that you're getting all the data in all languages when a
form loads, but that somehow the client side code is filtering based on
language?
The "load" method in forms.py would potentially allow a user to only load
data with a specific language code, you're code isn't doing that is it?
Cheers,
Alexei


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

On Fri, Jun 17, 2016 at 8:26 AM, <zerbini.eam...@gmail.com> wrote:

> Dear Alexei,
>
> I have got it to work:
> https://github.com/azerbini/eamena2/blob/app/models/forms.py
>
> I was modifying the wrong method, in entity.py instead of looking into
> app/models/forms and changing that get_nodes. My bad.
>
> Now, the problem is that, for whatever reason (and unrelated to my changes
> to get_nodes()), the JS libraries only allow me to edit branches in the
> language of original insertion. So, when the selected language is English,
> I am able to pull up and edit in a form all of the branches that were
> initially saved in the DB in English. Viceversa, when the language selected
> is Arabic, I can only edit branches (or entities - call them as you may)
> that were saved into the DB in Arabic. Any idea as to why the JS does this?
>
> Thank you - getting there step by step!
>
> Andrea
>
> On Thursday, June 16, 2016 at 7:43:59 PM UTC+1, Alexei Peters wrote:
>>
>> Hi Andrea,
>> I'll have to look into this.
>> Cheers,
>> Alexei
>>
>>
>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>
>> On Wed, Jun 15, 2016 at 10:43 AM, <zerbini...@gmail.com> wrote:
>>
>>> A small update. I have been able to bypass the indexing problem by
>>> commenting off lines 228-30 in app/search/search.py and replacing the
>>> custom exception with a standard return False.
>>> I subsequently modified get_nodes() as visible here:
>>> https://github.com/azerbini/eamena2/blob/app/models/entity.py
>>>
>>> Now, the labels returned by get_nodes are in the correct language, and
>>> yet they keep being visualised in the templates in the language of original
>>> insertion (see screenshot attached). Once again, what do I need to modify
>>> in order to tweak the resource graph which is passed as an observable array
>>> to branch-list.js?
>>>
>>> Thanks,
>>>
>>> andrea
>>>
>>>
>>> <https://lh3.googleusercontent.com/-Zcqp_1zUD-w/V2GTt9oU6wI/AAM/HQDeE69Bcvk1ujOoe_4l-sYCLEmIS68TQCLcB/s1600/Screen%2BShot%2B2016-06-15%2Bat%2B18.42.29.png>
>>>
>>>
>>>
>>> On Wednesday, June 15, 2016 at 2:23:53 PM UTC+1, zerbini...@gmail.com
>>> wrote:
>>>>
>>>> Hi all,
>>>>
>>>> In order to fix the visualisation of the already selected branches, I
>>>> have tried to modify models/entity.py, particularly the get_nodes method,
>>>> since it is that which calls the labels of concepts already stored in the
>>>> database (see here for the modified method:
>>>> https://github.com/azerbini/eamena2/blob/app/models/entity.py).
>>>> Currently, I am only trying to get get_nodes() to retrieve the right
>>>> prefLabels, so I am not modifying the data, just displaying it via print
>>>> statements. I have had to perform a UUID validation of entity.value in
>>>> order to stop get_preflabels_from_valueid from attempting to run on
>>>> entity.value when the latter is a Polygon type. When I modify a form, on
>>>> POST submission, all seems to work fine. Here are some of the outputs I get
>>>> on the server:
>>>>
>>>> Entity label pre prefLabel: :
>>>>> d7f8c3f4-abb5-4d88-879e-41574d905df7 of type
>>>>> SITE_OVERALL_ARCHAEOLOGICAL_CERTAINTY_TYPE.E55 with value
>>>>> "e2febf75-58b1-4803-a7f9-c7cd3d01606b"
>>>>>
>>>>> {u'_type': u'1e0f9e9a-99e0-4439-a796-f0e1c9e26db9', u'_source':
>>>>> {u'category': u'label', u'conceptid':
>>>>> u'8748c8c7-8d3d-4003-a6b5-f87d9d933490', u'language': u'en-US', u'value':
>>>>> u'High', u'type': u'prefLabel', u'id':
>>>>> u'e2febf75-58b1-4803-a7f9-c7cd3d01606b'}, u'_index': u'concept_labels',
>>>>> u'_version': 2, u'found': True, u'_id':
>>>>> u'e2febf75-58b1-4803-a7f9-c7cd3d01606b'}
>>>>>
>>>>> Entity label post prefLabel: {u'category': u'label', u'conceptid':
>>>>> u'8748c8c7-8d3d-4003-a6b5-f87d9d933490', u'language': u'ar', u'value':
>>>>> u'\u06

  1   2   3   >