Re: [Arches] Re: Problems upgrading Arches 4.0.1 to 4.1.0 due to missing modules

2018-03-06 Thread Adam Cox
Hi David, regarding the python packages, good detective work on this, and I
think I've found the issue.

python-jose, etc. should have been installed during

pip install arches --upgrade

but I've found that just as we need to add --no-binary :all: to the normal
pip install command, it also needs to be added to this upgrade command.

When I run

pip install arches==4.0.1 --no-binary :all:
pip install arches --upgrade --no-binary :all:

then running pip freeze or pip list *does *show that python-jose and
django-recaptcha have successfully installed. But if I leave --no-binary
:all: out of the second command as you would have from following the
release notes, then, as you found, those new packages are not found.

On Tue, Mar 6, 2018 at 3:44 PM, David Osborne <
daosborne.archaeol...@gmail.com> wrote:

> I may have found a solution to this myself. After searching for *jose* on
> the Python package index, I found *python-jose* as an alternative which
> seemed to have the missing *jws* name needed for an import.
>
> I therefore ran
> pip uninstall jose
> pip install python-jose
> and my python manage.py migrate then produced an error message relating
> to the database contents, instead of reporting a missing module:
>
> django.db.migrations.exceptions.NodeNotFoundError: Migration
> models.0010_4_1_0 dependencies reference nonexistent parent node (u'auth',
> u'0008_alter_user_username_max_length')
>
> (Full details in the gist at https://gist.github.com/daosborne/
> 24a698df329f097b0e683fe89da20d69)
>
> Might this sort of database migration error be expected and is it serious?
> The database works well with 4.0.1
>
> TL;DR
> To recap for anyone else with missing modules after doing an upgrade from
> 4.0.1 to 4.1.0, try
> pip install django-recaptcha
> pip install python-jose
> which (almost) worked for me (your mileage may vary).
>
> David
>
>
> On Tuesday, 6 March 2018 12:26:36 UTC, David Osborne wrote:
>>
>> I have a working Arches 4.0.1 installation in a Vagrant VM which I want
>> to upgrade to 4.1.0, to check the process in advance of upgrading our
>> project server.
>>
>> Following the upgrade instructions in https://github.com/archesproje
>> ct/arches/blob/master/docs/releases/4.1.0.md, I get an error at the step
>>
>> python manage.py migrate due to the captcha module not being installed:
>>
>> (ENV) vagrant@vagrant:~/Projects/my_project$ python manage.py migrate
>> Traceback (most recent call last):
>>   File "manage.py", line 29, in 
>> execute_from_command_line(sys.argv)
>>   File 
>> "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>>  line 353, in execute_from_command_line
>> utility.execute()
>>   File 
>> "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>>  line 327, in execute
>> django.setup()
>>   File 
>> "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/__init__.py",
>>  line 18, in setup
>> apps.populate(settings.INSTALLED_APPS)
>>   File 
>> "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/apps/registry.py",
>>  line 85, in populate
>> app_config = AppConfig.create(entry)
>>   File 
>> "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/apps/config.py",
>>  line 90, in create
>> module = import_module(entry)
>>   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
>> __import__(name)
>> ImportError: No module named captcha
>>
>>
>> I then attempted variously to install, in turn, the captcha, 
>> django-simple-captcha and django-recaptcha modules, finally sticking with 
>> django-recaptcha,
>> which required a module "jose" but that eventually had a missing "jws" name 
>> it couldn't find, and at that point I gave up and decided to shout "Help!"
>>
>> There's a log of all this at 
>> https://gist.github.com/daosborne/d867f8a2a457aa7b7652cb9432e0321d
>> beginning and ending with "pip list" to show the modules which were 
>> installed.
>>
>> I'm sure there will be a simple solution!
>> 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.
> 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 

[Arches] Re: Problems upgrading Arches 4.0.1 to 4.1.0 due to missing modules

2018-03-06 Thread David Osborne
I may have found a solution to this myself. After searching for *jose* on 
the Python package index, I found *python-jose* as an alternative which 
seemed to have the missing *jws* name needed for an import.

I therefore ran
pip uninstall jose
pip install python-jose
and my python manage.py migrate then produced an error message relating to 
the database contents, instead of reporting a missing module:

django.db.migrations.exceptions.NodeNotFoundError: Migration 
models.0010_4_1_0 dependencies reference nonexistent parent node (u'auth', 
u'0008_alter_user_username_max_length')

(Full details in the gist at 
https://gist.github.com/daosborne/24a698df329f097b0e683fe89da20d69)

Might this sort of database migration error be expected and is it serious? 
The database works well with 4.0.1

TL;DR
To recap for anyone else with missing modules after doing an upgrade from 
4.0.1 to 4.1.0, try
pip install django-recaptcha
pip install python-jose
which (almost) worked for me (your mileage may vary).

David

On Tuesday, 6 March 2018 12:26:36 UTC, David Osborne wrote:
>
> I have a working Arches 4.0.1 installation in a Vagrant VM which I want to 
> upgrade to 4.1.0, to check the process in advance of upgrading our project 
> server.
>
> Following the upgrade instructions in 
> https://github.com/archesproject/arches/blob/master/docs/releases/4.1.0.md, 
> I get an error at the step 
>
> python manage.py migrate due to the captcha module not being installed:
>
> (ENV) vagrant@vagrant:~/Projects/my_project$ python manage.py migrate
> Traceback (most recent call last):
>   File "manage.py", line 29, in 
> execute_from_command_line(sys.argv)
>   File 
> "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>  line 353, in execute_from_command_line
> utility.execute()
>   File 
> "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>  line 327, in execute
> django.setup()
>   File 
> "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/__init__.py",
>  line 18, in setup
> apps.populate(settings.INSTALLED_APPS)
>   File 
> "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/apps/registry.py",
>  line 85, in populate
> app_config = AppConfig.create(entry)
>   File 
> "/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/apps/config.py",
>  line 90, in create
> module = import_module(entry)
>   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
> __import__(name)
> ImportError: No module named captcha
>
>
> I then attempted variously to install, in turn, the captcha, 
> django-simple-captcha and django-recaptcha modules, finally sticking with 
> django-recaptcha,
> which required a module "jose" but that eventually had a missing "jws" name 
> it couldn't find, and at that point I gave up and decided to shout "Help!"
>
> There's a log of all this at 
> https://gist.github.com/daosborne/d867f8a2a457aa7b7652cb9432e0321d
> beginning and ending with "pip list" to show the modules which were installed.
>
> I'm sure there will be a simple solution!
> 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.
For more options, visit https://groups.google.com/d/optout.


Re: [Arches] csv import data in node resource-instance

2018-03-06 Thread Adam Lodge
Hi Arnau,

Given that the resource-instance datatype is pretty new, I dont think that the 
code is part of the latest stable release.  However, there is currently an open 
ticket to support this capability here: 
https://github.com/archesproject/arches/issues/2967 


By the looks of it, the code has been written, and is currently in the QA/Qc 
phase.

Adam


> On Mar 5, 2018, at 9:13 AM, Arnau Forner  wrote:
> 
> Hello,
> 
> Is there a way to import data in a node that has "resource-instance" as 
> datatype?
> 
> Example:
> I have 2 resource models, BUILDING and ACTOR. In BUILDING I have a node 
> called architect with datatype resource-instance that relates to ACTOR.
> I already have data in ACTOR and now I want to import data to BUILDING.
> How can I import data with a csv for this node so that relates correctly to 
> the ACTOR instances?
> 
> I've tried using the same actor name or the resource id, but without success. 
> Is this possible?  
> 
> 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] Standards in Resourse models

2018-03-06 Thread Vencislav Pirinski
Hello,
My name is Ventsislav Pirinski and I am from the Bulgarian Academy of 
Sciences.
We would like to integrate Arches in bulgarian museums and we are working 
in close collaboration with some museums and heritage institutions. We want 
to show the capabilities of Arches with a sample project. We have working 
implementation of Arches 4.0. 
The project is about type of tombs, dolmens. We have created Resource model 
called "Dolmens" and modified it to suit our needs, but we want to relate 
it to a more general model.
Something like this "Heritage resource model" -> "Archaeological site 
model" -> "Tombs model" -> "Dolmens model".
We want to use a standard like CRM CIDOC for this relation. 
Can this be done natively in Arches?

Also we want to have partial translation in Bulgarian for the reports. We 
know that the sections can not be translated, we are concerned only about 
the translation of the data. What advice would you give me for the 
implementation?

Best regards,
Vencislav Pirinski

-- 
-- 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] Problems upgrading Arches 4.0.1 to 4.1.0 due to missing modules

2018-03-06 Thread David Osborne
I have a working Arches 4.0.1 installation in a Vagrant VM which I want to 
upgrade to 4.1.0, to check the process in advance of upgrading our project 
server.

Following the upgrade instructions in 
https://github.com/archesproject/arches/blob/master/docs/releases/4.1.0.md, 
I get an error at the step 

python manage.py migrate due to the captcha module not being installed:

(ENV) vagrant@vagrant:~/Projects/my_project$ python manage.py migrate
Traceback (most recent call last):
  File "manage.py", line 29, in 
execute_from_command_line(sys.argv)
  File 
"/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py",
 line 353, in execute_from_command_line
utility.execute()
  File 
"/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py",
 line 327, in execute
django.setup()
  File 
"/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/__init__.py",
 line 18, in setup
apps.populate(settings.INSTALLED_APPS)
  File 
"/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/apps/registry.py",
 line 85, in populate
app_config = AppConfig.create(entry)
  File 
"/home/vagrant/Projects/ENV/local/lib/python2.7/site-packages/django/apps/config.py",
 line 90, in create
module = import_module(entry)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named captcha


I then attempted variously to install, in turn, the captcha, 
django-simple-captcha and django-recaptcha modules, finally sticking with 
django-recaptcha,
which required a module "jose" but that eventually had a missing "jws" name it 
couldn't find, and at that point I gave up and decided to shout "Help!"

There's a log of all this at 
https://gist.github.com/daosborne/d867f8a2a457aa7b7652cb9432e0321d
beginning and ending with "pip list" to show the modules which were installed.

I'm sure there will be a simple solution!
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.
For more options, visit https://groups.google.com/d/optout.